文件名称:MainClass
-
所属分类:
- 标签属性:
- 上传时间:2016-06-09
-
文件大小:890byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
汉诺塔(又称河内塔)问题是源于印度一个古老传说的益智玩具。大梵天创造世界的时候做了三根金刚石柱子,在一根柱子上从下往上按照大小顺序摞着64片黄金圆盘。大梵天命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上。并且规定,在小圆盘上不能放大圆盘,在三根柱子之间一次只能移动一个圆盘。
后来,这个传说就演变为汉诺塔游戏,玩法如下:
1.有三根杆子A,B,C。A杆上有若干碟子
2.每次移动一块碟子,小的只能叠在大的上面
3.把所有碟子从A杆全部移到C杆上
以下实例演示了汉诺塔算法的实现:-Hanoi algorithm
1 there are three poles of A, B, C. There are a number of plates on the A
2 each move a plate, the small can only be stacked on top of the big
3 move all plates A to C
The following example Hanoi algorithm
后来,这个传说就演变为汉诺塔游戏,玩法如下:
1.有三根杆子A,B,C。A杆上有若干碟子
2.每次移动一块碟子,小的只能叠在大的上面
3.把所有碟子从A杆全部移到C杆上
以下实例演示了汉诺塔算法的实现:-Hanoi algorithm
1 there are three poles of A, B, C. There are a number of plates on the A
2 each move a plate, the small can only be stacked on top of the big
3 move all plates A to C
The following example Hanoi algorithm
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MainClass/MainClass.txt
MainClass
MainClass
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.