A Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of element in the respective data structure. search is a very basic and simple search algorithm. In search system, we search an element or value in a given array by traversing or by repeatedly dividing the search interval in half. the array from the starting, till the desired element or value is found.