What are the advantages of binary search over linear search?



What are the advantages of binary search over linear search?..

Answer / Pushpendra Katiyar

Binary search is more efficient than linear search, especially for large data sets. The main advantage of binary search is that it operates by repeatedly dividing the search interval in half, reducing the number of comparisons required to find an element. This results in a time complexity of O(log n) in the average case, while linear search has a time complexity of O(n).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Do all declaration statements result in a fixed reservation in memory?

1 Answers  


what is the need of data structure

11 Answers  


Is it possible to make an array volatile in java?

1 Answers  


What is a graph?

4 Answers  


How do you declare An array of three pointers to chars

1 Answers  


Define distributed query and linked server?

1 Answers  


What is impact of signed numbers on the memory using data structures?

1 Answers  


Is char array null terminated?

1 Answers  


How to reverse singly link list?

1 Answers  


What are the difference between arraylist and linkedlist from the perspective of sorting?

1 Answers  


What is the Role of push() and pop() method?

1 Answers  


What is difference between list and array?

1 Answers  


Categories