Unit - I Discrete Mathematics: Dr. Krishna Keerthi Chennam
Unit - I Discrete Mathematics: Dr. Krishna Keerthi Chennam
Discrete Mathematics
Example: (p Ù q) Ú (p Ù Ø q) Ú (Ø p Ù q) Ú (Ø p Ù Ø q)
Example 1: Obtain disjunctive normal forms of
(a) P ∧ (P → Q); (b) ¬(P ∨ Q) ↔ (P ∧ Q).
Solution: (a) We have
P ∧ (P → Q) ⇔ P ∧ (¬P ∨ Q)
⇔ (P ∧ ¬P ) ∨ (P ∧ Q)
(b) ¬(P ∨ Q) ↔(P ∧ Q)
⇔ (¬(P ∨ Q) ∧ (P ∧ Q)) ∨ ((P ∨ Q) ∧ ¬(P ∧ Q)) [using
R↔ S ⇔ (R ∧ S) ∨ (¬R ∧ ¬S) ]
⇔ ((¬P ∧ ¬Q) ∧ (P ∧ Q)) ∨ ((P ∨ Q) ∧ (¬P ∨ ¬Q))
⇔ (¬P ∧ ¬Q ∧ P ∧ Q) ∨ ((P ∨ Q) ∧ ¬P ) ∨ ((P ∨ Q) ∧ ¬Q)
⇔ (¬P ∧ ¬Q ∧ P ∧ Q) ∨ (P ∧ ¬P ) ∨ (Q ∧ ¬P ) ∨ (P ∧ ¬Q) ∨ (Q ∧ ¬Q) which
is the required disjunctive normal form.
Note: The DNF of a given formula is not unique.
Example-6: Obtain the Disjunctive Normal Form of
(p ® q) ® (Ø r Ù q )
Let us consider (p ® q) ® (Ø r Ù q ) [ by p ®q ó Ø p Ú q]
ó (Ø p Ú q) ® (Ø r Ù q )
ó Ø(Ø p Ú q) Ú (Ø r Ù q )
ó (p Ù Ø q) Ú (Ø r Ù q)
Now it is the required DNF
Conjunctive Normal Form (CNF)
A formula which is equivalent to a given formula and which
consists of a product of elementary sums is called a conjunctive
normal form of the given formula.
The method for obtaining conjunctive normal form of a given
formula is similar to the one given for disjunctive normal form.
Again, the conjunctive normal form is not unique.
Example-7: Obtain the Conjunctive Normal Form of
Ø ((Ø p ® Ø q )Ù Ø r )
From the truth tables of these minterms of P and
Q, it is clear that
y R(y)
gold fish.
Then the inference
[1] (1) (∀x)[(P(x) ] Rule P
A(x)
[2] (2) P(g) Rule P
[1] (3) P(g) A(g) Rule US,(1)
[1,2] (4) A(g) Rule T, (2),(3) and I10
[5] (5) (∀x)[A(x) H(x)] Rule P
[5] (6) A(g) H(g)] Rule US,(5) 1
[1,2,5] (7) H(g) Rule T, (4),
(6) and I1
Hence the conclusion is valid
• Example-2: Verify the validity of the following argument.
All integers are rational numbers
Some integers are powers of 3
Therefore, Some rational numbers are powers of 3
Sol: Let us consider
I(x): x is an integer
R(x): x is rational
number P(x): x is power
of 3
Then the given
inference pattern is:
(∀x)[I(x) R(x)]
(∃x) [ I(x)
P(x)]
Therefore(∃x) [ R(x)
[1] (1) (∃x) [ I(x) Rule P
P(x)] [1] (2) I(g) P(g) Rule ES,(1)
[1] (3) I(g) Rule T,(2) and I1
[1] (4) P(g) Rule T, (2),I2
[5] (5) (∀x)[I(x) Rule P
R(x)] Rule US,(5)
[5] (6) I(g) Rule T, (3),(6)
R(g) and I11
[1,5] (7) (∃x) [ R(g)
R(x) P(x)]Rule
RuleT,EG,
(4),(7)
[8] (8) (8)R(g) P(g) and I9
[9] (9) the conclusion is valid
Hence
which is a contradiction.Hence, the statement is valid.
Statements Involving more than
one Quantifier
• If a predicate formula involves more than one different
variable, then more than one quantifier is needed to
produce the symbolic sentence.
• Example: Consider the statement: P(x , y)
• There are 8 possible combinations of (∀x), (∀y),(∃x),
(∃y) for the statement P(x , y)
i. (∀x) (∀y) P(x , y) ii. (∃x) (∃y) P(x , y)
iii. (∀x) (∃y) P(x , y) iv. (∀y) (∃x) P(x , y)
v. (∀y) (∀x) P(x , y) vi. (∃y) (∀x) P(x , y)
vii. (∃x) (∀y) P(x ,y) viii. (∃y) (∃x) P(x ,
y)