What is the worst-case time complexity of insertion sort?
- AO(n²)
- BO(n log n)
- CO(log n)
- DO(n)
What is the worst-case time complexity of insertion sort?
How much extra memory does a standard array-based merge sort use?
What is log₂ 1024?
The lower bound for comparison-based sorting in the worst case is:
Why is the base of a logarithm usually left out in Big O, as in O(log n)?
Quicksort always uses the first element as pivot. On which input does it show its worst-case behaviour?
What is the time complexity of: for i = 1 to n: for (j = i; j ≤ n; j = j + i) do O(1) work?
Shortest simple paths can be found in polynomial time. What is known about finding the longest simple path between two vertices in a general graph?
Full step-by-step solutions: practise this topic on examproblems.com.