2.5. Posets: Partial Order and Poset
2.5. Posets: Partial Order and Poset
Posets
In this module we introduce the concepts of Posets and totally ordered set. We
illustrate the method of drawing a Hasse diagram of a finite poset and study
Lexicographic ordering. At the end we discuss the technique of topological
sorting.
We often use relations to order some or all of the elements of sets. For example
(i) we order words using the relation containing pairs of words (𝑥, 𝑦), where the
word 𝑥 comes before the word 𝑦 in the dictionary, (ii) we schedule projects using
the relation consisting of pairs (𝑥, 𝑦), where 𝑥, 𝑦 are tasks in a project such that
the task 𝑥 must be completed before the task 𝑦 begins, (iii) we order the
elements of a set of real numbers using the relation containing the pairs (𝑥, 𝑦)
where 𝑥 is less than 𝑦. If we add all the pairs of the form (𝑥, 𝑥) to these relations,
we obtain the relation that is reflexive, antisymmetric and transitive. These are
the properties that characterize relations used to order the elements.
Examples
This notation is used because the relation ≤ is the most familiar example of a
partial order on 𝑹 and the symbol ≼ is similar to ≤.
Comparability in a poset
The adjective partial in the poset means that there may be pairs of elements
which are incomparable. If every pair of elements in a poset are comparable then
the ordering relation is called a total order.
Totally ordered set: If (𝐴, ≼) be a poset and every two elements of 𝐴 are
comparable then (𝐴, ≼) is called a totally ordered set or linearly ordered set or
chain and ≼ is called a total order or a linear order.
Lexicographic order
Let (𝐴1 , ≼1 ) and (𝐴2 , ≼2 ) be two Posets. Consider the Cartesian product 𝐴1 × 𝐴2.
The lexicographic ordering ≼ on 𝐴1 × 𝐴2 is defined by
𝒙𝟏 , 𝒚𝟏 ≼ 𝒙𝟐 , 𝒚𝟐 ⟺ 𝒙𝟏 ≺𝟏 𝒙𝟐 ∨ 𝒙𝟏 = 𝒙𝟐 ∧ 𝒚𝟏 ≼𝟐 𝒚𝟐
2, 2 ≼ 2, 1 , 3, 1 ≼ 1, 5 , 2, 2 ≼ 2, 2 , 3, 2 ≼ 1, 1 , 4, 9 ≼ 4, 11 , …
Let (𝐴, ≼1 ) be a totally ordered set. Let 𝑛 be a given natural number and
𝑛
𝑃 = 𝐴 ∪ 𝐴2 ∪ 𝐴3 ∪ … . 𝑈𝐴𝑛 = 𝐴𝑖
𝑖=1
(𝑎1 , 𝑎2 , … , 𝑎𝑝 ) ≼ (𝑏1 , 𝑏2 , … , 𝑏𝑝 , … , 𝑏𝑞 )
if any of the following hold:
i) 𝑎1 , 𝑎2 , … . , 𝑎𝑝 = (𝑏1 , 𝑏2 , … , 𝑏𝑝 )
ii) 𝑎1 ≠ 𝑏1 and 𝑎1 ≺1 𝑏1 in (𝐴 ≼1 )
iii) 𝑎𝑖 = 𝑏𝑖 , 𝑖 = 1,2, … , 𝑘 𝑘 < 𝑝 and 𝑎𝑖+1 ≠ 𝑏𝑖+1 and 𝑎𝑖+1 ≺1 𝑏𝑖+1 in (𝐴, ≼1 )
(𝑏1 , 𝑏2 , … , 𝑏𝑞 ) ≼ (𝑎1 , 𝑎2 , … , 𝑎𝑝 )
𝑃 = 𝐴 ∪ 𝐴2 ∪ 𝐴3 ∪ 𝐴4 ∪ 𝐴5
That is ,𝑃 consists of all words or strings of 5 or fewer than 5 letters from 𝐴. The
lexicographic ordering in 𝑃 is same as that used in dictionaries
For example, ante ≼ axe (by ii), zebra ≼ zero (Here “zero” and “zebra” are
compared and the conditions (i), (ii) and (iii) are not satisfied) and
zerm ≼ zero (by (iii))
Hasse diagrams
We can simplify the diagraphs of a finite poset by omitting many of its edges. For
instance, since a partial order is reflexive, each vertex has a loop, which we can
delete. In addition, drop all edges implied by transitivity (For example if the
digraph of a poset contains edges 𝑎, 𝑏 and (𝑏, 𝑐) , then it has the edge 𝑎, 𝑐 ,
which we can omit. Finally, draw the remaining edges upward and drop all
arrows. The resulting diagram is called the Hasse diagram, named after the
twentieth – century German mathematician Helmut Hasse (1898 − 1979) .
Example 7: Draw the Hasse diagram for the poset (𝑨, |), where
𝑨 = 𝟏, 𝟐, 𝟑, 𝟔, 𝟖, 𝟏𝟐 and | denotes the divisibility relation.
Step 3: Omit all arrows and arrange all edges pointing upward to obtain the Hasse
diagram.
Following the steps 1-3, produces the Hasse diagram of the poset (𝑷 𝑨 , ⊆)
Example 9: Draw the Hasse diagram of the poset 𝑨, ), where
𝑨 = 𝟐, 𝟑, 𝟔, 𝟏𝟐, 𝟐𝟒, 𝟑𝟔
The maximal and minimal elements in a finite poset are the top and bottom
elements in its Hasse diagram.
Note:
(i) A poset may have more than one maximal element and more than one
minimal element.
(ii) A poset need not have any maximal or minimal elements. For example the
poset 𝒁, ≤ has no maximal or minimal elements.
(iii) A poset may have a maximal element but no minimal elements or a
minimal element but no maximal elements. For example 𝒁−, ≤ has a
maximal element but no minimal elements, where as the poset 𝑵, ≤ has
a minimal element but no maximal elements.
Although an arbitrary poset need not have a minimal element, every non empty
finite poset has at least one minimal element. We state this result as a lemma.
Two special extremal elements are the greatest and the least elements.
i. The least element (greatest element) if exists is unique and they are the
bottom most (topmost) elements in the Hasse diagram of a finite poset.
ii. The least element and the greatest element of a poset are usually denoted
by 0 and 1 respectively
The poset 𝐴, | where 𝐴 = 1, 2, 3, 6, 8,12 has no greatest element, but has the
least element 1.
The poset 𝐴, | where 𝐴 = 2,3, 6, 12, 24, 36 has no least element and has no
greatest element.
Topological Sorting
Suppose that a project is made up of 𝑛 different tasks say 𝑡1 , 𝑡2 , 𝑡3 , … , 𝑡𝑛 .Some
tasks can be completed only after others have been finished. To find an order 𝑅
for these tasks, we set up a partial order on the set of tasks so that 𝑡𝑖 𝑅 𝑡𝑗 , 𝑖 ≠ 𝑗,
iff the task 𝑡𝑗 cannot be started until the task 𝑡𝑖 has been completed. To produce
a schedule for the project, we need to produce an order for all 𝑛 tasks that is
compatible with this partial order.
𝒂 ≼ 𝒃 whenever 𝒂𝑹𝒃
The following is the procedure of a topological sorting and it works for any finite
nonempty poset.
To define a total ordering on the poset 𝐴, 𝑅 where 𝐴 has 𝑛 elements , first
choose a minimal element, say 𝑎1 (such an element exists by Lemma 1). Now
note that 𝐴 − 𝑎1 , 𝑅 is also a poset (where 𝑅 is the restriction on 𝐴 − 𝑎1 ). If
it is nonempty choose a minimal element, say 𝑎2 ,of this poset and we have
𝑎1 ≺ 𝑎2 .Remove 𝑎2 from 𝐴 − 𝑎1 , if 𝐴 − 𝑎1 𝑎2 is nonempty continue the
procedure. Because 𝐴 is finite this process must terminate.
The end product is a sequence of elements 𝑎1 , 𝑎2 , … , 𝑎𝑛 and the desired total
ordering ≼ is defined by
𝒂𝟏 ≺ 𝒂𝟐 ≺ 𝒂𝟑 ≺ 𝒂𝟒 ≺ ⋯ ≺ 𝒂𝒏
Step 1: Choose a minimal element. This must be 1 (because 1 is the only minimal
element.
Step -2: Extract 1 and obtain 𝐴 − 1 = 2, 4, 5, 12, 20 . Now, There are two
minimal elements, namely 2 and 5, select 5 .
Note: