Single Choice Easy

QWhich of the following is a disadvantage of the binary search algorithm?

ID: #5729 Divide and Conquer 211 views
Question Info
#5729Q ID
EasyDifficulty
Divide and ConquerTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A It only works on sorted lists
  • B It is slower than linear search for small lists
  • C It requires a lot of memory
  • D It can be difficult to implement
Correct Answer

Explanation

Answer: It only works on sorted lists

Explanation: The binary search algorithm requires that the list be sorted, which can be a disadvantage if the list is not already sorted or if sorting it is expensive.

Share This Question

Challenge a friend or share with your study group.