ABSTRACT

I once attempted to learn the rudiments of the programming language Prolog from textbooks. At one point I found myself reading a section on recursion. The section attempted to explain the concept of recursion and presented about half a dozen examples. As I read the section I felt that the concept was quite well explained and that the examples were readily understandable. At the end of the section there were some exercise problems and so I got a sheet of paper and had a go at the first one. I quickly discovered that I hadn’t a clue where to begin to solve the problem.