文件名称:zhizheshengcun
- 所属分类:
- 数值算法/人工智能
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 12kb
- 下载次数:
- 0次
- 提 供 者:
- yinli*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
问题的提出:17世纪法国数学家加斯帕的一本《数学的游戏问题》描述了许多有趣问题,约瑟问题就是其中之一:
15名基督*和15名异*同乘一船航行,途中风浪大作,危机万分,领航者告诉大家,只要将全船的一半人投入海中,其余人就能幸免。大家都同意这个办法,并协定者30人围成一圈;由第一个人起报数,每数至第9人便把他投入海中,下一个接着从1开始报数,第9人又被投入海中,依次循环,直至剩下15人为止。问题是如何排法使投入海中的人全为异*?
编程的思路:此问题有人把它的答案隐示于下列詩句中:
From numbers’ aid and art, (依靠数字的和魔力,)
Never will fame depart! (声誉决不会离你而去!)
这句诗中元音字母依次为:oueaiaaeeiaeea,分别用1、2、3、4、5代替a、e、i、o、u,便得一排数(划线得数字表示基督*,不划线的表示异*)。
4 5 2 1 3 1 1 2 2 3 1 2 2 1 故所求排法诗4个基督*,5个异*,再2个基督*,1个异*,…可以证明,这种排法所有的基督*都是安全的。
-Of the problem: the 17th century French mathematician Gaspard s a "mathematical game problem " describes the many interesting questions, Joseph is one of them:
15 Christians and 15 pagans sail with the boat ride, the way storm comes up, extreme crisis, the leader tell you that as long as half of the whole ship into the sea, the rest can be spared. We all agree with this approach, and there were 30 agreements circle the first person from the reported number, the number to 9 for each person put into the sea in his next start and then reported from a number of people has been put into 9 The sea, in cycles, until the remaining 15 people so far. The question is how to arrange method to make the people into the sea are all infidels?
Programming idea: the problem was the answer to it implicitly in the following verse:
From numbers aid and art, (relying on numbers and magic)
Never will fame depart! (reputation will never leave you!)
Poem vowel sentence were: oueaiaaeeiaeea, were re
15名基督*和15名异*同乘一船航行,途中风浪大作,危机万分,领航者告诉大家,只要将全船的一半人投入海中,其余人就能幸免。大家都同意这个办法,并协定者30人围成一圈;由第一个人起报数,每数至第9人便把他投入海中,下一个接着从1开始报数,第9人又被投入海中,依次循环,直至剩下15人为止。问题是如何排法使投入海中的人全为异*?
编程的思路:此问题有人把它的答案隐示于下列詩句中:
From numbers’ aid and art, (依靠数字的和魔力,)
Never will fame depart! (声誉决不会离你而去!)
这句诗中元音字母依次为:oueaiaaeeiaeea,分别用1、2、3、4、5代替a、e、i、o、u,便得一排数(划线得数字表示基督*,不划线的表示异*)。
4 5 2 1 3 1 1 2 2 3 1 2 2 1 故所求排法诗4个基督*,5个异*,再2个基督*,1个异*,…可以证明,这种排法所有的基督*都是安全的。
-Of the problem: the 17th century French mathematician Gaspard s a "mathematical game problem " describes the many interesting questions, Joseph is one of them:
15 Christians and 15 pagans sail with the boat ride, the way storm comes up, extreme crisis, the leader tell you that as long as half of the whole ship into the sea, the rest can be spared. We all agree with this approach, and there were 30 agreements circle the first person from the reported number, the number to 9 for each person put into the sea in his next start and then reported from a number of people has been put into 9 The sea, in cycles, until the remaining 15 people so far. The question is how to arrange method to make the people into the sea are all infidels?
Programming idea: the problem was the answer to it implicitly in the following verse:
From numbers aid and art, (relying on numbers and magic)
Never will fame depart! (reputation will never leave you!)
Poem vowel sentence were: oueaiaaeeiaeea, were re
(系统自动生成,下载前可以参看下载内容)
下载文件列表
智者生存\4_22.cpp
........\4_22.dsp
........\4_22.dsw
........\4_22.ncb
........\4_22.opt
........\4_22.plg
........\智者生存.doc
智者生存
........\4_22.dsp
........\4_22.dsw
........\4_22.ncb
........\4_22.opt
........\4_22.plg
........\智者生存.doc
智者生存