s of \{1, \ldots, 6\}, represented as sets of red squares, increasing sequences (in blue), or by their
indicator functions, converted in
decimal notation (in grey). The grey numbers are also the rank of the subsets in all subsets of \{1, \ldots, 6\}, numbered in colexicographical order, and starting from 0. The lexicographical (lex) and colexicographical (colex) orders are on the top and the corresponding reverse orders (rev) on the bottomOne passes from an order to its reverse order, either by reading bottom-up instead of up-bottom, or by exchanging red and white colors. In
combinatorics, one has often to enumerate, and therefore to order the
finite subsets of a given set S. For this, one usually chooses an order on S. Then,
sorting a subset of S is equivalent to converting it into an increasing sequence. The lexicographic order on the resulting sequences induces thus an order on the subsets, which is also called the . In this context, one generally prefers to sort first the subsets by
cardinality, such as in the
shortlex order. Therefore, in the following, we will consider only orders on subsets of fixed cardinal. For example, using the natural order of the integers, the lexicographical ordering on the subsets of three elements of S = \{1, 2, 3, 4, 5, 6\} is : ::. For ordering finite subsets of a given cardinality of the
natural numbers, the order (see below) is often more convenient, because all
initial segments are finite, and thus the colexicographical order defines an
order isomorphism between the natural numbers and the set of sets of n natural numbers. This is not the case for the lexicographical order, as, with the lexicographical order, we have, for example, 12 n for every n > 2. ==Group orders of Z
n==