Another example: suppose I tell you that left=1,
right=17, piv=75, s=7, and the elements of array A in
slots 'left' through 'right' are
[51 70 87 68 94 59 81 95 37 80 26 75 90 03 52 51 03]
just before the call to pivotbis in the
repeat loop of the
selection2 algorithm.
Which of those elements of A will be in slots 'left'
through 'right' after the call to pivotbis executes, and
after the part of the code that updates 'left' or 'right'
executes? { Ans: 51, 70, 68, 59, 37, 26, 03, 52, 51,
and 03 (in some order)}