Book contents
- Frontmatter
- Contents
- Preface
- 1 Introduction to recursion
- 2 Recursion with linked-linear lists
- 3 Recursion with binary trees
- 4 Binary recursion without trees
- 5 Double recursion, mutual recursion, recursive calls
- 6 Recursion with n-ary trees and graphs
- 7 Simulating nested loops
- 8 The elimination of recursion
- Further reading and references
- Index of procedures
- Frontmatter
- Contents
- Preface
- 1 Introduction to recursion
- 2 Recursion with linked-linear lists
- 3 Recursion with binary trees
- 4 Binary recursion without trees
- 5 Double recursion, mutual recursion, recursive calls
- 6 Recursion with n-ary trees and graphs
- 7 Simulating nested loops
- 8 The elimination of recursion
- Further reading and references
- Index of procedures
Summary
Recursion is the Cinderella of programming techniques where languages such as Pascal are concerned. All primers mention it, of course, but generally devote only a few pages to it. Rohl and Barrett's Programming via Pascal is one of the more generous: it contains one chapter of 12 pages on the subject!
Books appropriate to second courses in programming, such as those by Wirth (1976), Alagic & Arbib (1978), and the more modern data structures texts, have helped considerably; but currently there is no book devoted to the use of recursion in Pascal or similar languages.
And yet this used not to be the case: Barron's delightful little book Recursive Techniques in Programming was published in 1968! Sadly it is now out of print, and in any event was beginning to show its age. Recursion via Pascal is the author's attempt to fill this gap.
Of course, in functional programming, recursion has received its full due, since it is quite often the only repetitive construct, and this area is fairly well served with text-books. In Recursion via Pascal, most of the examples are procedures rather than functions, partly because that is the usual Pascal style and partly because we want to give examples which actually do something, like drawing the cover motif of this series, instead of merely having a value. Reading one of the functional texts after finishing this book would provide an alternative perspective.
- Type
- Chapter
- Information
- Recursion via Pascal , pp. ix - xPublisher: Cambridge University PressPrint publication year: 1984