Answer:1. Initialize an ordered array, searcharray, searchno, length.
2. Initialize low=0 and high=length.
3. Repeat step 4 till low<=high.
4. Middle =(low + high) / 2.
5. if searcharray[middle]=searchno
Search is successful
return middle.
else if searcharray[middle]>searchno[high]
high=middle - 1
else
low=middle + 1.