Parial Order and Hasse Diagram

Consider the recent renovation of Hall. In this process several things had to be done.

  • Remove Asbestos
  • Replace Windows
  • Paint Walls
  • Refinish Floors
  • Assign Offices
  • Move in Office-Furniture.

Clearly, some things had to be done before others could even begin Asbestos had to be removed before anything; painting had to be done before the floors to avoid ruining them, etc. On the other hand, several things could have been done concurrently painting could be done while replacing the windows and assigning office could have been done at anytime. Such a scenario can be nicely modeled using partial orderings.

Partial Order Definition

A relation RR on a set SS is called a partial order if it is reflexive, antisymmetric and transitive. A set SS together with a partial ordering RR is called a partially ordered set or poset for short and is denoted by (S,R)(S, R)

Partial orderings are used to give an order to sets that may not have a natural one. In our renovation example, we could define an ordering such that (a,b)R(a, b) \in R if a must be done before bb can be done. We use the notation

aba \preccurlyeq b to indicate that (a,b)R(a, b) \in R is a partial order and aba \prec b when aba \neq b.

Comparability Definition

The elements a and b of a poset (S,)(S, \preccurlyeq) are called comparable if either a \preccurlyeq b or b \preccurlyeq a. When a,bSa, b \in S such that neither are comparable, we say that they are incomparable. Looking back at our renovation example, we can see that

Remove Asbestos ai\prec a_{i} for all activities aia_{i}. Also, Paint Walls \prec Refinish Floors.

Some items are also incomparable replacing windows can be done before, after or during the assignment of offices.

Total Orders Definition

If (S,)(S, \preccurlyeq ) is a poset and every two elements of S are comparable, S is called a totally ordered set. The relation \preccurlyeq is said to be a total order.

Example

The set of integers over the relation “less than equal to” is a total order; (Z,)(Z, \preccurlyeq) since for every a,bZa, b \in Z, it must be the case that aba \preccurlyeq b or bab \preccurlyeq a.

What happens if we replace \preccurlyeq with \prec

Hasse Diagram

As with relations and functions, there is a convenient graphical representation for partial orders Hasse Diagrams. Consider the digraph representation of a partial order since we know we are dealing with a partial order, we implicitly know that the relation must be reflexive and transitive. Thus we can simplify the graph as follows:

  • Remove all self-loops.
  • Remove all transitive edges.
  • Make the graph direction-less that is, we can assume that the orientations are upwards.

The resulting diagram is far simpler.

remove self loops remove ransitive loops

remove orientation

Hasse

Of course, you need not always start with the complete relation in the partial order and then trim everything. Rather, you can build a Hasse directly from the partial order

Draw a Hasse diagram for the partial ordering {(a, b) | a | b} on {1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60} (these are the divisors of 60)

Example

Extremal Elements

We will define the following terms:

  • A maximal/minimal element in a poset (S,)(S, \preccurlyeq).
  • The maximum (greatest)/minimum (least) element of a poset (S,)(S, \preccurlyeq).
  • An upper/lower bound element of a subset AA of a poset (S,)(S, \preccurlyeq).
  • The greatest upper/least lower bound element of a subset AA of a poset (S,)(S, \preccurlyeq). Lattice

Maximal Element Definition

An element a in a poset (S,)(S, \preccurlyeq) is called maximal if it is not less than any other element in SS. That is, bS(ab)\exists b \in S(a \prec b) If there is one unique maximal element a, we call it the maximum element (or the greatest element)

Minimal Element Definition

An element a in a poset (S,)(S, \preccurlyeq) is called minimal if it is not greater than any other element in SS. That is, bS(ba)\exists b \in S(b \prec a) If there is one unique minimal element a, we call it the minimum element (or the least element).

Example

Given the set A={2,3,4,5,8,10,12,24,30} and the divisibility relation on it.

Find the maximal elements.

  • We first draw the Hasse diagram for the poset.

Hasse diagram

The maximal elements are 24,30

Find the minimal elements. - The minimal elements are 2,3,5
Is there a greatest element in the poset? - The greatest element does not exist, as there are more than one maximal elements
Is there a least element in the poset? - The least element does not exist as there are more than one minimal element
Find all upper bounds of {8,12} - There is one upper bound for the subset {8,12} : 24
Find all lower bounds of {8,12} - The lower bounds of the subset {8,12} are 2, 4
What is the least upper bound of {4,8}? - The least upper bound of {4,8} is 8 (the smallest element of the upper bounds 8 and 24).
What is the greatest lower bound of {4,8}? - The greatest lower bound of {4,8} is 4 (the largest element of the lower bounds 2 and 4).