Which sorting algorithm chooses a pivot and partitions the array into smaller and larger elements?
- ABubble sort
- BMerge sort
- CInsertion sort
- DQuicksort
Which sorting algorithm chooses a pivot and partitions the array into smaller and larger elements?
What is the time complexity of depth-first search on a graph stored as adjacency lists?
What is the worst-case time complexity of insertion sort?
Is it correct to say that an O(n²) algorithm is also O(n³)?
What is the time complexity of the standard dynamic programming algorithm for the longest common subsequence of strings of lengths m and n?
You sort an array of n elements once and then answer k membership queries with binary search. What is the total cost?
The halting problem shows that:
Strassen's algorithm multiplies matrices using 7 instead of 8 recursive multiplications of half-size blocks. What is its running time?
Full step-by-step solutions: practise this topic on examproblems.com.