首页> 外文OA文献 >Selenite Towers Move Faster Than Hanoï Towers, But Still Require Exponential Time
【2h】

Selenite Towers Move Faster Than Hanoï Towers, But Still Require Exponential Time

机译:亚硒酸盐塔比河内塔移动更快,但仍需要指数时间

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

The Hanoi Tower problem is a classic exercise in recursive programming: the solution has a simple recursive definition, and its complexity and the matching lower bound correspond to the solution of a simple recursive function (the solution is so simple that most students memorize it and regurgitate it at exams without truly understanding it). We describe how some minor change in the rules of the Hanoi Tower yields various increases of difficulty in the solution, so that to require a deeper mastery of recursion than the classical Hanoi Tower problem. In particular, we analyze the Selenite Tower problem, where just changing the insertion and extraction positions from the top to the middle of the tower results in a surprising increase in the intricacy of the solution: such a tower of n disks can be optimally moved in 3^(n/2) moves for n even (i.e. less than a Hanoi Tower of same height), via 5 recursive functions (or, equivalently, one recursion function with five states following three distinct patterns).
机译:河内塔问题是递归编程中的经典练习:解决方案具有简单的递归定义,并且其复杂性和匹配的下限对应于简单递归函数的解决方案(该解决方案是如此简单,以至于大多数学生都将其记忆并反驳却没有真正理解它)。我们描述了河内铁塔规则的一些微小变化如何导致解决方案难度的各种增加,从而需要比传统的河内铁塔问题更深入地掌握递归。特别是,我们分析了硒硒塔问题,只需将插入位置和拔出位置从塔的顶部更改为中间位置,即可导致解决方案的复杂性出乎意料地增加:这样的n个磁盘的塔可以最佳地移动到3 ^(n / 2)通过5个递归函数(或等效地,一个递归函数具有五个遵循三种不同模式的状态)移动n个(即小于相同高度的河内塔)。

著录项

  • 作者

    Barbay Jérémy;

  • 作者单位
  • 年度 2016
  • 总页数
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号