文件名称:lispChinesetower
介绍说明--下载内容均来自于网络,请自行研究使用
编写LISP函数解决Hanoi Tower(汉塔)问题。问题如下:梵塔内有A,B,C三个柱子,开始时A柱上有n个盘子,盘子大小不等,大的在下,小的在上。要把这n个盘子从A柱移到B柱,每次只允许移动一个盘子,且在移动过程中在3个柱子上都始终保持大盘在下,小盘在上。在移动过程中可以利用C柱,要求程序输出移动的步骤。-Write LISP function to solve the problem of Hanoi is Tower (Chinese tower). The questions are as follows: Brahma tower A, B, C, of the three columns, the beginning of the A pillar n plates, the plates of varying sizes, big next on. Take the n-plate from the A pillar to the B-pillar, only allowed to move a plate at a time during the move, always keep the market in the next three columns, small. During the move can take advantage of the C-pillar, steps for program output moving.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lispChinesetower.doc