Académique Documents
Professionnel Documents
Culture Documents
Computer Science
(CS F222/IS F222)
BITS Pilani
Pilani Campus
BITS Pilani
Pilani Campus
Lecture No. 15
Date 07/09/2015
Time 2:00 PM 3:00 PM
POSET
Introduction
Consider the renovation of a hostel. In this process
several tasks were undertaken
Remove Asbestos
Replace windows
Paint walls
Refinish floors
Assign offices
Move in office furniture
4
CS F222/IS F222
8 September 2015
Introduction
Clearly, some things had to be done before others
could begin
Asbestos had to be removed before anything (except assigning offices)
Painting walls had to be done before refinishing floors to avoid ruining
them, etc.
8 September 2015
Partial Order
Definitions:
A relation R on a set A is called a partial order if it
is
Reflexive [for any a A, (a, a) R]
Antisymmetric [For a, bA, if (a, b)R and (b,
a)R, then a = b]
Transitive [For a, b, cA, if (a, b)R and (b, c)R,
then (a, c)R]
8 September 2015
Partial Order
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 if a must be done
before b can be done.
7
CS F222/IS F222
8 September 2015
POSET
A POSET is denoted by (A p).
8
CS F222/IS F222
8 September 2015
POSET
The relation less than or equal to defined over a
set of real numbers is a POSET, i.e., (R, ) is a POSET.
Which of the following sets with the given relations
from POSETs?
(Z, )
(Z, >)
(P, ), where P = {, {a}, {b}, {a, b}}
(P, )
(Z, |), where I is the divisibility relation
(Z+, I)
9
CS F222/IS F222
8 September 2015
Hasses Diagram
Cover:
Let (A, p) be a POSET and a, bA. The element b is
called the cover of a if apb and no cA exists such
that apcpb.
b is the cover of a if b is the immediate successor of a.
8 September 2015
Hasses Diagram
Covering relation:
For a finite poset (A, p), we can find the cover of
every element in A.
The set of pairs (a, b) such that b covers a is called
the covering relation of (A, p).
Example: A = {2, 3, 6, 12, 18, 36} with the partial
order relation divides.
The covering relation of (A, p) = {(2, 6), (3, 6), (6, 12), (6,
18), (12, 36), (18, 36)}.
11
CS F222/IS F222
8 September 2015
Hasses Diagram
The Hasses diagram of a finite poset (A, p) is a graph
in which
The elements are represented as vertices
If b is a cover of a, then this relation is shown by placing b
higher than a and providing a edge between them.
12
CS F222/IS F222
8 September 2015
Hasses Diagram
A = {2, 3, 6, 12, 18, 36} with the partial order relation
divides.
The covering relation of (A, p) = {(2, 6), (3, 6), (6, 12), (6, 18),
(12, 36), (18, 36)}.
36
12
18
6
3
13
CS F222/IS F222
8 September 2015
Thank You