|
according to part of the invariant: (for all J s.t. U <= J <= N )( X[J] > T ) this implies that we cannot search for the case where X[N] = T. since any value of X[N] must be strictly > T. this leads to erroneously stating that B is equal to the next to last element when you search for the last element. |
Consider U = N+1 by Mike O'Donnell, 2001, Oct 19
to: