What is the time complexity of linear search in an unsorted array of n elements (worst case)?
- AO(n)
- BO(1)
- CO(log n)
- DO(n²)
What is the time complexity of linear search in an unsorted array of n elements (worst case)?
Which sorting algorithm repeatedly swaps adjacent elements that are in the wrong order?
What is the time complexity of finding the largest value in an unsorted array of n numbers?
What does amortised analysis measure?
A recurrence T(n) = 2T(n/2) + O(n) solves to:
About how many comparisons does binary search need in the worst case on a sorted array of 1,000,000 elements?
Which statement about little-o notation is correct?
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.