To establish the fewest comparisons needed for Linear Search, we examine its operation. Linear Search sequentially checks every list item from the start until the target is found or the list concludes.
The optimal scenario occurs when the target is the list's initial element. Here, a single comparison suffices. Consequently, the minimum comparison count is: 1
The process for achieving this minimum in Linear Search involves:
This demonstrates that the best-case for Linear Search necessitates only one comparison, affirming the correct result: 1.
Arrange the following in the ascending order of their time complexity.
(A) Worst Case of Linear Search
(B) Best Case of Binary Search
(C) Worst Case of Binary Search
(D) Worst Case of Bubble Sort
Choose the correct sequence from the options given below: