Based on the principle that binary search only works with array of ordered integers , if I have to fetch an integer from an ordered vector the search speed would be much more faster than a sequential search, but my question is, if my vector is not ordered how much would it influence the speed in relation to the sequential search if I have to sort it? and if we can go deeper think about a binary search in a String vector the process would be:
In these two examples how much would it influence the speed in relation to the sequential search processes before the binary search?