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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

base case

A

the solution to the “simplest” possible problem. The base case does not require calling itself or any recursive case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly