Algorithms Flashcards
(2 cards)
1
Q
Recursive Function Properties
A
- Must call itself. The program context for each call is placed on the call stack.
- Must have a base case/ exit criteria which triggers the end of the recursion. The base case is the smallest problem that can be solved without further recursion
- Progressive approach. Must move towards its base case
2
Q
What to mention when asked to describe algorithm using big O notation
A
make sure to mention Worst, Average and Best case scenarios and how they occur