Linear Search

Linear Search is a used for finding the key element in the multiple of elements in a given array. Now a days, Linear search is not that much used because Linear search algorithm is slow as compare to binary search or hashing. Algorithm: First step is traverse the arrayNext is match the search element with the array elements.If the search element is found then return the index position...

Binary Search Program

There are two types of searching are possible. First is linear search and second is binary search. In this article we explain about the binary search program, if you want to learn about what is linear search and how it works? see this article Linear Search. The linear search and binary search are used to find the key element in a given multiple elements and displays the position...

Back to Top