
568 Programming and Data Structures
The searching can be classified into the following types.
1) Linear search (sequential)
2) Binary search
16.3 LINEAR (SEQUENTIAL) SEARCH
The linear search is a usual method of searching data. The linear search is a sequential search. It is
the simple and the easiest searching method. In this method, the searching of an item starts from
the first item and goes up to the last item until the expected item to be found. An element that is to
be searched is checked in the entire data structure in a sequential way from starting to end. Hence,
it is called linear search. Though, it is straight forward, it has serio ...