Learning Flow of Control: Recursive and Iterative Procedures
- 1 June 1986
- journal article
- Published by Taylor & Francis in Human–Computer Interaction
- Vol. 2 (2) , 135-166
- https://doi.org/10.1207/s15327051hci0202_2
Abstract
Two experiments were performed to study students' ability to write recursive and iterative programs and transfer between these two skills. Subjects wrote functions to accumulate instances into a list. Problems varied in terms of whether they were recursive or iterative, whether they operated on lists or numbers, whether they accumulated results in forward or backward manner, whether they accumulated on success or failure, and whether they simply skipped or ejected on failure to accumulate. Subjects had real difficulty only with the dimensions concerned with flow of control, namely, recursive versus iterative, and skip versus eject. We found positive transfer from writing iterative functions to writing recursive functions, but not vice versa. A subsequent protocol study revealed subjects had such a poor mental model of recursion that they developed poor learning strategies which hindered their understanding of iteration. It is argued that having an adequate model of the functionality of programming is prer...Keywords
This publication has 6 references indexed in Scilit:
- Book receivedNeuropsychologia, 1985
- The role of learning from examples in the acquisition of recursive programming skills.Canadian Journal of Psychology / Revue canadienne de psychologie, 1985
- Learning to program in LISPCognitive Science, 1984
- Structure-mapping: A theoretical framework for analogyCognitive Science, 1983
- Schema induction and analogical transferCognitive Psychology, 1983
- Analogical problem solvingCognitive Psychology, 1980