Teaching recursion in a procedural environment—how much should we emphasize the computing model?

  • Authors:
  • David Ginat;Eyal Shifroni

  • Affiliations:
  • Science Teaching Department, Weizmann Institute of Science, Rehovot, Israel;Tel-Hai College and Center of Educational Technology, 16 Klausner St. Tel-Aviv, IsraEL

  • Venue:
  • SIGCSE '99 The proceedings of the thirtieth SIGCSE technical symposium on Computer science education
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

Recursion is a powerful and essential computational problem solving tool, but the concept of recursion is difficult to comprehend. Students that master the conventional programming construct of iteration in procedural programming environments, find it hard to utilize recursion.This study started as a test of CS College students' utilization of recursion. It was conducted after they have completed CS1, where they studied recursion with the C programming language. The test revealed that students adhere to the iterative pattern of "forward accumulation", due to their confidence with the iteration construct, but lack of trust of the recursion mechanism. These results motivated us to get more insight into the nature of recursion difficulties and ways to overcome them.In this paper we describe the difficulties we observed, and present a declarative, abstract, approach that contributed to overcome them. We question the emphasis that should be put on the basic computing model when presenting recursion, and argue for emphasis on the declarative approach for teaching recursion formulation in a procedural programming environment.