搜索资源列表
yuesefuhuan
- 这也是数据结构的经典问题编程,通过这个编程让大家初步了解数据结构的类型的定义。-This data structure is a classic problem of programming, Through this program so that we understand the preliminary data structure of the type definition.
yuesefuhuan
- 一个数据结构的课程设计文件,C编写.内容为:约瑟夫环
yuesefuhuan
- 检测简单的运算表达式,例如加减乘除,得到实型的结果
yuesefuhuan
- 一桌人报数,报到即出列, 是数据结构线性循环列表的应用
yuesefuhuan
- 数据结构试验报告 约瑟夫环 问题描述: 约瑟夫(Joseph)问题的一种描述是:编号为1,2,,...,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从l报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。 基本要求: 利用单向循环链表存储结构模拟此过程,按照出列的顺序印出
yuesefuhuan
- 这是一段用vc编辑的约瑟夫环的 源代码
yuesefuhuan
- 用循環鏈錶完成數據結構中約瑟夫環的功能,解決了約瑟夫問題-Completion of the circular linked list data structure in Josephus to solve the problem of Joseph
yuesefuhuan
- 约瑟夫环问题:任给正整数N和K,按下述方法可以得到1,2, …,n的一个置换,将数字1,2,…,n环形排列,按顺时针方向自1开始报数,报到K时输出该位置上的数字,并使其出列。然后从他在顺时针方向的下一个数字继续报数,如此下去,直到所有的数字全部出列为止。例如N=10,K=3,则正确的出列顺序应为3,6,9,2,7,1,8,5,10,4。-Joseph Central questions: any given positive integer N and K, the following met
yuesefuhuan
- 本人用C++编写的约瑟夫环的小程序,望指教 -I used C++ Prepared Joseph Central applet, hope advice
YUESEFUHUAN
- 约瑟夫环的程序设计,完整的实验报告,包括调试结果。得到验证过的。-Joseph Central program design and complete experiments, including testing results. Be verified.
yuesefuhuan
- 利用单向循环链表存储结构模拟约瑟夫换游戏,可以正常运行-Using one-way linked list storage structure cycle Analog Joseph for Games can be the normal operation of
yuesefuhuan
- 约瑟夫环的代码实现。有输入检错功能,能处理开始密码为1的情况,输入非数字的字符将报错!-Joseph Ring code. Input error function, the beginning of the password to be able to handle the case of 1, enter non-numeric characters will be error!
yuesefuhuan
- 有编号从1到N的N个人坐成一圈报数,报到M的人出局,下一位再从1开始, 如此持续, 直止剩下一位为止,报告此人的编号X。 -Are numbered from 1 to N, N individuals sit in a circle reported that the number of people who report M out, the next one again from a beginning, and so sustained, direct only the re
yuesefuhuan
- 用C语言写的约瑟夫环,希望给大家带来快乐-Joseph, written in C language with the ring, hoping to bring happiness to everyone
yuesefu
- 关于约瑟夫环的C语言程序,可在VC++6.0上直接执行-yuesefuhuan
yuesefuhuan
- 约瑟夫换的源程序代码,自己参考别人写的,谢谢支持,以后努力学习写跟更多的。-Joseph for the source code, and have made reference to written by someone else, thank you to support future efforts to learn to write with more.
yuesefuhuan
- 一份不错的约瑟夫环实习报告,希望对大家有用。哈哈、-A good internship report Joseph ring and hope for all of us. Haha,
yuesefuhuan
- 问题描述:编号为1,2,• • • ,n的n个人围坐在一圆桌旁,每人持有一个正整数的密码。从第一个人开始报数,报到一个预先约定的正整数m时,停止报数,报m的人退席,下一个人又重新从1开始报数,依此重复,直至所有的人都退席。编一程序输出他们退席的编号序列。例如,设m=20,n=7,7个人的密码依次是3,1,7,2,4,8,4,则退席的人的编号依次为6,1,4,7,2,3,5。 提示2:用不带表头结点的循环单链表表示围成圆圈的n个人;建立此循环单链表;某人离席相当于
yuesefuhuan
- 关于二机的真题,方便大家进行学习和交流.-On the second machine Zhenti, we facilitate learning and exchange.
yuesefuhuan
- 用不带表头结点的循环单链表表示围成圆圈的n个人;要求建立此循环单链表;某人离席相当于删除一个结点,要正确设置程序中循环终止的条件和删除结点时指针的修改变化。-Header with a non-circular single linked list of nodes that a circle of n individuals called for the establishment of this circular single linked list someone leave equi
