recursion

9

Upload: preston-university

Post on 07-Aug-2015

13 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Recursion
Page 2: Recursion

Data StructurePresented By:

MUHAMMAD JUNAID BS(CS) 1521-111010

Page 3: Recursion

Presentation Topic:

Recursion

Page 4: Recursion

What is Recursion???

A method of programming whereby a function directly or indirectly calls itself.

Recursion is the process where a method call itself to be able to perform a certain task.

Page 5: Recursion

What is Recursion???

The process of repeating the same thing till you are done is called recursion.

Recursion if an important concept in computer science. Many algorithms can be best described in terms of recursion.

Page 6: Recursion

Recursion

Recursion is a computer programming technique involving the use of a procedure, subroutine, function, or algorithm that calls itself in a step having a termination condition so that successive repetitions are processed up to the critical step where the condition is met at which time the rest of each repetition is processed from the last one called to the first.

Page 7: Recursion

Example of Recursion

Page 8: Recursion

EXAMPLE OF RECURSION

Page 9: Recursion