首页> 外文期刊>SIGCSE bulletin >A Gentle Introduction to Mutual Recursion
【24h】

A Gentle Introduction to Mutual Recursion

机译:相互递归的温和介绍

获取原文
获取原文并翻译 | 示例
           

摘要

Recursion is an important topic in computer science curricula. It is related to the acquisition of competences regarding problem decomposition, functional abstraction and the concept of induction. In comparison with direct recursion, mutual recursion is considered to be more complex. Consequently, it is generally addressed superficially in CS1/2 programming courses and textbooks. We show that, when a problem is approached appropriately, not only can mutual recursion be a powerful tool, but it can also be easy to understand and fun. This paper provides several intuitive and attractive algorithms that rely on mutual recursion, and which have been designed to help strengthen students' ability to decompose problems and apply induction. Furthermore, we show that a solution based on mutual recursion may be easier to design, prove and comprehend than other solutions based on direct recursion. We have evaluated the use of these algorithms while teaching recursion concepts. Results suggest that mutual recursion, in comparison with other types of recursion, is not as hard as it seems when: (1) determining the result of a (mathematical) function call, and, most importantly, (2) designing algorithms for solving simple problems.
机译:递归是计算机科学课程中的重要主题。它与问题分解,功能抽象和归纳概念方面的能力获取有关。与直接递归相比,相互递归被认为更为复杂。因此,它通常在CS1 / 2编程课程和教科书中进行表面处理。我们证明,当适当地解决问题时,相互递归不仅可以成为强大的工具,而且还易于理解和有趣。本文提供了一些基于相互递归的直观且引人入胜的算法,这些算法旨在帮助增强学生分解问题和应用归纳法的能力。此外,我们表明,基于相互递归的解决方案可能比基于直接递归的其他解决方案更容易设计,证明和理解。我们在教授递归概念时评估了这些算法的使用。结果表明,与其他类型的递归相比,相互递归并不像在以下情况下那样困难:(1)确定(数学)函数调用的结果,最重要的是,(2)设计用于求解简单递归的算法问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号