Computer Science, asked by maisayantan80311, 1 year ago

Is it possible to do binary seach in an array that is not sorted?

Answers

Answered by Anonymous
0
Yes the binary search can be performed on an unsorted array but it will not yield the true and actual result.
You can perform but what's the use then! 
First sort your array using any sorting method like bubble sort or selection sort ,then use binary search.
By the way , linear search program is easier but it takes a lot of time and space(memory).
Similar questions