登录
首页 » Windows开发 » /汉诺塔递归算法过程解析: //汉诺塔(又称河内塔)问题是印度的一个古老的传说。开天辟地的神勃拉玛在一个庙里留下了三根金刚石 //的棒,第一根上面...

/汉诺塔递归算法过程解析: //汉诺塔(又称河内塔)问题是印度的一个古老的传说。开天辟地的神勃拉玛在一个庙里留下了三根金刚石 //的棒,第一根上面...

于 2022-04-17 发布 文件大小:2.38 kB
0 224
下载积分: 2 下载次数: 1

代码说明:

/汉诺塔递归算法过程解析: //汉诺塔(又称河内塔)问题是印度的一个古老的传说。开天辟地的神勃拉玛在一个庙里留下了三根金刚石 //的棒,第一根上面套着64个圆的金片,最大的一个在底下,其余一个比一个小,依次叠上去,庙里的众僧 //不倦地把它们一个个地从这根棒搬到另一根棒上,规定可利用中间的一根棒作为帮助,但每次只能搬一个, //而且大的不能放在小的上面。解答结果请自己运行计算,程序见尾部。面对庞大的数字(移动圆片的次数) //18446744073709551615,看来,众僧们耗尽毕生精力也不可能完成金片的移动。 //后来,这个传说就演变为汉诺塔游戏:-err

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 马赛克的实现,vc下的好例子。
    马赛克的实现,vc下的好例子。-the realization of the vc good example.
    2022-08-08 17:41:39下载
    积分:1
  • eventos para el desarrollo de software con awt ejemplo de eventos con teclado
    eventos para el desarrollo de software con awt ejemplo de eventos con teclado
    2022-02-12 21:18:06下载
    积分:1
  • facedetector
    人脸检测器 #include < iostream > #include < cv.h > #include < highgui.h > int main(void) { int 键 = 0 ; int i; CvMemStorage * 存储 = cvCreateMemStorage (0) ; CvCapture * 捕获 = cvCaptureFromCAM (0) ; char * 文件名 ="haarcascade_frontalface_alt.xml"; CvHaarClassifierCascade * 梯级 = (CvHaarClassifierCascade *) cvLoad (文件名, 0,0,0) ; 虽然 (关键! = "q") { IplImage * 帧 = cvQueryFrame (捕获) ; 如果 (! 帧) 断 ; CvSeq * 脸 = cvHaarDetectObjects ( 帧, 级联, 存储, 1.1、 3, 0 / * CV_HAAR_DO_CANNY_PRUNNING *, cvSize (40,40)) ; 为 (我 = 0 ; 我 < (脸? 面孔-> 共: 0) ; i + +) { CvRect * wajah = (CvRect *) cvGetSeqElem (的脸,我) ; CvFont 字体 ; cvInitFont (& 字体,CV_FONT_HERSHEY_SIMPLEX,1.0,1.0,1,5,CV_AA) ; CvRect * r=(CvRect*) cvGetSeqElem(faces, i) ; cvPutTex
    2022-01-30 19:16:21下载
    积分:1
  • UCenter 用户中心 UCenter 的中文意思就是“用户中心”,其中的 U 代表 User 也代表 You ,取其中的含义就是“用户中心”,或者说“你...
    UCenter 用户中心 UCenter 的中文意思就是“用户中心”,其中的 U 代表 User 也代表 You ,取其中的含义就是“用户中心”,或者说“你(最终用户)的中心”。 UCenter 是 Comsenz 旗下各个产品之间信息直接传递的一个桥梁,通过 UCenter 站长可以无缝整合 Comsenz 系列产品,实现用户的一站式登录以及社区其他数据的交互。 UCenter 拥有机制完善的接口,经过简单修改便可以挂接其它任何平台的第三方的网络应用程序,随时为您的社区论坛增加能量。 -Comsenz" s UCenter is information directly between the various products passing a bridge, through the seamless integration can UCenter station Comsenz series of one-stop user login, as well as other data, the interactive community. UCenter have a mechanism to improve the interface, after a simple modification can be articulated to any other third party platforms, network applications, at any time for community forums to increase your energy.
    2022-09-11 22:35:03下载
    积分:1
  • PXA255的外部扩展功能,使用lc4256
    PXA255外围扩展功能,使用LC4256-176TQFP。扩展了CF卡、分时复用串口、电源管理、键盘等接口/功能。-PXA255 external expansion function, use the LC4256-176TQFP. Expansion of the CF card, time-sharing multiplexed serial port, power management, keyboard interface/functionality.
    2022-03-06 13:47:36下载
    积分:1
  • 可以检查一篇文章,统计单词数字并且不用理会分隔符
    可以检查一篇文章,统计单词数字并且不用理会分隔符-through a artical, you can use this to account the number of words regardless the part simpols.
    2022-07-23 08:13:43下载
    积分:1
  • Joomla酒店预订系统
    Joomla hotel reservation system
    2022-02-22 10:44:52下载
    积分:1
  • 331 classic games, including the original code and the implementation document g...
    经典的五子棋游戏,包含原代码和生成的执行文件,如有需要可以自己修改!-331 classic games, including the original code and the implementation document generation, can, if necessary, revise their own!
    2023-03-13 03:50:03下载
    积分:1
  • this book is about how to programing the API program of windows,just shall it
    这是一本关于编写windows API程序的学习书籍,很好!和大家分享-this book is about how to programing the API program of windows,just shall it
    2022-03-14 17:10:31下载
    积分:1
  • using the line drawing algorithm
    采用brezar的画线算法程序-using the line drawing algorithm
    2022-12-07 08:55:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载