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