What is the time complexity of linear search in an unsorted array of n elements (worst case)?
- AO(n)
- BO(1)
- CO(n²)
- DO(log n)
What is the time complexity of linear search in an unsorted array of n elements (worst case)?
What is the best-case time complexity of insertion sort, on an already sorted array?
Which sorting algorithm repeatedly swaps adjacent elements that are in the wrong order?
Why does dynamic programming give no real speed-up for merge sort?
What does the recurrence T(n) = 2T(n − 1) + O(1) solve to?
What is the time complexity of the standard dynamic programming algorithm for the longest common subsequence of strings of lengths m and n?
Strassen's algorithm multiplies matrices using 7 instead of 8 recursive multiplications of half-size blocks. What is its running time?
Which two things must be shown to prove that a decision problem X is NP-complete?
Full step-by-step solutions: practise this topic on examproblems.com.