What is recursion?
- AA sorting method
- BA type of data structure
- CA function that calls itself on smaller inputs
- DA loop that never ends
What is recursion?
A problem is usually called tractable if:
What is the running time of counting sort for n integers in the range 0 to k?
A recurrence T(n) = 2T(n/2) + O(n) solves to:
What is the worst-case time complexity of quicksort?
How much stack space does a simple recursive factorial function fact(n) = n × fact(n − 1) use?
Why is the average lookup in a hash table O(1) but the worst case O(n)?
What does the recurrence T(n) = 2T(n/2) + n log n solve to?
Full step-by-step solutions: practise this topic on examproblems.com.