22. Which of the following statements is used in the binary search algorithm to halve the array ?
You must be logged in to post a comment.
You must be logged in to post a comment.
You must be logged in to post a comment.
You must be logged in to post a comment.
25. Which of the following is false ?
A binary search begins with the middle element in the array
A binary search continues having the array either until a match is found or until there are no more elements to search
If the search argument is greater than the value located in the middle of the binary, the binary search continues in the upper half of the array
For a binary search to work, the data in the array must be arranged in either alphabetical or numerical order
You must be logged in to post a comment.
You must be logged in to post a comment.
You must be logged in to post a comment.