DM - Unit 1 - PPT
DM - Unit 1 - PPT
CO2: Apply appropriate mathematical concepts and skills to solve problems in both familiar
and unfamiliar situations including those in real-life contexts.
CO3: Design and analyze real world engineering problems by applying set theory,
propositional logic and to construct proofs using mathematical induction.
CO4: Specify, manipulate and apply equivalence relations; construct and use functions and apply
these concepts to solve new problems.
CO5: Calculate numbers of possible outcomes using permutations and combinations; to model
and analyze computational processes using combinatorics.
CO6: Model and solve computing problem using tree and graph and solve problems using
appropriate algorithms.
CO7: Analyze the properties of binary operations, apply abstract algebra in coding theory and
evaluate the algebraic structures.
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Learning Resources
Text Books:
1. C. L. Liu, “Elements of Discrete Mathematics”‖, TMH, ISBN 10:0-07-066913-9.2.
2. N. Biggs, “Discrete Mathematics”, 3rd Ed, Oxford University Press, ISBN 0 –19-
850717–8.
Reference Books:
1. Kenneth H. Rosen, “Discrete Mathematics and its Applications”‖, Tata McGraw-Hill,
ISBN 978-0-07-288008-3
2. Bernard Kolman, Robert C. Busby and Sharon Ross, “Discrete Mathematical
Structures”‖, Prentice-Hall of India /Pearson, ISBN: 0132078457, 9780132078450.
3. Narsingh Deo, “Graph with application to Engineering and Computer Science”,
Prentice Hall of India, 1990, 0 –87692 –145 –4.
4. Eric Gossett, “Discrete Mathematical Structures with Proofs”, Wiley India Ltd,
ISBN:978-81-265-2758-8.
5. Sriram P.and Steven S., “Computational Discrete Mathematics”, Cambridge University
Press, ISBN 13: 978-0-521-73311-3.
Mr. S. B. Shinde
Asst Professor, MESCOE Pune
Unit-I: Contents
Introduction and Significance of Discrete Mathematics,
What is Mathematics?
Consider the function which gives the number of children of each person
reading this.
What is the range? I’m guessing it is something like {0, 1, 2, 3}. Maybe 4
is in there too.
But certainly there is nobody reading this that has 1.32419 children.
The inputs to the function also form a discrete set because each input is an
individual person.
A set can be written explicitly by listing its elements using set bracket.
Sets are used to group objects together. Often, but not always, the objects
in a set have similar properties.
2. Infinite Set::
A set which contains infinite number of elements is called an infinite set.
i.e set containing never-ending elements is called an infinite set.
For Example:
A = {x : x ∈ N, x > 1}
B = {x : x ∈ W, x = 2n}
S = {x | x ∈ N and x >10}
Set of all points in a plane
Set of all prime numbers
3. Subset ::
A set X is a subset of set Y (Written as X⊆Y) if and only if every element
of X is also an element of set Y.
Alternate way to define X is a subset of Y: ∀ x (x ∈ X) → (x ∈ Y)
Every set is a subset of itself, i.e., X ⊂ X, Y ⊂ Y.
Empty set is a subset of every set.
For Example:
Let, Y = {1, 2, 3, 4, 5, 6} and X = {1, 2}. Here set X is a subset of set
Y as all the elements of set X is in set Y. Hence, we can write X⊆Y.
Let, Y = {1, 2, 3} and X = {1, 2, 3}.
YES X⊆Y. As set X is a subset (Not a proper subset) of set Y as all
the elements of set X is in set Y.
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Type of Set Contd…
4. Proper Subset::
The term “proper subset” can be defined as “subset of but not equal to”.
i.e X⊂Y and X≠Y
A Set X is a proper subset of set Y (Written as X⊂Y) if every element of X
is an element of set Y and |X|<|Y|.
No set is a proper subset of itself.
Null set or ∅ is a proper subset of every set.
For Example:
X={1,2,3} and Y ={1,2,3,4,5} Is: X ⊂ Y ?
X = {p, q, r} and Y = {p, q, r, s, t} Is: X ⊂ Y ?
Answer: Yes.
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Type of Set Contd…
5. Super Set::
Whenever a set X is a subset of set Y, we say the Y is a superset of X and
written as Y ⊇ X.
For Example:
X = {a, e, i, o, u} and Y = {a, b, c, ............., z}
Here X ⊆ Y i.e., X is a subset of Y but Y ⊇ X i.e., Y is a super set of X.
6. Universal Set::
It is a collection of all elements in a particular context or application.
All the sets in that context or application are essentially subsets of this
universal set. Universal sets are represented as U.
For Example:
We may define U as the set of all animals on earth. In this case, set of all mammals is
a subset of U, set of all fishes is a subset of U, set of all insects is a subset of U, and
so on.
If A = {1, 2, 3}; B = {2, 3, 4} ; C = {3, 5, 7} then U = {1, 2, 3, 4, 5, 7} [Here A ⊆ U,
B ⊆ U, C ⊆ U and U ⊇ A, U ⊇ B, U ⊇ C]
If P is a set of all whole numbers and Q is a set of all negative numbers then the
universal set is a set of all integers.
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Type of Set Contd…
9. Equal Set::
Two sets are equal (=) if and only if they have the same elements.
Cardinality of equal set is same.
For Example:
If A={1,2,6}and B={6,1,2}, they are equal as every element of set A is
an element of set B and every element of set B is an element of set A.
{1,2,3} = {3,1,2} = {1,2,1,3,2} are equal Sets
Note: Duplicates don't contribute anything new to a set, so remove them. The order
of the elements in a set doesn't contribute anything new.
https://www.mathsisfun.com/algebra/mathematical-induction.html
A B A ∨ B ¬ A ¬ B (¬ A) ∧ ( ¬ B) (A ∨ B) ∧ [( ¬ A) ∧ (¬ B)] (A ∨ B) ∧ (¬ A)
T T T F F F F F
T F T F T F F F
F T T T F F F T
F F F T T T F F
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Examples on Propositional Logic
Prove ¬ (A∨ B) and [(¬A) ∧ (¬B)] are propositional equivalent:
Testing by 1st method (Matching truth table):
A B A∨B ¬ (A ∨ B) ¬A ¬B [(¬ A) ∧ (¬ B)]
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
Here, we can see the truth values of ¬ (A∨B) and [(¬A) ∧ (¬B)] are same, hence the
statements are equivalent.
Testing by 2nd method (Bi-conditionality):
A B ¬ (A ∨ B ) [(¬ A) ∧ (¬ B)] [¬ (A ∨ B)] ⇔ [(¬ A ) ∧ (¬ B)]
T T F F T
T F F F T
F T F F T
F F T T T
Statement IF P then Q P→ Q
Inverse IF Not P then NOT Q ¬ P→ ¬ Q
Converse IF Q then P Q→P
Contra-positive IF Not Q then NOT P ¬ Q→ ¬ P
Solution 2: Solution 3:
P ¬P P∨¬P P ¬P P∧¬P
T F T T F F
F T T F T F
P Q ¬P ¬Q P ∨ Q ¬ P ∨ ¬ Q (P ∨ Q) ∧ ( ¬ P ∨ ¬ Q)
F F T T F T F
P Q ¬P P→ Q ¬ P ∨ (P→Q)
T T F T T
F T T T T
F F T T T
Mr. S. B. Shinde Asst Professor, MESCOE Pune
Examples
8. For given propositions construct truth tables:
a) P ∧ (¬ Q ∨ R)
b) (P ∧ Q) → ¬ R
c) P → (¬ Q ∨ ¬ R)
d) (P ↔ Q) ↔ (R ↔ S)
e) (P ⊕ Q) ∧ (P ⊕¬Q)