Recursion or Iteration
Ramy Esteero, Mohammed Rabbul Hossain Khan, Mohamed Mohamed et al. · ACM Technical Symposium on Computer Science Education (SIGCSE) · 2018
Recursion and iteration are two key topics taught in introductory Computer Science. This is especially so for CS2 students, as CS2 is the course where recursion is typically taught and where control-flow concepts are solidified. When asked to solve a problem that could feasibly be solved with recursion or iteration, what do CS2 students choose to do? And how does this choice relate to the correctness of their code? This paper provides one answer to these questions through an analysis of student exam responses to a problem on finding deepest common ancestors in trees.
Cited by 10 works. doi:10.1145/3159450.3159455
Authors
References
- Teaching recursion in a procedural environment—how much should we emphasize the computing model?
- Reviewing CS1 exam question content
- Learning iteration and recursion from examples
- Teaching and learning recursive programming: a review of the research literature
- Developing Course-Level Learning Goals for Basic Data Structures in CS2
- The case of base cases
- Recursion vs. Iteration
- Teaching recursion in a procedural environment—how much should we emphasize the computing model?
- Is iteration really easier to learn than recursion for CS1 students?
- Exploring variation in students' correct traces of linear recursion