- 4
- 0
- 约8.32千字
- 约 28页
- 2020-09-24 发布于安徽
- 举报
§4.4: Recursive Algorithms Towers of Hanoi “Towers of Hanoi” is commonly used as an example of a problem with a simple recursive solution There are three pegs The first (source) peg holds some number of rings Solution to Towers of Hanoi Move the top n-1 rings from src to aux (recursively) Move the largest ring from src to dest Move the n-1 rings from aux to dest (recursively) Tiling Tiling: Trivial Case (n = 1) Trivial case (n = 1): tiling a 2x2 board with a hole: Tiling: Dividing the Problem To get smaller square boards let’s divide the original board into for boards Tiling: Dividing the
您可能关注的文档
最近下载
- 2024年高等教育医学类自考-03046中药药理学历年考题高频考点荟萃带答案.docx VIP
- 2024年高等教育医学类自考-03046中药药理学考试历年真题荟萃带答案.docx VIP
- 架空输电线路基本知识.ppt VIP
- 4.2直线、射线、线段 同步练习 2023-2024学年人教版数学七年级上册(含答案).docx VIP
- SHT3408-2022石油化工钢制对焊管件技术规范.pdf VIP
- 门窗安装工程冬季施工专项方案.docx
- DSP2a KELK压头中文用户手册.pdf
- 2025年咨询工程师工程索赔依据与工程造价控制综合测试专题试卷及解析.pdf VIP
- 2024年高等教育医学类自考-03046中药药理学历年高频考点试卷专家荟萃含答案.docx VIP
- 2025年人教版高三芳香族工业应用专题试卷及解析.docx VIP
原创力文档

文档评论(0)