Suppose a list of increasing integers is 1,3,4,5,8,9,11.
Suppose we conduct the binary search algorithm on this list where we search for 8.
In the language of Algorithm 3 in the book, enter the correct values for the following variables for this particular search:

After the first iteration of the while loop, what are the values of the following variables?

Intuitively, after the first iteration of the while loop, we have cut down our search to a set S of roughly half of the original numbers on the list. Check the numbers that are in the set S after the first iteration of the while loop:
has the following elements:









After the second iteration of the while loop, some of the variables have altered values. Enter the values of the following variables after the second while loop iteration:

After the third iteration of the while loop, some of the variables have altered values. Enter the values of the following variables after the third while loop iteration:

After the 3rd iteration of the while loop, the while loop terminates and the variable `location' is computed. Enter the value for this variable in this case:

You can earn partial credit on this problem.