Recursion




Document: Software Engineering 1: Course Notes

next Copyright
up Chapter 2 pp. 20-26
previous Preferences?

Recursion

Alcock chooses to introduce recursion toward the end of Chapter 2. I'm not sure I agree with the need for this. Recursion - functions which invoke themselves - is an interesting programming concept, and it does permit very elegant solutions to certain programming problems. On the other hand, there is never a situation where the same effect as recursion cannot be achieved using conventional iteration mechanisms, such as for statements.

In any case, all I will add to Alcock's discussion are the following brief comments:




Document: Software Engineering 1: Course Notes

next Copyright
up Chapter 2 pp. 20-26
previous Preferences?



McMullin@ugmail.eeng.dcu.ie
Wed Apr 12 19:40:14 BST 1995