Friday, April 4, 2014

Recursion

The topic of recursion is a very broad topic, it is the process of repeating items in a self-similar fashion. It can be viewed as an "infinite loop". In computer science, it is referred to a method of defining functions in which the function defined is applied within its own definition. That means that it defines an infinite number of solutions for your code! It uses a finite expression that sometimes refers to other instances, but there is no way a infinite chain can occur in your code. Recursion is more like a process of repeating objects over and over again. It is very useful when dealing with a code that contains numerous amounts of data, such as Binary Search Trees.

No comments:

Post a Comment