Ask a question
          

Recursive algorithm

<<Previous Next>> 
Data structure  - What is an recursive algorithm? - Feb 27, 2010, 11:15 am by Rajmeet Ghai

What is an recursive algorithm?

A recursive algorithm calls itself which usually passes the return value as a parameter to the algorithm again. This parameter is the input while the return value is the output.

Data structure  - What is an recursive algorithm? - July 31, 2009, 10:55 am by Vidya Sagar

What is an recursive algorithm?

Recursive algorithm is a method of simplification that divides the problem into sub-problems of the same nature. The result of one recursion is the input for the next recursion. The repletion is in the self-similar fashion. The algorithm calls itself with smaller input values and obtains the results by simply performing the operations on these smaller values. Generation of factorial, Fibonacci number series are the examples of recursive algorithms.

<<Previous Next>> 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
 
Home | Login | About us | Sitemap | Contact us