1.

Can we use the binary search algorithm for linked lists? Justify your answer.

Answer»

No, we cannot use the binary search algorithm for LINKED lists. 
EXPLANATION: Because random ACCESS is not allowed in linked lists, reaching the MIDDLE element in constant or O(1) time is impossible. As a result, the usage of a binary search algorithm on a linked list is not possible.



Discussion

No Comment Found