Maximum comparisons needed by binary search on 1 024 sorted items is about:
- 512
- 11
- 1024
- 100
Answer
B) 11
⌊log₂ 1024⌋ + 1 = 10 + 1 = 11. SLO CS-11-B-02
Computer Science MCQ · More Unit 2: Computational Thinking and Algorithms MCQs · Practise
B) 11
⌊log₂ 1024⌋ + 1 = 10 + 1 = 11. SLO CS-11-B-02
Computer Science MCQ · More Unit 2: Computational Thinking and Algorithms MCQs · Practise