Write a short note on linear search.
Answers
Answered by
2
In computer science, a linear search or sequential search is a method for finding the binary search algorithm and hash tables, allow significantly faster searching for all but short lists.
Answered by
0
Answer:
A linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list. If each element is equally likely to be searched, then linear search has an average case of
n+1
/
2
comparisons, but the average case can be affected if the search probabilities for each element vary. Linear search is rarely practical because other search algorithms and schemes, such as the binary search algorithm and hash tables, allow significantly faster searching for all but short lists.
Explanation:
plzz mark me brilliant
Similar questions
Physics,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
Geography,
6 months ago
Biology,
11 months ago
Math,
11 months ago
Computer Science,
11 months ago