Dictionary ordering

cosmos 29th October 2017 at 11:54pm
Ordering

aka lexicographic or lexicographical order or lex

Sets A and B with relations <A<_A and <B<_B respectively. The dictionary ordering, <<, is defined on A×BA\times B (Cartesian product) as

a1×b1<a2×b2a_1 \times b_1 < a_2 \times b_2

if a1<Aa2a_1 <_A a_2, or {a1=a2a_1 = a_2 and b1<Bb2b_1 <_B b_2}.

https://en.wikipedia.org/wiki/Lexicographical_orderhttp://mathworld.wolfram.com/LexicographicOrder.html

Lexicographic order in Combinatorics of the Power set

One variant widely used in combinatorics orders subsets of a given finite set by assigning a total order to the finite set, and converting subsets into increasing sequences, to which the lexicographical order is applied.

We define the ordering for subsets in the same layer of the Power set by : A<BA < B if ABA \neq B and min(AB)A\min{(A \triangle B)} \in A

Equivalently, if we have distinct A,B[n](r)A,B \in [n]^{(r)}, and for each of which we have ordered the elemts a1<...<ara_1 < ... < a_r, and b1<...<brb_1 < ... < b_r, we then apply the dictionary ordering for sequences a1...ara_1...a_r and b1...brb_1...b_r. That is A<BA<B if ai<bia_i < b_i, where i=min{j:ajbj}i = \min{\{j : a_j \neq b_j \}}.

–> Basically, imagine laying the elements of [n][n] vertically in a column in ascending order from bottom to top. Then if we look at the elements of the two sets, we look at the set that has the smallest element, which isn't also in the other set. For the colexicographic order, we do the same but looking at "the top", looking at the largest element.

We can also define the Colexicographic order or colex:

A<BA < B if ABA\neq B and max(AB)B\max{(A\: \triangle \: B)} \in B.