文件名称:Josephus
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 186kb
- 下载次数:
- 0次
- 提 供 者:
- l*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
约瑟夫环,设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,…,如此反复直到所有的人全部出列为止。以n=8,s=1,m=4为例,若初始的顺序为 n1,n2,n3,n4,n5,n6,n7,n8。则问题的解为n4,n8,n5,n2,n1,n3,n7,n6。-Joseph Wan, with n individuals sitting around a round table, is reported starting from the number of individuals s, m the number of people to the column and the column from the next person to start reporting the number of numbers to m, who has a column, ..., and so forth until all the people all of the column so far. To n = 8, s = 1, m = 4, for example, if the initial order of n1, n2, n3, n4, n5, n6, n7, n8. The solution of the problem n4, n8, n5, n2, n1, n3, n7, n6.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Josephus\Debug\Josephus.exe
........\.....\Josephus.ilk
........\.....\Josephus.obj
........\.....\Josephus.pch
........\.....\Josephus.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\Josephus.cpp
........\Josephus.dsp
........\Josephus.dsw
........\Josephus.ncb
........\Josephus.opt
........\Josephus.plg
........\Debug
Josephus
........\.....\Josephus.ilk
........\.....\Josephus.obj
........\.....\Josephus.pch
........\.....\Josephus.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\Josephus.cpp
........\Josephus.dsp
........\Josephus.dsw
........\Josephus.ncb
........\Josephus.opt
........\Josephus.plg
........\Debug
Josephus