Location:
Search - josefu
Search list
Description: 约瑟夫算法,即n个人,依次报数,报到m的人出局,求最后出具的人-Joseph algorithm, that is, n individuals, in turn reported the number of people m back out, and those who issued the final
Platform: |
Size: 160768 |
Author: 钟灿 |
Hits:
Description: Josephu问题为:设编号为1,2,… n的n个人围坐一圈,约定编号为k(1<=k<=n)的人从1开始报数,数到m 的那个人出列,它的下一位又从1开始报数,数到m的那个人又出列,依次类推,直到所有人出列为止,由此产生一个出队编号的序列。-Josephu issues: Let numbered 1,2, ... n of the n individuals sitting around, agreed number k (1 < = k < = n) from 1 to start the count off a few of the m out of that person , the next it started off from a few to m another person out, and so on until all the series so far, resulting in a number of the team sequence.
Platform: |
Size: 1024 |
Author: 涂舒 |
Hits:
Description: josefu问题源代码 c++编程实现 将代码放到.cpp文件中就能运行-josefu the issue of source code c++ programming code on the. cpp file will be able to run
Platform: |
Size: 1024 |
Author: 王三强 |
Hits:
Description: 约瑟夫环实现源码,可以直接下载编译运行使用-josefu c code
Platform: |
Size: 276480 |
Author: sea |
Hits: