Searching Algorithms: Binary Search - Complexity Analysis - Applications

Download Q&A
Q. If a binary search is performed on an array of size 16, how many comparisons are needed in the worst case?
  • A. 4
  • B. 5
  • C. 6
  • D. 7
Q. What is the worst-case time complexity of binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely