RECURSION VS ITERATION - AN EMPIRICAL-STUDY OF COMPREHENSION

Citation
Ac. Benander et al., RECURSION VS ITERATION - AN EMPIRICAL-STUDY OF COMPREHENSION, The Journal of systems and software, 32(1), 1996, pp. 73-82
Citations number
27
Categorie Soggetti
System Science","Computer Science Theory & Methods","Computer Science Software Graphycs Programming
ISSN journal
01641212
Volume
32
Issue
1
Year of publication
1996
Pages
73 - 82
Database
ISI
SICI code
0164-1212(1996)32:1<73:RVI-AE>2.0.ZU;2-H
Abstract
An extensive study involving three test groups over a period of three different years was performed to determine differences between compreh ension of recursive and iterative code constructs. This study involved computer science students enrolled in six different data structure cl asses using PASCAL and obtained 275 responses, which were statisticall y analyzed. Using a chi(2) test, one task - searching a linked list fo r a given value - showed a statistically significant (p = 0.006) diffe rence in comprehension favoring recursion. Another task - making a cop y of a linked list - favored iteration, but not with statistical signi ficance. Among responses with correct comprehension, a comparison of m eans test was performed on the comprehension times among the latter tw o groups in the study. There was a faster rate of comprehension of the recursive code for both of the tasks (p = 0.096 for the search and p = 0.045 for the copy). A two-way analysis of variance suggested a tend ency toward an interaction effect between task and construct in terms of comprehension time.