answersLogoWhite

0

Write a short note on linear search?

Updated: 9/19/2023
User Avatar

Wiki User

12y ago

Best Answer

Linear search, also known as sequential search, is a process that checks every element in the list sequentially until the desired element is found. The computational complexity for linear search is O(n), making it generally much less efficient than binary search (O(log n)). But when list items can be arranged in order from greatest to least and the probabilities appear as geometric distribution (f (x)=(1-p) x-1p, x=1,2),then linear search can have the potential to be notably faster than binary search.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a short note on linear search?
Write your answer...
Submit
Still have questions?
magnify glass
imp