算法动力学:使用交互式转换系统教授算法
Algodynamics: Teaching Algorithms using Interactive Transition Systems
摘要:
算法和数据结构在计算机科学课程中的重要性已得到充分的认识。然而,对于许多学生来说,很好地理解算法仍然是一个挑战。因为顺序算法的自动化特性。在直接采用“边做边学”的方法方面存在着内在的紧张关系。这部分解释了算法动画和代码跟踪等工作的局限性。Algodynamics,我们提出和倡导的方法,位于过渡系统及其动态的框架内的算法,并提供了一个有吸引力的教学算法的方法。算法动力学的前提是,算法的关键思想可以被识别并打包到交互式转换系统中。当算法被“打开”时,它揭示了一个过渡系统,去掉了大多数控制方面,而用交互来丰富。算法的设计可以通过构建一系列交互式系统来进行,逐步将交互性与自动化进行交易。这些转移系统构成了一个概念机器族。我们说明了算法动力学的方法,考虑布波特。五个交互式转换系统的序列在经典的Bubberort算法中达到高潮。构建单个系统的练习在编写Bublecort时也是值得的:一个高度模块化的实现,其原语是从转换系统中借用的。用于Bubberort的过渡系统已被实现为交互式实验。这些基于Web的实现很容易构建。算法动力学框架提供的简单性和灵活性使得它成为一个有吸引力的选择,以互动的方式教算法。
英文摘要:
The importance of algorithms and data structures in computer science curricula has been amply recognized. For many students, however, gaining a good understanding of algorithms remains a challenge. Because of the automated nature of sequential algorithms. there is an inherent tension in directly applying the `learning by doing' approach. This partly explains the limitations of efforts like algorithm animation and code tracing. Algodynamics, the approach we propose and advocate, situates algorithms within the framework of transition systems and their dynamics and offers an attractive approach for teaching algorithms. Algodynamics starts with the premise that the key ideas underlying an algorithm can be identified and packaged into interactive transition systems. The algorithm when `opened up', reveals a transition system, shorn of most control aspects, enriched instead with interaction. The design of an algorithm can be carried out by constructing a series of interactive systems, progressively trading interactivity with automation. These transition systems constitute a family of notional machines. We illustrate the algodynamics approach by considering Bubblesort. A sequence of five interactive transition systems culminate in the classic Bubblesort algorithm. The exercise of constructing the individual systems also pays off when coding Bubblesort: a highly modular implementation whose primitives are borrowed from the transition systems. The transition systems used for Bubblesort have been implemented as interactive experiments. These web based implementations are easy to build. The simplicity and flexibility afforded by the algodynamics framework makes it an attractive option to teach algorithms in an interactive way.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。