Beyond Adjacency

Note that the definition is given in terms of adjacent elements only.

However, we can make the following inference.

Lemma: If B is sorted, tex2html_wrap_inline187 if and only if tex2html_wrap_inline189 .

That means that every object to the left of B[j] is smaller than B[j] (not just the adjacent one).

How would you prove this?


next up previous
Next: Keys Up: SORTING Previous: Permutations