Chapter 16: Recursion


16.1 Introduction

Recursion is a design and programming technique by which a structure is defined in terms of itself. A method definition that contains a call to it is said to be recursive. This approach to design and implement functions accomplishes the same goal as using the iterative approach for problems with repetitions. Recursion can sometimes be simpler and clearer than an iterative solution to a problem. It has been used to describe complex algorithms.

This chapter introduces the basic concepts that involve recursion and includes a problem-solving application of recursion using recursive function calls.




Object-Oriented Programming(c) From Problem Solving to Java
Object-Oriented Programming (From Problem Solving to JAVA) (Charles River Media Programming)
ISBN: 1584502878
EAN: 2147483647
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net