What is the major drawback of Linear Search compared to other searching algorithms?

  • Linear Search has a high time complexity.
  • Linear Search is not easily implemented.
  • Linear Search is not suitable for sorted data.
  • Linear Search requires extra memory.
The major drawback of Linear Search is that it is not efficient for searching in large sets of sorted data. Unlike Binary Search or Hashing, which have logarithmic time complexity, Linear Search has a linear time complexity, making it slower for large datasets. It doesn't take advantage of data being sorted. The other options do not accurately represent the primary drawback of Linear Search.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *