Thought Exercise
l
What if the search program were instead a
binary
search
of an ordered array?
l
What would the loop invariant be?
l
How would you prove that it holds?