登录
首页 » 算法 » 河内—汉诺塔问题,递归解决

河内—汉诺塔问题,递归解决

于 2022-03-31 发布 文件大小:10.29 kB
0 186
下载积分: 2 下载次数: 1

代码说明:

汉诺塔问题是源于印度一个古老传说的益智玩具。大梵天创造世界的时候做了三根金刚石柱子,在一根柱子上从下往上按照大小顺序摞着64片黄金圆盘。大梵天命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上。并且规定,在小圆盘上不能放大圆盘,在三根柱子之间一次只能移动一个圆盘。递归解决

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

发表评论

0 个回复

  • PCA用来降维的MATLAB代码,给出了程序
    PCA用来降维的MATLAB代码,给出了程序,给出了具体算法的思想和过程,成功地运用于相关性的去除保留样本信息,实现样本空间的降维和去相关性
    2023-07-07 07:00:03下载
    积分:1
  • Zip压缩源代码
    资源描述Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码
    2022-04-09 20:28:58下载
    积分:1
  • 声卡声压级计算
    本算法主要针对声卡的声压进行测量并换算成相应的声压级,如A计权,B计权,可以直接在Matlab中进行调用计算
    2023-08-22 00:45:04下载
    积分:1
  • Was established based on moving least square (Moving Least
    建立了一种基于移动最小二乘(Moving Least-Squares MLS)法的曲线曲 面拟合方法 这种方法对传统的最小二乘(LS)法的作了比较大的改进 使生成的曲线曲面具 有精度高 光滑性好等许多优点 详细介绍了移动最小二乘法的原理 应用和特点 并且给 出了使用移动最小二乘法进行曲线曲面拟合的程序设计流程 最后给出了曲线拟合和空间散 乱数据曲面拟合算例 将拟合结果与最小二乘拟合结果作了比较 分析了 MLS 拟合曲线曲 面的光滑性和拟合质量 表明了该方法的优越性和有效性-Was established based on moving least square (Moving Least-Squares MLS) method of this curve and surface fitting method to the traditional method of least squares (LS) method was relatively large improvements to make the generated curves and surfaces with a precision of High smoothness, good detail, and many other advantages of the principle of least-squares method for mobile applications and features and gives the least-squares method using the mobile curve and surface fitting procedure design process Finally, curve fitting and spatial scattered data surface to be cost-effective cases of the results of the fitting results are compared with the least-squares fitting analysis of MLS fitting curves and surfaces smooth and fitting quality demon
    2023-02-17 12:50:04下载
    积分:1
  • 机器人逆运动学求解
    该程序是两关节自由度机器人的逆运动学求解,通过拉格朗日能量方法建立机器人的运动学方程,根据关节力矩可以计算出机器人的关节角,从而完成其逆运动学的求解过程.......
    2022-03-03 02:48:52下载
    积分:1
  • 用对半分法计算f(x)=0
    用对半分法计算f(x)=0-Semi-used method of calculating f (x) = 0
    2022-01-26 07:29:51下载
    积分:1
  • 按照既定的步长,输入后筛选已有数据 程序1
    按照既定的步长,输入后筛选已有数据 程序1-accordance with the established step, the imported data screening procedures have a
    2022-02-12 08:34:52下载
    积分:1
  • TI DSP 642 上面运行的图像处理程序, 用来做sobel边缘提取
    TI DSP 642 上面运行的图像处理程序, 用来做sobel边缘提取-TI DSP 642 above the operation of image processing procedures used to make sobel edge detection
    2022-02-03 21:48:46下载
    积分:1
  • 一种最大数量的随机抽取
    输入一个最大数字,随机数抽奖-importation of a maximum number of random draw
    2022-03-03 12:47:21下载
    积分:1
  • USACO chapter one.May hope it useful to someone
    USACO chapter one.May hope it useful to someone
    2022-03-25 07:57:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载