文件名称:Josephus
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:185.98kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
约瑟夫环,设有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/Debug/Josephus.ilk
Josephus/Debug/Josephus.obj
Josephus/Debug/Josephus.pch
Josephus/Debug/Josephus.pdb
Josephus/Debug/vc60.idb
Josephus/Debug/vc60.pdb
Josephus/Josephus.cpp
Josephus/Josephus.dsp
Josephus/Josephus.dsw
Josephus/Josephus.ncb
Josephus/Josephus.opt
Josephus/Josephus.plg
Josephus/Debug
Josephus
Josephus/Debug/Josephus.ilk
Josephus/Debug/Josephus.obj
Josephus/Debug/Josephus.pch
Josephus/Debug/Josephus.pdb
Josephus/Debug/vc60.idb
Josephus/Debug/vc60.pdb
Josephus/Josephus.cpp
Josephus/Josephus.dsp
Josephus/Josephus.dsw
Josephus/Josephus.ncb
Josephus/Josephus.opt
Josephus/Josephus.plg
Josephus/Debug
Josephus
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.