DSTL Unit1&2
DSTL Unit1&2
Lattics
A lattice is a partially ordered set (L, ) in which every pair of
elements of L has a glb and lub.
B. Tech-III SEM / BCS303: Discrete structure and theory of logics/
UNIT – I & II/ Nida Rahman/ Assistant Professor / Department of
CSE / JMS Institute of TechnologyGhaziabad
Properties
Let (L, ) be a lattice and a, b, c L.
a a a
Idempotant Law
a a a
a (b c) (a b) c
Associative Law
a (b c) (a b) c
a (b c) (a b) (a c)
Distributive Law
a (b c) (a b) (a c)
a b b a
Commutative Laws
a b b a
a (a b) a
Absorption Laws
a (a b) a
Problem 5.1:
Show that (N, ) is a partially ordered set where N is set of all
positive integers and is defined by m n if and only if n m
is a non-negative integer.
Solution:
Given N is the set of all positive integers.
Consider the relation is m n if and only if n m is non-
negatie integer.
Reflixive:
Let x N .
x x is true.
is reflexive.
lOMoARcPSD|470 774 67
Antisymmetric:
Let x, y N.
(y x) is non-negative integer.
Transitive:
Let x, y, z N.
Now
(y x) (z y) is a non-integer
(z x) is a non-integer
x z is true.
is transitive.
Hence is a partial order relation.
(N, ) is a partially ordered set (Poset).
lOMoARcPSD|470 774 67
Problem 5.2:
Draw the Hasse diagram for (1) P1 2, 3, 6, 12, 24
(2) P2 1, 2, 3, 4, 6, 12 and is a relation such x y if and
only if x | y . (A/M 2011)
Solution:
Hasee Diagram:
A partial ordering on a set P can be represented by means of
a diagram known as a Hasse diagram or a partially ordered set
diagram of (P, ) .
(i)
P1 2, 3, 6, 12, 24
(ii)
P2 1, 2, 3, 4, 6, 12
Problem 5.3:
Draw the Hasse diagram representing the partial ordering
A, B : A B on the power set P(S ) where S a,b,c .
Find the maximal, minimal, greatest and least elements of the
poset. (N/D 2012)
Solution:
P(S) {a}, {b}, {c}, {a,b}, {b, c}, {a, c}, {a,b, c}, {}
P(S), is a lattice.
Problem 5.4:
Let D30 {1, 2, 3, 5, 6, 10, 15, 30} with a relation x y if and
only if x divides y . Find the following (A/M 2018)
(or)
lOMoARcPSD|470 774 67
Lattices
Lattice:
A poset (P, ) is said to be a lattice, if for every pair of elements
a, b L has greatest lower bounded (glb) and least upper bound
(lub) . (i.e) a b and a b exists.
Sub-lattice:
A non-empty subset S of a lattice (L, , ) is a sub lattice of L
if and only if S is closed under the binary operations and .
Distributive Lattice:
A lattice L, , is called a distributive lattice if it satisfies
distributive property. (i.e) a (b c) (a b) (a c) and
a (b c) (a b) (a c) for all a, b, c L .
Complete Lattice:
A lattice is called complete if each of its non empty subsets has a
least upper bound and a greatest lower bound.
Clearly, every finite lattice is complete because every subset is
finite.
lOMoARcPSD|470 774 67
Bounded Lattice:
The least and the greatest elements of a lattice are called bounds
of the lattice and are denoted by 0 and 1 respectively. A lattice
which has both elements 0 and 1 is called a bounded lattice.
Example:
( A), is a bounded lattice, where A is a non-empty finite
A.
Complemented Lattice:
A lattice L,*, is said to be complemented if for any a L,
there exists a L such that a * a 0 and a a 1.
Problem 5.5:
If S42 is the set of all divisors of 42 and D is the relation
S42 , prove that S42 , D is a complemented
Lattice. (N/D 2010)
Solution:
Given S42 is the set of all divisors of 42 and D is the relation
S42 .
(i)
1 42 GLB{1, 42} GCD{1, 42} 1
and 6 7 LCM{6, 7} 42 .
Problem 5.6:
In a distributive lattice, show that
(a b) (b c) (c a) (a b) (b c) (c a) .
Solution:
Let (L, ) be a bistributive lattice and a, b, c L.
LHS
(a b) (b c) (c a)
(a b) (b c) (c a)
(a b) c a (b c) by absorption law
(a c) (b c) (a b) (a c) by distributive laws
(a b) (b c) (c a) RHS
lOMoARcPSD|470 774 67
Problem 5.7:
In a distributive lattice prove that a b a c and
a b a c imply b c. (M/J 2014)
Or
Solution:
Given a b a c and a b a c.
Consider
b b (a b) by absorption law
b (a c) a b a c
(b a) (b c) by distributive law
(a b) (b c) by commutative property
(a c) (b c) a b a c
(a b) c by distributive law
(a c) c a b a c
c by absorption law
Hence proved.
lOMoARcPSD|470 774 67
Problem 5.8:
In a distributive Lattice {L, , } , Prove that complement of
each element is unique. (N/D 2012),(N/D 2016),(A/M 2018)
Or
Solution:
Let {L, , } or {L, , } be a distributive lattice and a L.
Or
Or
Let L be lattice, where a b glb(a,b) and a b lub(a,b)
for all a,b L . Then both binary operations and defined as
in L satisfies commutative law, associative law, absorption law
and idempotent law. (M/J 2013)
Solution:
Given (L, , ) or (L, , ) is a lattice and for any a,b L,
a b and a b exist.
i.e. a b glb(a,b) and a b lub(a,b) exist a,b L.
Commutative Law:
Let a, b L
a b lub(a,b) lub(b,a) b a
Associative Law:
Let a, b, c L
We have to prove a (b c) (a b) c .
a (b c) a and
a (b c) b c
a (b c) b c b b c b
a (b c) a b
and
a (b c) b c c b c c
a (b c) c
a (b c) (a b) c
(a b) c c and
(a b) c a b
(a b) c a b b a b b
(a b) c b c
and
(a b) c a b a a b a
(a b) c a
Absorption Law:
Let a, b L
We have a a and a a b
a a (a b)
a (a b) a
a (a a) (b a)
a a (a b)
Idempotent Element:
Let a, b, c L
If c a and c b, then c ab
Now put a b c then
a a a and a a a
a a a
Hence proved.
Problem 5.10:
Show that every chain is a lattice. (M/J 2013)
Or
L is a lattice:
If a b , then a b a and a b b.
If b a , then a b b and a b a.
(L, ) is a lattice.
a (b c) (LHS) (a b) (a c) (RHS)
a (b c) (a b) (a c)
a c b c a a a b and a c
a a c a
a (b c) (a b) (a c)
Now we establish a (b c) (a b) (a c)
a (b c) (LHS) (a b) (a c) (RHS)
a (b c) (a b) (a c)
a b b c b c a b and a c
b a b b b c
a (b c) (a b) (a c)
Similarly, we can prove for other cases.
lOMoARcPSD|470 774 67
L is a modular lattice.
Or
Solution:
Let (L, , ) or (L, , ) be any distributive complemented
lattice and a, b L .
(i) To prove a b a b 0
Let a b for a, b L
Then a b a and a b b.
get
(a b) b b b
lOMoARcPSD|470 774 67
(a b ) 0 0
a b 0
(ii) To prove a b 0 a b 1
Let a b 0 for a, b L
Taking complement on both sides, we get
(a b ) 0
a b 1 by
(iii) To prove a b 1 b a
Let a b 1 for a, b L
(a b) (b b ) b by distributive law
(a b) 0 b b b 0
a b b
b a
(iv) To prove b a a b
Let b a for a, b L.
Then a b b
a b b
lOMoARcPSD|470 774 67
a b
Thus a b a b 0 a b 1 b a proved.
Problem 5.13:
Show that in a lattice if a b c , then (N/D 2013)
(i) a b b c
(ii) (a b) (b c) b (a b) (a c)
Solution:
Let (L, , ) be a lattice and a, b, c L.
We know that
If a b then a b a and a b b.
(i)
Given a b c.
a b b a b
and b c b b c
From (1) and (2), we gt
a b b c Hence proved.
(ii)
Given a b c.
(a b) (b c) a b a b a and b c b
(a b) (a c) b c a b b and a c c