Unit 8 DMS
Unit 8 DMS
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, ≤).
Example:
1. The set N of natural numbers form a poset under the relation '≤'
because firstly x ≤ x, secondly, if x ≤ y and y ≤ x, then we have x = y
and lastly if x ≤ y and y ≤ z, it implies x ≤ z for all x, y, z ∈ N.
2. The set N of natural numbers under divisibility i.e., 'x divides y' forms
a poset because x/x for every x ∈ N. Also if x/y and y/x, we have x =
y. Again if x/y, y/z we have x/z, for every x, y, z ∈ N.
Example: Determine all the maximal and minimal elements of the poset
whose Hasse diagram is shown in fig:
Comparable Elements:
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.
Consider an ordered set A. The set A is called linearly ordered set or totally
ordered set, if every pair of elements in A is comparable.
Example: The set of positive integers I+ with the usual order ≤ is a linearly
ordered set.
Hasse Diagram
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.
R = {{4, 5}, {4, 6}, {4, 7}, {5, 6}, {5, 7}, {6, 7}, {4, 4}, {5, 5}, {6, 6},
{7, 7}}
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:
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
8.3 Special Lattices, Example.
Bounded Lattices:
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:
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:
Isomorphic Lattices:
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:
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.
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
Modular Lattice:
Let (L1 ∨1 ∧1)and (L2 ∨2 ∧2) be two lattices. Then (L, ∧,∨) is the direct product
of lattices, where L = L1 x L2 in which the binary operation ∨(join) and
∧(meet) on L are such that for any (a1,b1)and (a2,b2) in L. (a1,b1)∨(
a2,b2 )=(a1 ∨1 a2,b1 ∨2 b2) and (a1,b1) ∧ ( a2,b2 )=(a1 ∧1 a2,b1 ∧2 b2).
Boolean Algebra:
1. Commutative Properties:
(i)a+b = b+a
(ii)a*b=b *a
2. Distributive Properties
(i) a+(b*c)=(a+b)*(a+c)
(ii)a*(b+c)=(a*b)+(a*c)
3. Identity Properties
(i) a+0=a
(ii) a *1=a
4. Complemented Laws:
(i) a+a'=1
(ii)a * a'=0
Sub-Algebra:
Consider a Boolean-Algebra (B, *, +,', 0,1) and let A ⊆ B. Then (A,*, +,',
0,1) is called a sub-algebra or Sub-Boolean Algebra of B if A itself is a
Boolean Algebra i.e., A contains the elements 0 and 1 and is closed under
the operations *, + and '.
Example: Consider the Boolean algebra D70 whose Hasse diagram is shown
in fig:
Clearly, A= {1, 7, 10, 70} and B = {1, 2, 35, 70} is a sub-algebra of D70.
Since both A and B are closed under operation ∧,∨and '.
Isomorphic-Boolean Algebras:
Two Boolean algebras B and B1 are called isomorphic if there is a one to one
correspondence f: B⟶B1 which preserves the three operations +,* and ' for
any elements a, b in B i.e.,
f(a+b)=f(a)+f(b)
f (a*b)=f(a)*f(b) and f(a')=f(a)'.
Example: The following are two distinct Boolean algebras with two elements
which are isomorphic.
1.The first one is a Boolean Algebra that is derived from a power set P(S)
under ⊆ (set inclusion),i.e., let S = {a}, then B = {P(S), ∪,∩,'} is a Boolean
algebra with two elements P(S) = {∅,{a}}.
2. The second one is a Boolean algebra {B, ∨,∧,'} with two elements 1 and p
{here p is a prime number} under operation divides i.e., let B = {1, p}. So,
we have 1 ∧ p = 1 and 1 ∨ p = p also 1'=p and p'=1.
The table shows all the basic properties of a Boolean algebra (B, *, +, ', 0,
1) for any elements a, b, c belongs to B. The greatest and least elements of
B are denoted by 1 and 0 respectively.
Consider the Boolean algebra (B, ∨,∧,',0,1). A function from A''to A is called
a Boolean Function if a Boolean Expression of n variables can specify it. For
the two-valued Boolean algebra, any function from [0, 1]n to [0, 1] is a
Boolean function.
Boolean expression
Canonical Forms:
A Boolean expression over ({0, 1}, ∨,∧,') is said to be in disjunctive normal form if it
is a join of minterms
Example:
Consider a function from {0, 1}n to {0, 1}. A Boolean expression can be
obtained in disjunctive normal forms corresponding to this function by
having a min-term corresponding to each ordered n-tuples of 0's and 1's for
which the value of the function is 1.
Consider a function from {0, 1}n to {0, 1}. A Boolean expression can be
obtained in conjunctive normal forms corresponding to this function by
having a max-term corresponding to each ordered n-tuples of 0's and 1's for
which the value of function is0.
f f
(0, 0, 0) 1 (1, 0, 0) 0
(0, 0, 1) 0 (1, 0, 1) 1
(0, 1, 0) 1 (1, 1, 0) 0
(0, 1, 1) 0 (1, 1, 1) 1
AND Gate: An AND gate receives inputs x and y and produces output
denoted x ∧ y, as shown in logic table
x y x∧ y
0 0 0
0 1 0
1 0 0
1 1 1
x y xv y
0 0 0
0 1 1
1 0 1
1 1 1
NOT Gate: A NOT Gate receives input x and produces output y denoted x'
as shown in the logic table
x x'
0 1
1 0
Karnaugh Maps:
3. When the number of variables n =3, the karnaugh map is like as shown in fig:
1. Identify the ones which cannot be combined with any other ones
encircle them.
2. Identify the ones that can be combined in groups of two in only one
way and encircle them as groups.
3. Identify the ones that can be combined with three other ones, to make
a group of four adjacent ones, in only way and encircle them as
groups.
4. Identify the ones that can be combined with seven other ones, to
make a group of eight adjacent ones, in only way and encircle them as
groups.
5. After identifying the essential groups of 2, 4 and 8 ones, if there still
remain some ones which have not been encircled then these are to be
combined with each other or with other already encircled ones, i.e., we
should connect the leftover ones in largest possible groups and in as
few grouping as possible.
Solution: First of all draw the 2-variables k-map and insert 1's in the
corresponding cells as shown in fig:
AB + A' B+BA'
Solution: Draw the two-variable k-map and insert 1's in the corresponding
cells as shown in fig:
The required minimized Boolean Expression is f=A+B.
Solution: Draw the 3-variable k-map and insert 1's in the corresponding
cells as shown in fig:
One way to minimize such functions is to convert them into standard forms
i.e., SOP or POS, then make the k-map and obtain the minimized function.
Another way is to prepare the k-map using the following algorithm directly
(a)Enter 1 in the cell with A=1, B=1, C=0, D=1 corresponding to the min-
term A B C'D
(b) Enter 1 in the cell with A=0, B=1, C=1, D=1 corresponding to the min-
term A' BCD
(c) Enter 1's in the two cells with A=0, B=0, C=0 corresponding to the term
A' B' C'
(d) Enter 1's in the two cells with A=0, B=0, D=0 corresponding to the term
A' B' D'
(e) Enter 1's in the two cells with A=1, B=0, C=1 corresponding to the term
AB' C
(f) Enter 1's in the four cells with A=1,C=0 corresponding to the term AC'
(g) Enter 1's in the eight cells with B=0 corresponding to the term B'