Question:

Linear Search is useful when:

Show Hint

Linear Search is simple but becomes inefficient for very large datasets because its time complexity is \(O(n)\).
Updated On: Jun 8, 2026
  • Data is unsorted
  • Dataset is small
  • Both A and B
  • Data is indexed
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Concept: Linear Search examines each element one by one until the desired element is found.

Step 1:
Consider unsorted data Linear Search does not require the elements to be arranged in any particular order.

Step 2:
Consider small datasets For a small number of records, Linear Search is simple to implement and performs efficiently.

Step 3:
Choose the most appropriate option Since Linear Search is suitable for both unsorted data and small datasets, the correct answer is: \[ \boxed{\text{Both A and B}} \] Final Answer: \[ \boxed{\text{Both A and B}} \]
Was this answer helpful?
0
0