Lecture 05 - Recursion
Lecture 05 - Recursion
Data Structures
Lecture 05 – Recursion
2
Learning Objectives
● By the end of this lecture you must be able to:
• Differentiate between recursion and a
recursive method
• Understand the 2 cases required in any
recursive method implementation
• Implement a recursive method
• Trace a recursive method
3
Introduction
● Rem:
• Methods are written to solve problems
• Method is a collection of related statements
• Searching Arrays …
15
Q &A
16