What is the worst-case time complexity of merge sort?
- AO(n)
- BO(n log n)
- CO(n²)
- DO(log n)
What is the worst-case time complexity of merge sort?
What is the time complexity of depth-first search on a graph stored as adjacency lists?
A loop starts with i = 1 and doubles i each iteration until i > n. How many iterations does it run?
What is the running time of LSD radix sort on n integers with d digits in base k?
What does the recurrence T(n) = 2T(n/2) + O(1) solve to?
A recurrence T(n) = 2T(n/2) + O(n) solves to:
What does the recurrence T(n) = 2T(n/2) + n log n solve to?
Which bound is correct for log(n!)?
Full step-by-step solutions: practise this topic on examproblems.com.