Multiple choice

Which of the following statements is/are true?

  1. Linear search is slow as compared to binary search.

  2. Linear search requires sorted data.

  3. Linear search is not efficient with large data.

  4. The complexity of binary search is O(log n).

  5. Only (1), (3) and (4) are true.

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Yes, these statements are true.