Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
Functionality 79
3.3 RECURSION
Repetition may be implemented through recursion, an elegant but over-
used construct. Recursion is the denition of a function, or structure, in
terms of itself. Hallmarks of well-designed recursion require the clear
specication of terminating or base cases and well-dened means to reach
such terminating conditions.
Elementary examples of recursion include the calculation of math-
ematical terms that are themselves dened recursively. Classic examples
are calculating the Fibonacci numbers as well as factorial values. See
Example 3.14 for simple code solutions to these two problems that corre-
spond direc
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204