What is the difference between linear search and binary search?
Answers
Answered by
3
Heya!
The major difference between linear search and binary search is that binary search takes less time to search an element from the sorted list of elements. So it is inferred that binary search method is more efficient than linear search. linear search spend O(n)time. It just simply compares key to one by one.
Regards.
Pls mark it as brainliest answer and don't forget to follow me.
The major difference between linear search and binary search is that binary search takes less time to search an element from the sorted list of elements. So it is inferred that binary search method is more efficient than linear search. linear search spend O(n)time. It just simply compares key to one by one.
Regards.
Pls mark it as brainliest answer and don't forget to follow me.
AritraRoy6543:
pls mark it as brainliest answer and don't forget to follow me
Similar questions