Advertisements
Advertisements
प्रश्न
The most efficient search algorithm is ______.
विकल्प
Binary search
Reverse search
Linear search
Pointer search
MCQ
रिक्त स्थान भरें
Advertisements
उत्तर
The most efficient search algorithm is Binary search.
Explanation:
Binary search works on a sorted list by comparing the target with the middle element and then discarding half the list each step, so the search space halves each time. Its time complexity is O(log n), which is much faster than linear search’s O(n).
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
