Where we use Recursion in Practical ?
Recursion is heavily used in various areas.
Recursion is heavily used in various areas.
- We use in Stack example : Fibonacci Series
- We use in Trees . For Traversal , Insertion , Deletion , Searching.
- We use in Quick Sort and Merge Sort.
- Divide and Conquer -> Where bigger problem is divided into smaller chunks . Smaller chunks will be similar mostly.
- In Dynamic Programming we use recursion where we divide bigger problem and solve smaller chunks and use to solve the bigger problem.
No comments:
Post a Comment