CIA3
CIA3
Sequential Interval
Search Search
Linear Binary
Search Search
3
Sequential
Search
For example:-
Linear Search
4
Interval Search
These algorithms are specifically designed for
searching in sorted data-structures.
These type of searching algorithms are much
more efficient than Linear Search as they
repeatedly target the center of the search
structure and divide the search space in half.
For Example:-
Binary Search
5
Linear Search
Linear search is the simplest search
algorithm and often called sequential search.
In this type of searching, we simply traverse
the list completely and match each element of
the list with the item whose location is to be
found.
If the match found then location of the item is
returned otherwise the algorithm return
NULL.
Linear search is mostly used to search an
unordered list in which the items are not
sorted. 6
Steps for Linear Search
14