You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raghusumanth edited this page Jan 8, 2022
·
11 revisions
Searching Algorithms:
Sequential Search: List or array is traversed sequentially and every element is searched. ex: linear search
Interval Search: specifically designed for searching in sorted data-structures. ex: binary search
Linear search: time complexity is O(n).
Linear search is rarely used practically because other search algorithms such as the binary search algorithm and hash tables allow significantly faster-searching comparison to Linear search.