recursive algorithms Flashcards
1
Q
recursive case
A
where we use the same algorithm to solve a simpler version of the problem. This is where the method calls itself with the same number of parameters to solve a smaller version of the problem.
2
Q
base case
A
the solution to the “simplest” possible problem. The base case does not require calling itself or any recursive case.
3
Q
forward phase
A
phase of recursion where a call to the function spins off another function call (think about it as a clone of itself), and that spins off another call and so on until the base case is reached.