DATA STRUCTURE - Searching methodes
Searching methods In data structure there are searching methods applying to search element. There are two searching methods are available for searching data element in two different ways. 1) Linear search – This is the first and basic searching techniques. According to its name in this searching method we have to follow sequence, i.e., we have to check each and every data element of data structure one by one. It doesn’t matter how many data elements are there in data structure. We have to check all data element because we cannot directly go to the data element for which we are looking. There is one disadvantage of this searching method that this is time consuming searching method, because it takes time to compare each and every element for the required data. Algorithm for linear search 1. Initialize counte...