Animating recursion as an aid to instruction

  • Authors:
  • Derek Wilcocks;Ian Sanders

  • Affiliations:
  • -;-

  • Venue:
  • Computers & Education
  • Year:
  • 1994

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents a method for overcoming one of the most difficult problems in teaching programming to first-year university students, namely recursion. It is established that what is required to understand recursion is an abstracted mental model of recursive flow of control. The model which is deemed most suitable for the purposes of this research is the copies model of recursion. In this model recursive instantiations are seen as copies of the recursive function. In order to present this model to students, a program (as opposed to data or algorithm) animator is employed. This animator takes any Pascal program containing a recursive function and presents the student with a dynamic copies model of the recursive function.