Alice has 9 numbers and wants to sort them in increasing order: It should be an easy task, but Alice only knows how to sort 6 numbers! Therefore, she does the following:
Finally, it sorts the 9 numbers! Does this method work for any 9 numbers?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
After sorting the first three numbers, it is true that the forth, fifth, and sixth numbers will each be greater than the first three, meaning that none of the three greatest numbers are in the first three positions. After the second sort, it is true that the last three numbers will be the greatest of the nine, as the second sort deals with all numbers but the first three, which are guaranteed to not be a part of the greatest three. The final sort deals with the first six numbers, which are also the lowest six. After the final sort, the first and lowest six are sorted in increasing order, and the remaining, last, and greatest three numbers are sorted in increasing order. This meaning that all nine numbers are sorted in increasing order.