Workshop 4 - Recursion Flashcards

1
Q

Background to Recursion

A

Repeating code implicitly when a method/function calls itself.

Compared to explicitly where a for and while loop is used instead.

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

Recursion

A

Technique where problem is expressed as subproblems in similar/same form to original problem but smaller in scope.

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

Recursion applied to problems?

A

Solution is easy to specify - stopping case.

Recursive steps - Rules proceeding to next state which is either stopping case and eventually reaches it if its not.

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