Partially Ordered Set Unit 5
Partially Ordered Set Unit 5
Then R is called a partial order relation, and the set S together with partial order is called a
partially order set or POSET and is denoted by (S, ≤).
1. Check if it is reflexive
2. Check if it is anti-symmetric
3. Check if it is transitive
• Step 1: The subset is reflexive as it contains the pairs, (p,p), (q,q) and (r,r).
• Step 2: It is anti-symmetric as (p,r) and (q,r) do not have their symmetric pairs (r,p) or
(r,q) in it. In addition, it also contains the pairs (p,p), (q,q), (r,r) in which the elements
are equal to each other.
• Step 3: The subset contains (p,p) and (p,r). Therefore according to the definition of a
transitive relation, it must contain (p,r), which, you can see, is already present in it.
Hence it is transitive.
Since all the three conditions are satisfied, we could now call the subset as a partially
ordered set.
A partially ordered set is abbreviated as POSET(Partially Ordered Set).
Elements of POSET:
1. Maximal Element: An element a ∈ A is called a maximal element of A if there is no
element in c in A such that a ≤ c.
2. Minimal Element: An element b ∈ A is called a minimal element of A if there is no
element in c in A such that c ≤ b.
Note: There can be more than one maximal or more than one minimal element.
Example: Determine all the maximal and minimal elements of the poset whose Hasse
diagram is shown in fig:
Solution: The maximal elements are b and f.
Comparable Elements:
Consider an ordered set A. Two elements a and b of set A are called comparable if
a≤b or b≤a
R R
Non-Comparable Elements:
Consider an ordered set A. Two elements a and b of set A are called non-comparable if
neither a ≤ b nor b ≤ a.
Example: Consider A = {1, 2, 3, 5, 6, 10, 15, 30} is ordered by divisibility. Determine all the
comparable and non-comparable pairs of elements of A.
Example: The set of positive integers I+ with the usual order ≤ is a linearly ordered set.
Hasse Diagrams
It is a useful tool, which completely describes the associated partial order. Therefore, it is also
called an ordering diagram. It is very easy to convert a directed graph of a relation on a set A
to an equivalent Hasse diagram. Therefore, while drawing a Hasse diagram following points
must be remembered.
1. The vertices in the Hasse diagram are denoted by points rather than by circles.
2. Since a partial order is reflexive, hence each vertex of A must be related to itself, so
the edges from a vertex to itself are deleted in Hasse diagram.
3. Since a partial order is transitive, hence whenever aRb, bRc, we have aRc. Eliminate
all edges that are implied by the transitive property in Hasse diagram, i.e., Delete edge
from a to c but retain the other two edges.
4. If a vertex 'a' is connected to vertex 'b' by an edge, i.e., aRb, then the vertex 'b' appears
above vertex 'a'. Therefore, the arrow may be omitted from the edges in the Hasse
diagram.
The Hasse diagram is much simpler than the directed graph of the partial order.
Example: Consider the set A = {4, 5, 6, 7}. Let R be the relation ≤ on A. Draw the directed
graph and the Hasse diagram of R.
R = {{4, 5}, {4, 6}, {4, 7}, {5, 6}, {5, 7}, {6, 7}, {4, 4}, {5, 5}, {6, 6}, {7, 7}}
To draw the Hasse diagram of partial order, apply the following points:
1. Delete all edges implied by reflexive property i.e.
(4, 4), (5, 5), (6, 6), (7, 7)
2. Delete all edges implied by transitive property i.e.
(4, 7), (5, 7), (4, 6)
3. Replace the circles representing the vertices by dots.
4. Omit the arrows.
Also let B = {c, d, e}. Determine the upper and lower bound of B.
Solution: The upper bound of B is e, f, and g because every element of B is '≤' e, f, and g.
The lower bounds of B are a and b because a and b are '≤' every elements of B.
Example: Determine the least upper bound and greatest lower bound of B = {a, b, c} if they
exist, of the poset whose Hasse diagram is shown in fig:
Lattices:
Let L be a non-empty set closed under two binary operations called meet and join, denoted by
∧ and ∨. Then L is called a lattice if the following axioms hold where a, b, c are elements in
L:
1) Commutative Law: -
(a) a ∧ b = b ∧ a (b) a ∨ b = b ∨ a
2) Associative Law:-
(a) (a ∧ b)∧ c = a ∧(b∧ c) (b) (a ∨ b) ∨ c = a ∨ (b ∨ c)
3) Absorption Law: -
(a) a ∧ ( a ∨ b) = a (b) a ∨ ( a ∧ b) = a
Duality:
The dual of any statement in a lattice (L,∧ ,∨ ) is defined to be a statement that is obtained by
interchanging ∧ an ∨.
Bounded Lattices:
A lattice L is called a bounded lattice if it has greatest element 1 and a least element 0.
Example:
1. The power set P(S) of the set S under the operations of intersection and union is a
bounded lattice since ∅ is the least element of P(S) and the set S is the greatest
element of P(S).
2. The set of +ve integer I+ under the usual order of ≤ is not a bounded lattice since it has
a least element 1 but the greatest element does not exist.
1. a∨1=1
2. a ∧1= a
3. a ∨0=a
4. a ∧0=0
L = {a1,a2,a3....an}
Since, the greatest and least elements exist for every finite lattice. Hence, L is bounded.
Sub-Lattices:
Consider a non-empty subset L1 of a lattice L. Then L1 is called a sub-lattice of L if L1 itself
is a lattice i.e., the operation of L i.e., a ∨ b ∈ L1 and a ∧ b ∈ L1 whenever a ∈ L1 and b ∈ L1.
Example: Consider the lattice of all +ve integers I+ under the operation of divisibility. The
lattice Dn of all divisors of n > 1 is a sub-lattice of I+.
Determine all the sub-lattices of D30 that contain at least four elements,
D30={1,2,3,5,6,10,15,30}.
Solution: The sub-lattices of D30 that contain at least four elements are as follows:
Solution: The lattices shown in fig are isomorphic. Consider the mapping f = {(a, 1), (b, 2),
(c, 3), (d, 4)}.For example f (b ∧ c) = f (a) = 1. Also, we have f (b) ∧ f(c) = 2 ∧ 3 = 1
Distributive Lattice:
A lattice L is called distributive lattice if for any elements a, b and c of L,it satisfies following
distributive properties:
1. a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c)
2. a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c)
If the lattice L does not satisfies the above properties, it is called a non-distributive lattice.
Example:
1. The power set P (S) of the set S under the operation of intersection and union is a
distributive function. Since,
a ∩ (b ∪ c) = (a ∩ b) ∪ (a ∩ c)
and, also a ∪ (b ∩ c) = (a ∪ b) ∩ (a ∪c) for any sets a, b and c of P(S).
2. The lattice shown in fig II is a distributive. Since, it satisfies the distributive properties
for all ordered triples which are taken from 1, 2, 3, and 4.
Complements and complemented lattices:
Let L be a bounded lattice with lower bound o and upper bound I. Let a be an element if L.
An element x in L is called a complement of a if a ∨ x = I and a ∧ x = 0
The complement of c does not exist. Since, there does not exist any element c such that c ∨
c'=1 and c ∧ c'= 0.
Counting Thheory:
Counting mainly encompasses fundamental counting rule, the permutation rule, and the
combination rule. In daily lives, many a times one needs to find out the number of all
possible outcomes for a series of events. For instance, How many different 10 lettered PAN
numbers can be generated such that the first five letters are capital alphabets, the next four are
digits and the last is again a capital letter. For solving these problems, mathematical theory of
counting are used.
Basic Counting Principles
1. Sum Rule Principle: Assume some event E can occur in m ways and a second event
F can occur in n ways, and suppose both events cannot occur simultaneously. Then E
or F can occur in m + n ways.
In general, if there are n events and no two events occurs in same time then the event can
occur in n1+n2..........n ways.
Example 1: If 8 male professor and 5 female professor teaching DMS then the student can
choose professor in 8+5=13 ways..
Example 2 – In how many ways can a person choose a project from three lists of projects of
sizes 10, 15, and 19 respectively?
Solution – The person has a choice of choosing a project from either of the three lists. So the
person can choose from either 10 projects or 15 projects or 19 projects. Since choosing from
one list is not the same as choosing another list, the total number of ways of choosing a
project by the sum-rule is 10 + 15 + 19 = 44.
2. Product Rule Principle: Suppose there is an event E which can occur in m ways and,
independent of this event, there is a second event F which can occur in n ways. Then
combinations of E and F can occur in mn ways.
In general, if there are n events occurring independently then all events can occur in the order
indicated as n1 x n2 x n3.........n ways.
Example 1: In class, there are 4 boys and 10 girls if a boy and a girl have to be chosen for the
class monitor, the students can choose class monitor in 4 x 10 = 40 ways.
Example 2 – In how many ways can 3 winning prizes be given to the top 3 players in a game
played by 12 players?
Solution – We have to distribute 3 prizes among 12 players. This task can be divided into 3
subtasks of assigning a single prize to a certain player.
Giving out the first prize can be done in 12 different ways. After giving out the first prize,
two prizes remain and 11 players remain. Similarly, the second prize and third prize can be
given in 11 ways and 10 ways. The total number of ways by the product rule is 12 * 11 * 10
= 1320
Permutation:
Any arrangement of a set of n objects in a given order is called Permutation of Object. Any
arrangement of any r ≤ n of these objects in a given order is called an r-permutation or a
permutation of n object taken r at a time.
It is denoted by P (n, r)
P (n, r) =
Examples
Some Problems
Problem 1 − From a bunch of 6 different cards, how many ways we can permute it?
Solution − As we are taking 6 cards at a time from a deck of 6 cards, the permutation will
be 6P6=6!=720
Problem 2 − In how many ways can the letters of the word 'READER' be arranged?
Solution − There are 6 letters word (2 E, 1 A, 1D and 2R.) in the word 'READER'.
The permutation will be =6!/[(2!)(1!)(1!)(2!)]=180.
Example: How many 6-digit numbers can be formed by using the digits 0, 1, 2, 3, 4, 5, 6, 7,
8 if every number is to start with '30' with no digit repeated?
Solution: All the numbers begin with '30.'So, we have to choose 4-digits from the remaining
7-digits.
∴ Total number of numbers that begins with '30' is
7P4 = =840.
Circular Permutations:
A permutation which is done around a circle is called Circular Permutation.
Example: In how many ways can get these letters a, b, c, d, e, f, g, h, i, j arranged in a circle?
Combination:
A Combination is a selection of some or all, objects from a set of given objects, where the
order of the objects does not matter. The number of combinations of n objects, taken r at a
time represented by nCr or C (n, r).
Example: A farmer purchased 3 cows, 2 pigs, and 4 hens from a man who has 6 cows, 5
pigs, and 8 hens. Find the number m of choices that the farmer has.
The farmer can choose the cows in C (6, 3) ways, the pigs in C (5, 2) ways, and the hens in C
(8, 4) ways. Thus the number m of choices follows:
Pigeonhole Principle
In 1834, German mathematician, Peter Gustav Lejeune Dirichlet, stated a principle which he
called the drawer principle. Now, it is known as the pigeonhole principle.
Pigeonhole Principle states that if there are fewer pigeon holes than total number of
pigeons and each pigeon is put in a pigeon hole, then there must be at least one pigeon hole
with more than one pigeon. If n pigeons are put into m pigeonholes where n > m, there's a
hole with more than one pigeon.
Examples
• Ten men are in a room and they are taking part in handshakes. If each person shakes
hands at least once and no man shakes the same man’s hand more than once then two
men took part in the same number of handshakes.
• There must be at least two people in a class of 30 whose names start with the same
alphabet.
Example1: Find the minimum number of students in a class to be sure that three of them are
born in the same month.
Example2: Show that at least two people must have their birthday in the same month if 13
people are assembled in a room.
Solution: We assigned each person the month of the year on which he was born. Since there
are 12 months in a year.
So, according to the pigeonhole principle, there must be at least two people assigned to the
same month.
Example: Let U be the set of positive integer not exceeding 1000. Then |U|= 1000 Find |S|
where S is the set of such integer which is not divisible by 3, 5 or 7?
By Integer division,
Recurrence Relations
Definition
A recurrence relation is an equation that recursively defines a sequence where the next term
is a function of the previous terms
Example2: The Fibonacci sequence is defined by the recurrence relation ar = ar-2 + ar-1,
r≥2,with the initial conditions a0=1 and a1=1.
Example1: The equation y3k+3+2y2k+2+2yk+1=0 has the degree 3, as the highest power of yk is
3.
Example2: The equation a4r+3a3r-1+6a2r-2+4ar-3 =0 has the degree 4, as the highest power of
ar is 4.
Example3: The equation yk+3 +2yk+2 +4yk+1+2yk= k(x) has the degree 1, because the highest
power of yk is 1 and its order is 3.
Example4: The equation f (x+2h) - 4f(x+h) +2f(x) = 0 has the degree1 and its order is 2.
Linear Recurrence Relations with Constant Coefficients
A Recurrence Relations is called linear if its degree is one.
Where C0,C1,C2......Cn are constant and R (n) is same function of independent variable n.
A solution of a recurrence relation in any function which satisfies the given equation.
s2-3s+2=0 or (s-1)(s-2)=0
⇒ s = 1, 2
ar=C1r+C2.2r.
9s2-6s+1=0 or (3s-1)2=0
⇒s= and
yK=(C1+C2 k).
Particular Solution
(a) Homogeneous Linear Difference Equations and Particular Solution:
We can find the particular solution of the difference equation when the equation is of
homogeneous linear type by putting the values of the initial conditions in the homogeneous
solutions.
Example1: Solve the difference equation 2ar-5ar-1+2ar-2=0 and find particular solutions such
that a0=0 and a1=1.
s= and 2.
a1= C1+2C2=1...........equation.(b)
Example2: Solve the difference equation ar-4ar-1+4ar-2=0 and find particular solutions such
that a0=0 and a1=6.
Z, here z is constant A
Zr. P (r), here P(r) is a polynomial of the nth degree in r. Z is a constant. [A0 rn+A1 rn-1+⋯..An].Zr
There are two methods to find the particular solution of a non-homogeneous linear difference
equation. These are as follows:
In this method, firstly we assume the general form of the particular solutions according to the
type of R (n) containing some unknown constant coefficients, which have to be determined.
Then according to the difference equation, we will determine the exact solution.
The general form of a particular solution to be assumed for the special forms of R (n), to find
the exact solution is shown in the table.
A= (Z≠1, Z≠2)
Now to find the value of A, put this solution on L.H.S of the equation (i), then this becomes
= A. 5r+2-5.A5r+1+6.A5r
= 25A. 5r-25A.5r+6A.5r
= 6A.5r ............equation (ii)
A=
Solution: Let us assume the general form of the solution = (A0+A1r). 2^r
Now, put these solutions in the L.H.S of the equation (i), we get
= 2r+2 [A0+A1 (r+2)]+2r+1 [A0+A1 (r+1)]+2r (A0+A1 r)
= 4. 2r (A0+A1 r+2A1 )+2.2r (A0+A1 r+A1 )+2r (A0+A1 r)
= r. 2r (7A1 )+2r (7A0+10A1)............equation (ii)
7A1=1 ∴ A1=
7A0+10A1=0 ∴ A0=
Definition of Operator E: The operator of E on f(x) means that give an increment to the
value of x in the function. The operation of E is, put (x+h) in the function wherever there is x.
Here h is increment quantity. So Ef(x) = f(x+h)
Total Solution
The total solution or the general solution of a non-homogeneous linear difference equation
with constant coefficients is the sum of the homogeneous solution and a particular solution. If
no initial conditions are given, obtain n linear equations in n unknowns and solve them, if
possible to get total solutions.
If y(h) denotes the homogeneous solution of the recurrence relation and y(p) indicates the
particular solution of the recurrence relation then, the total solution or the general solution y
of the recurrence relation is given by
y =y(h)+y(p).
Solution: The homogeneous solution of this equation is obtained by putting R.H.S equal to
zero i.e.,
ar-4ar-1+4ar-2=0
Generating Functions
Generating Functions represents sequences where each term of a sequence is expressed as
a coefficient of a variable x in a formal power series.
Let us consider, the sequence a0, a1, a2....ar of real numbers. For some interval of real numbers
containing zero values at t is given, the function G(t) is defined by the series
G(t)= a0, a1t+a2 t2+⋯+ar tr+............equation (i)
This function G(t) is called the generating function of the sequence ar.
t can be expressed as
Also,If a(1)r has the generating function G1(t) and a(2)r has the generating function G2(t), then
λ1 a(1)r+λ2 a(2)r has the generating function λ1 G1(t)+ λ2 G2(t). Here λ1 and λ2 are constants.
Application Areas:
By the method of generating functions with the initial conditions a0=2 and a1=3.
Now, put a0=2 and a1=3 in equation (ii) and solving, we get
= B ∴B=1