文件名称:数据结构-汉诺塔-实验报告
介绍说明--下载内容来自于网络,使用问题请自行百度
1.1 实验目的及要求
设计数据结构表示3座宝塔和n个碟子:
输出每一次移动碟子的情况
分析算法的时间性能
1.2 实验设计
1;将塔A上的n-1个碟子借助塔C移动到塔B上
2:把塔A上剩下的一个碟子移动到塔C上
3:将n-1个碟子从塔B借助于塔A移到塔C上
三座宝塔(塔A,塔B,塔C)分别用三个字符型变量A,B,C表示,n个碟子从1 开始连续自然数编号(1.1 the purpose and requirements of the experiment
The design data structure represents 3 pagodas and N plates.
The case of each moving dish.
Analysis of the time performance of the algorithm
1.2 experimental design
1; the N-1 plates on the tower A are moved to the tower B with the aid of the tower C
2: move one of the remaining plates on the tower A to the tower C
3: n-1 B A with the dish from the tower tower to tower C
Three pagodas (tower A, tower B, pagoda C), respectively, three character variables A, B, and C, respectively, indicate that the N plates are numbered from 1 to the natural number.)
设计数据结构表示3座宝塔和n个碟子:
输出每一次移动碟子的情况
分析算法的时间性能
1.2 实验设计
1;将塔A上的n-1个碟子借助塔C移动到塔B上
2:把塔A上剩下的一个碟子移动到塔C上
3:将n-1个碟子从塔B借助于塔A移到塔C上
三座宝塔(塔A,塔B,塔C)分别用三个字符型变量A,B,C表示,n个碟子从1 开始连续自然数编号(1.1 the purpose and requirements of the experiment
The design data structure represents 3 pagodas and N plates.
The case of each moving dish.
Analysis of the time performance of the algorithm
1.2 experimental design
1; the N-1 plates on the tower A are moved to the tower B with the aid of the tower C
2: move one of the remaining plates on the tower A to the tower C
3: n-1 B A with the dish from the tower tower to tower C
Three pagodas (tower A, tower B, pagoda C), respectively, three character variables A, B, and C, respectively, indicate that the N plates are numbered from 1 to the natural number.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
数据结构-汉诺塔-实验报告.doc | 49152 | 2017-12-13 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.