DM Unit V
DM Unit V
DM Unit V
The following is the hasse diagram of a partially ordered set. Verify whether it is a
lattice.
d
e
b
c
a
Solution:
d and e are the upper bounds of c and b. As d and e cannot be compared,
therefore the 𝐿𝑈𝐵 𝑐, 𝑏 does not exists. The Hasse diagram is not a lattice.
If 𝑹 = {(𝟏, 𝟏), (𝟏, 𝟐), (𝟐, 𝟑)} and 𝑺 = {(𝟐, 𝟏), (𝟐, 𝟐), (𝟑, 𝟐)} are the relations on
the set 𝑨 = {𝟏, 𝟐, 𝟑} . Verify whether 𝑹𝒐𝑺 = 𝑺𝒐𝑹 by finding the relation matrices of
𝑹𝒐𝑺 and 𝑺𝒐𝑹.
Solution:
www.tranquileducation.weebly.com 1
1 1 0 0 0 0
𝑀𝑅 = 0 0 1 , 𝑀𝑠 = 1 1 0
0 0 0 0 1 0
1 1 0 0 0 0
𝑀𝑅𝑜𝑆 = 0 1 0 𝑎𝑛𝑑 𝑀𝑆𝑜𝑅 = 1 1 1
0 0 0 0 0 1
𝑀𝑅𝑜𝑆 ≠ 𝑀𝑆𝑜𝑅 𝑅𝑜𝑆 ≠ 𝑆𝑜𝑅
𝒃e𝟐 𝒃𝟑
𝒃𝟏
0
Solution:
𝑏1 ⨁𝑏3 = 1. Hence 𝑏1 ⨁𝑏3 ∗ 𝑏2 = 1 ∗ 𝑏2 = 𝑏2
If 𝑹 and 𝑺 are reflexive relations on a set 𝑨, then show that 𝑹 ∪ 𝑺 𝒂𝒏𝒅 𝑹 ∩ 𝑺 are also
reflexive relations on 𝑨.
Solution:
Let 𝑎 ∈ 𝐴. Since 𝑅 𝑎𝑛𝑑 𝑆 are reflexive.
We have 𝑎, 𝑎 ∈ 𝑅 𝑎𝑛𝑑 𝑎, 𝑎 ∈ 𝑆 𝑎, 𝑎 ∈ 𝑅 ∩ 𝑆
Hence 𝑅 ∩ 𝑆 is reflexive.
𝑎, 𝑎 ∈ 𝑅 𝑜𝑟 𝑎, 𝑎 ∈ 𝑆 𝑎, 𝑎 ∈ 𝑅 ∪ 𝑆
Hence 𝑅 ∪ 𝑆 is reflexive.
www.tranquileducation.weebly.com 2
Define Equivalence relation. Give an example
Solution:
A relation 𝑅 in a set 𝐴 is called an equivalence relation if it is reflexive, symmetric and
transitive.
Eg: i) Equality of numbers on a set of real numbers
ii) Relation of lines being parallel on a set of lines in a plane.
Let 𝑿 = 𝟐, 𝟑, 𝟔, 𝟏𝟐, 𝟐𝟒, 𝟑𝟔 and the relation be such that 𝒙 ≤ 𝒚 𝒊𝒇𝒇
𝒙 𝒅𝒊𝒗𝒊𝒅𝒆𝒔 𝒚. Draw the Hasse Diagram of 𝑿, ≤ .
Solution:
The Hasse diagram is
24 36
12
2 3
Let 𝑨 be a given finite set and 𝑷 𝑨 its power set. Let ⊆ be the inclusion relation on
the elements of 𝑷 𝑨 . Draw Hasse diagram of 𝑷 𝑨 , ≤ for 𝑨 = 𝒂, 𝒃, 𝒄
Solution:
{𝒂, 𝒃, 𝒄}
𝟏 𝟏 𝟏
Write the representing each of the relations from 𝟏 𝟎 𝟏
𝟏 𝟏 𝟏
Solution:
Let 𝐴 = 1, 2, 3 and 𝑅 be the relation defined on 𝐴 corresponding to the given
matrix. ∴ 𝑅 = {(1,1), (1,2), (1,3), (2,1), (2,3), (3,1), (3,2), (3,3)}
Which elements of the poset {𝟐, 𝟒, 𝟓, 𝟏𝟎, 𝟏𝟐, 𝟐𝟎, 𝟐𝟓},/ are maximal and which are
minimal?
(or)
www.tranquileducation.weebly.com 3
Give an example for a poset that have more than one maximal element and more than
one minimal element.
Solution:
𝐴 = {2, 4, 5, 10, 12, 20, 25}, / , / 𝑖𝑠 𝑡𝑒 𝑑𝑖𝑣𝑖𝑠𝑖𝑜𝑛 𝑟𝑒𝑙𝑎𝑡𝑖𝑜𝑛.
The maximal elements are 12, 20, 25 and the minimal elements are 2,5 .
Define Lattice
A Lattice in a partially ordered set 𝑳, ≤ in which every pair of elements 𝑎, 𝑏 ∈ 𝐿 has
the greatest lower bound and a least upper bound.
Define sublattice
Let 𝐿,∗, ⨁ be a lattice and let 𝑆 ⊆ 𝐿 be a subset of L. Then 𝑆,∗, ⨁ is a sublattice of
𝐿,∗, ⨁ iff S is closed under both operations ∗ and ⨁.
Define Modular
A lattice 𝐿,∗, ⨁ is called modular if for all 𝑥, 𝑦, 𝑧 ∈ 𝐿
𝑥 ≤ 𝑧 𝑥 ⨁ (𝑦 ∗ 𝑧) = (𝑥 ⨁ 𝑦) ∗ 𝑧
Define Distributive lattice.
A Lattice 𝐿,∗, ⨁ is called a distributive lattice if for any 𝑎, 𝑏, 𝑐 ∈ 𝐿
𝑎 ∗ (𝑏⨁𝑐) = (𝑎 ∗ 𝑏) ⨁ (𝑎 ∗ 𝑐 )
𝑎⨁(𝑏 ∗ 𝑐) = (𝑎⨁𝑏) ∗ (𝑎⨁𝑐)
www.tranquileducation.weebly.com 4
The lattice with the following Hasse diagram is not distributive and not modular.
1
𝒙𝟐
𝒙𝟏
𝒙𝟑
0
Solution:
In this case, (𝑥1 ⨁𝑥3 ) ∗ 𝑥2 = 1 ∗ 𝑥2 = 𝑥2 … (1)
And (𝑥1 ∗ 𝑥2 ) ⨁(𝑥3 ∗ 𝑥2 ) = 0 ⨁ 𝑥3 = 𝑥3 … (2)
From (1) and (2) we get
𝑥1 ⨁𝑥3 ∗ 𝑥2 ≠ (𝑥1 ∗ 𝑥2 ) ⨁(𝑥3 ∗ 𝑥2 )
Hence the lattice is not distributive.
𝑥3 < 𝑥2 𝑥3 ⨁ 𝑥1 ∗ 𝑥2 = 𝑥3 ⨁ 0 = 𝑥3 … (3)
𝑥3 ⨁𝑥1 ∗ 𝑥2 = 1 ∗ 𝑥2 = 𝑥2 … (4)
From (3) and (4) we get
𝑥3 ⨁ 𝑥1 ∗ 𝑥2 ≠ 𝑥3 ⨁𝑥1 ∗ 𝑥2
Hence the lattice is not modular.
PART-B
www.tranquileducation.weebly.com 5
Establish De Morgan’s laws in a Boolean algebra
Solution: Let 𝑎, 𝑏 ∈ (𝐵,∗,⊕,′ , 0,1)
To prove 𝑎 ⊕ 𝑏 ′ = 𝑎′ ∗ 𝑏′
𝑎 ⊕ 𝑏 ∗ 𝑎′ ∗ 𝑏′ = 𝑎 ∗ 𝑎′ ∗ 𝑏′ ⊕ 𝑏 ∗ 𝑎′ ∗ 𝑏′
= 𝑎 ∗ 𝑎′ ∗ 𝑏′ ⊕ 𝑎′ ∗ 𝑏′ ∗ 𝑏
= 𝑎 ∗ 𝑎′ ∗ 𝑏′ ⊕ 𝑎′ ∗ 𝑏′ ∗ 𝑏
= 0 ∗ 𝑏′ ⊕ 𝑎′ ∗ 0 = 0 ⊕ 0
𝑎 ⊕ 𝑏 ∗ 𝑎′ ∗ 𝑏′ = 0 … (1)
𝑎 ⊕ 𝑏 ⊕ 𝑎′ ∗ 𝑏′ = 𝑎 ⊕ 𝑏 ⊕ 𝑎′ ∗ 𝑎 ⊕ 𝑏 ⊕ 𝑏′
= 𝑏 ⊕ 𝑎 ⊕ 𝑎′ ∗ 𝑎 ⊕ 𝑏 ⊕ 𝑏′
= 𝑏 ⊕ 𝑎 ⊕ 𝑎′ ∗ 𝑎 ⊕ 𝑏 ⊕ 𝑏′
= 𝑏⊕1 ∗ 𝑎⊕1 =1∗1
𝑎 ⊕ 𝑏 ⊕ 𝑎′ ∗ 𝑏′ = 1 … (2)
𝐹𝑟𝑜𝑚 1 𝑎𝑛𝑑 2 𝑤𝑒 𝑔𝑒𝑡,
∴ 𝑎 ⊕ 𝑏 ′ = 𝑎′ ∗ 𝑏′
To prove 𝑎 ∗ 𝑏 ′ = 𝑎′ ⊕ 𝑏′
𝑎 ∗ 𝑏 ⊕ 𝑎′ ⊕ 𝑏′ = 𝑎 ⊕ 𝑎′ ⊕ 𝑏′ ∗ 𝑏 ⊕ 𝑎′ ⊕ 𝑏′
= 𝑎 ⊕ 𝑎′ ⊕ 𝑏′ ∗ 𝑎′ ⊕ 𝑏′ ⊕ 𝑏
= 𝑎 ⊕ 𝑎′ ⊕ 𝑏′ ∗ 𝑎′ ⊕ 𝑏′ ⊕ 𝑏
= 1 ⊕ 𝑏′ ∗ 𝑎′ ⊕ 1 = 1 ∗ 1
𝑎 ∗ 𝑏 ⊕ 𝑎′ ⊕ 𝑏′ = 1 … (3)
𝑎 ∗ 𝑏 ∗ 𝑎′ ⊕ 𝑏′ = 𝑎 ∗ 𝑏 ∗ 𝑎′ ⊕ 𝑎 ∗ 𝑏 ∗ 𝑏′
= 𝑏 ∗ 𝑎 ∗ 𝑎′ ⊕ 𝑎 ∗ 𝑏 ∗ 𝑏′
= 𝑏 ∗ 𝑎 ∗ 𝑎′ ⊕ 𝑎 ∗ 𝑏 ∗ 𝑏′
= 𝑏∗0 ⊕ 𝑎∗0 = 0⊕0
𝑎 ∗ 𝑏 ∗ 𝑎′ ⊕ 𝑏′ = 0 … (4)
𝐹𝑟𝑜𝑚 3 𝑎𝑛𝑑 4 𝑤𝑒 𝑔𝑒𝑡,
𝑎 ∗ 𝑏 ′ = 𝑎′ ⊕ 𝑏′
www.tranquileducation.weebly.com 6
(𝑎 ∧ 𝑏) ′ = 𝑎′ ∨ 𝑏′
Draw the Hasse diagram of the lattice L of all subsets of 𝒂, 𝒃, 𝒄 under intersection and
union.
Solution:
{a, b, c}
{a, b} {b, c}
{a, c}
∅
Define the relation 𝑷 on {𝟏, 𝟐, 𝟑, 𝟒} by 𝑷 = {(𝒂, 𝒃)/ |𝒂 − 𝒃| = 𝟏}.
Determine the adjacency matrix of P2
Solution:
𝑃 = { 1,2 , 2,1 , 2,3 , 3,2 , 3,4 , (4,3)}.
0 1 0 0
𝑀𝑃 = 1 0 1 0
0 1 0 1
0 0 1 0
1 0 1 0
𝑀𝑃 2 = 𝑀𝑃𝑜𝑃 = 0 1 0 1
1 0 1 0
0 1 0 1
www.tranquileducation.weebly.com 7
= 𝑎⨁𝑐 ∗ 𝑏 ⨁𝑐 ∗ 𝑎⨁𝑐 ∗ 𝑏 ⨁𝑎
= 𝑎⨁𝑐 ⨁𝑐 ∗ 𝑏⨁𝑐 ∗ 𝑎⨁𝑐 ⨁𝑎 ∗ 𝑏⨁𝑎
= 𝑎⨁𝑐 ⨁𝑐 ∗ 𝑏⨁𝑐 ∗ 𝑎⨁ 𝑎⨁𝑐 ∗ 𝑏⨁𝑎
= 𝑎⨁ 𝑐⨁𝑐 ∗ 𝑏⨁𝑐 ∗ 𝑎⨁𝑎 ⨁𝑐 ∗ 𝑏⨁𝑎
= 𝑎⨁𝑐 ∗ 𝑏⨁𝑐 ∗ 𝑎⨁𝑐 ∗ 𝑏⨁𝑎
= 𝑐⨁𝑎 ∗ 𝑏⨁𝑐 ∗ 𝑐⨁𝑎 ∗ 𝑎⨁𝑏
= 𝑏⨁𝑐 ∗ 𝑐⨁𝑎 ∗ 𝑐⨁𝑎 ∗ 𝑎⨁𝑏
= 𝑏⨁𝑐 ∗ 𝑐⨁𝑎 ∗ 𝑎⨁𝑏
= 𝑏⨁𝑐 ∗ 𝑎⨁𝑏 ∗ 𝑐⨁𝑎
= (𝑎⨁𝑏) ∗ (𝑏⨁𝑐) ∗ (𝑐⨁𝑎)
www.tranquileducation.weebly.com 8
In a lattice show that 𝒂 ≤ 𝒃 𝒂∗𝒃= 𝒂 𝒂⨁𝒃 = 𝒃
Solution:
To prove 𝑎 ≤ 𝑏 𝑎∗𝑏= 𝑎
Let us assume that 𝑎 ≤ 𝑏, we know that 𝑎 ≤ 𝑎. ∴ 𝑎 ≤ 𝑎 ∗ 𝑏 … (1)
From the definition we know that 𝑎 ∗ 𝑏 ≤ 𝑎 … (2)
From (1) and (2) we get 𝑎 ∗ 𝑏 = 𝑎
∴𝑎≤ 𝑏 𝑎 ∗ 𝑏 = 𝑎 … (𝐼)
Now assume that 𝑎 ∗ 𝑏 = 𝑎 but it is possible iff 𝑎 ≤ 𝑏
∴ 𝑎 ∗ 𝑏 = 𝑎 𝑎 ≤ 𝑏 … (𝐼𝐼)
From (I) and (II) we get
𝑎≤ 𝑏 𝑎∗𝑏 = 𝑎
To prove 𝑎 ∗ 𝑏 = 𝑎 𝑎⨁𝑏 = 𝑏
Let us assume that 𝑎 ∗ 𝑏 = 𝑎
𝑏⨁ 𝑎 ∗ 𝑏 = 𝑏⨁𝑎 = 𝑎⨁𝑏 … (3)
𝑏⨁ 𝑎 ∗ 𝑏 = 𝑏 … (4)
From (3) and (4) we get 𝑎⨁𝑏 = 𝑏
∴ 𝑎∗𝑏 = 𝑎 𝑎⨁𝑏 = 𝑏 … (𝐼𝐼𝐼)
Let us assume that 𝑎⨁𝑏 = 𝑏
𝑎 ∗ 𝑎⨁𝑏 = 𝑎 ∗ 𝑏 … (5)
𝑎 ∗ 𝑎⨁𝑏 = 𝑎 … (6)
From (5) and (6) we get 𝑎 ∗ 𝑏 = 𝑎
∴ 𝑎⨁𝑏 = 𝑏 𝑎 ∗ 𝑏 = 𝑎 … (𝐼𝑉)
From (III) and (IV) we get 𝑎 ∗ 𝑏 = 𝑎 𝑎⨁𝑏 = 𝑏
Show that every distributive lattice is a modular. Whether the converse is true? Justify
your answer
Solution:
www.tranquileducation.weebly.com 9
Let 𝑎, 𝑏, 𝑐 ∈ 𝐿 and assume that 𝑎 ≤ 𝑐, 𝑡𝑒𝑛
𝑎⨁ 𝑏 ∗ 𝑐 = 𝑎⨁𝑏 ∗ (𝑎⨁𝑐)
= 𝑎⨁𝑏 ∗ 𝑐
∴Every distributive lattice is modular.
For example let us consider the following lattice
𝒂 𝒃 𝒄
0
Here in this lattice
∀𝑎, 𝑏, 𝑐 ∈ 𝐿, 𝑎 ≤ 𝑏 𝑎⨁ 𝑏 ∗ 𝑐 = 𝑎⨁𝑏 ∗ 𝑐
∴The above lattice is modular.
𝑎 ∗ 𝑏⨁𝑐 = 𝑎 ∗ 1 = 𝑎 … (1)
𝑎 ∗ 𝑏 ⨁ 𝑎 ∗ 𝑐 = 0⨁0 = 0 … (2)
From (1) and (2) we get 𝑎 ∗ 𝑏⨁𝑐 ≠ 𝑎 ∗ 𝑏 ⨁ 𝑎 ∗ 𝑐
∴The above lattice is not distributive.
∴ Every distributive lattice is a modular but its converse is not true.
www.tranquileducation.weebly.com 10
45
9 15
3 5
www.tranquileducation.weebly.com 11
≤ 𝑎⨁𝑏 ∗ 𝑐 𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑖𝑛𝑒𝑞𝑢𝑎𝑙𝑖𝑡𝑦
To prove 𝑎 ⨁ (𝑏 ∗ 𝑐) ≤ (𝑎 ⨁ 𝑏) ∗ 𝑐 𝑎 ≤ 𝑐
Let us assume that 𝑎 ⨁ (𝑏 ∗ 𝑐) ≤ (𝑎 ⨁ 𝑏) ∗ 𝑐
𝑎 ⨁𝑏 ∗ 𝑎⨁𝑐 ≤ (𝑎 ⨁ 𝑏) ∗ 𝑐 𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑙𝑎𝑤
𝑎⨁𝑐 ≤ 𝑐 … (1) 𝑎 ∗ 𝑏 ≤ 𝑎 ∗ 𝑐 𝑏 ≤ 𝑐
𝑎 ⨁ (𝑏 ∗ 𝑐) ≤ (𝑎 ⨁ 𝑏) ∗ 𝑐
𝑎 ⨁ 𝑏 ∗ 𝑐 ≤ 𝑎 ∗ 𝑐 ⨁ 𝑏 ∗ 𝑐 𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑙𝑎𝑤
𝑎 ≤ 𝑎 ∗ 𝑐 ≤ 𝑎⨁𝑐 ≤ 𝑐 𝐷𝑒𝑓𝑖𝑛𝑖𝑡𝑖𝑜𝑛 𝑜𝑓 ∗ 𝑎𝑛𝑑 ⨁ 𝑎𝑛𝑑(1)
𝑎 ≤ 𝑐
Prove that the direct product of any two distributive lattices is a distributive lattice.
Solution:
Let 𝐿,∗, ⨁ 𝑎𝑛𝑑 𝑆,∧,∨ 𝑏𝑒 𝑡𝑤𝑜 𝑑𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑒 𝑙𝑎𝑡𝑡𝑖𝑐𝑒𝑠 𝑎𝑛𝑑 𝑙𝑒𝑡 𝐿 × 𝑆, . , +
𝑏𝑒 𝑡𝑒 𝑑𝑖𝑟𝑒𝑐𝑡 𝑝𝑟𝑜𝑑𝑢𝑐𝑡 𝑜𝑓 𝑡𝑤𝑜 𝑙𝑎𝑡𝑡𝑖𝑐𝑒𝑠.
For any 𝑎1 , 𝑏1 , 𝑎2 , 𝑏2 𝑎𝑛𝑑 𝑎3 , 𝑏3 ∈ 𝐿 × 𝑆
𝑎1 , 𝑏1 . 𝑎2 , 𝑏2 + 𝑎3 , 𝑏3 = 𝑎1 , 𝑏1 . 𝑎2 ⨁𝑎3 , 𝑏2 ∨ 𝑏3
= 𝑎1 ∗ 𝑎2 ⨁𝑎3 , 𝑏1 ∧ 𝑏2 ∨ 𝑏3
= 𝑎1 ∗ 𝑎2 ⨁ 𝑎1 ∗ 𝑎3 , 𝑏1 ∧ 𝑏2 ∨ 𝑏1 ∧ 𝑏3
= 𝑎1 , 𝑏1 . 𝑎2 , 𝑏2 + 𝑎1 , 𝑏1 . 𝑎3 , 𝑏3
∴The direct product of any two distributive lattices is a distributive lattice.
Find the complement of every element of the lattice < 𝑺𝒏 , 𝑫 > for 𝒏 = 𝟕𝟓.
Solution:
𝑆45 = 1, 3, 5, 15, 25, 75 𝑢𝑛𝑑𝑒𝑟 𝑑𝑖𝑣𝑖𝑠𝑖𝑜𝑛 𝑟𝑢𝑙𝑒
1⨁75 = 75 𝑎𝑛𝑑 1 ∗ 75 = 1
∴ 𝐶𝑜𝑚𝑝𝑙𝑒𝑚𝑒𝑛𝑡 𝑜𝑓 1 𝑖𝑠 75
3⨁25 = 75 𝑎𝑛𝑑 3 ∗ 25 = 1
∴ 𝐶𝑜𝑚𝑝𝑙𝑒𝑚𝑒𝑛𝑡 𝑜𝑓 3 𝑖𝑠 25
5⨁15 = 15 𝑎𝑛𝑑 5 ∗ 15 = 5
∴ 5 𝑎𝑛𝑑 15 𝑎𝑠 𝑛𝑜 𝐶𝑜𝑚𝑝𝑙𝑒𝑚𝑒𝑛𝑡
∴ It is not a complement lattice
www.tranquileducation.weebly.com 12
75
25 15
5 3
35
5 7
www.tranquileducation.weebly.com 13