What is the time complexity of finding the largest value in an unsorted array of n numbers?
- AO(log n)
- BO(n)
- CO(n log n)
- DO(1)
What is the time complexity of finding the largest value in an unsorted array of n numbers?
What is O(2ⁿ) growth called?
Which sorting algorithm chooses a pivot and partitions the array into smaller and larger elements?
What is the time complexity of the Bellman–Ford algorithm on a graph with V vertices and E edges?
What is the time complexity of: for i = 1 to n: for j = 1 to i: do O(1) work?
What does the recurrence T(n) = 2T(n/2) + O(1) solve to?
What did the Cook–Levin theorem establish?
The 0/1 knapsack problem solved with dynamic programming takes O(nW) time. Why is this called pseudo-polynomial?
Full step-by-step solutions: practise this topic on examproblems.com.