黑龙江科学2024,Vol.15Issue(13) :102-104.

四针汉诺塔问题的算法设计

Algorithm Design for the Four-pin Problem

王晋利 赵永哲
黑龙江科学2024,Vol.15Issue(13) :102-104.

四针汉诺塔问题的算法设计

Algorithm Design for the Four-pin Problem

王晋利 1赵永哲1
扫码查看

作者信息

  • 1. 山东华宇工学院 信息工程学院,山东 德州 253034
  • 折叠

摘要

对传统三针汉诺塔问题的递归求解算法进行简要分析和研究,在此基础上对四针汉诺塔问题进行深入研究,给出四针汉诺塔最优移动次数的算法,并通过穷举法分析提炼出最优参数的取值.

Abstract

The study briefly analyzes the recursive algorithm of the traditional three-pin Tower of Hanoi problem,deeply researches the four-pin Tower of Hanoi problem based on this,and proposes the algorithm of the optimal movement number,and extracts the value of the optimal parameter through the exhaustive analysis.

关键词

三针汉诺塔/四针汉诺塔/递归算法/分治法

Key words

Three-pin Tower of Hanoi/Four-pin Tower of Hanoi/Recursive algorithm/Divide-and-conquer method

引用本文复制引用

基金项目

2023年课堂教学改革示范课程——数据结构(A)(17)

出版年

2024
黑龙江科学
黑龙江省科学院

黑龙江科学

影响因子:1.014
ISSN:1674-8646
参考文献量5
段落导航相关论文