文件名称:josephu
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-12-18
- 文件大小:
- 215kb
- 下载次数:
- 0次
- 提 供 者:
- Q*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用于解决约瑟夫问题.已知n个人(不妨以编号1、2、3……分别表示)围坐在一张圆桌周围。
从编号为k的人开始报数,数到m的人出列;他的下一个人又从1开始报数,数到m的那个人又出列;
依此规则重复下去,直到圆桌周围的人全部出列。-This program used to solve the Joseph problem. Known n individuals (may wish to represent numbers 1,2,3 ......) sitting around a round table. From the number of people reported a few k, the number of people out of the line to m his next and from one individual to start off, count to m that another person out so rule repeated until around the round table were all out of the line.
从编号为k的人开始报数,数到m的人出列;他的下一个人又从1开始报数,数到m的那个人又出列;
依此规则重复下去,直到圆桌周围的人全部出列。-This program used to solve the Joseph problem. Known n individuals (may wish to represent numbers 1,2,3 ......) sitting around a round table. From the number of people reported a few k, the number of people out of the line to m his next and from one individual to start off, count to m that another person out so rule repeated until around the round table were all out of the line.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
约瑟夫问题\Debug
..........\.....\josephu.obj
..........\.....\vc60.idb
..........\.....\vc60.pdb
..........\.....\约瑟夫问题.exe
..........\.....\约瑟夫问题.ilk
..........\.....\约瑟夫问题.pch
..........\.....\约瑟夫问题.pdb
..........\josephu.c
..........\约瑟夫问题.dsp
..........\约瑟夫问题.dsw
..........\约瑟夫问题.ncb
..........\约瑟夫问题.opt
..........\约瑟夫问题.plg