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.
2
Q
Recursion
A
Technique where problem is expressed as subproblems in similar/same form to original problem but smaller in scope.
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.
4
Q
A