KnowledgeBoat Logo
|

Computer Applications

Which of the following statements is true?

  1. Binary search is less efficient than linear search.
  2. Binary search is more efficient than linear search.
  3. Binary search is as efficient as linear search.
  4. None of the above

Java Arrays

7 Likes

Answer

Binary search is more efficient than the linear search.

Reason — Binary search is more efficient than linear search as it requires lesser number of comparisons to find an element in an array compared to linear search.

Answered By

6 Likes


Related Questions