搜索资源列表
yuesefu.doc1
- 约瑟夫问题的一种描述为:编号为1,2,…,m的m个人按顺时针方向围坐一圈,每个人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值n。从第一个人开始按顺时针方向自1开始顺序报数,报到n时停止报数。报n的人出列,将他的密码作为新的n值,从他在顺序方向上的下一个人开始重新从1开始报数,如此下去,直到所有的人都出列。-a problem described as : No. 1, 2, ..., m m by individuals sitting around a circle clock
yuesefu
- 实现的是对约瑟夫问题的c语言编程,实现的简单而且易懂。-Realized the problem of Joseph c language programming, to achieve the simple and easy to understand.
yuesefu
- 首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为下次报数上限,如此循环,直至所有人都出列为止。-Should first enter a value assigned to the initial reported that the maximum number of m, the procedure should be able to automatically save a list of the serial number of peo
yuesefu
- 约瑟夫程序代码 可以实现要求,运行也正确-Joseph requirements of the code can run also correctly
yuesefu
- 用循环链表实现约瑟夫问题 数据结构相关的 对于新学者还是可以有用的-Joseph issues circular linked list data structure can be useful for new scholars or
yuesefu
- I had learned to be silent together without the silence becoming empty-Data structure