Why Are You Studying this Course 
 This course will develop your mathematical maturity 
2 
 Discrete mathematics provides the mathematical 
foundations for many computer science courses 
• Data Structures 
• Algorithm Analysis and Design 
• Database Management Systems and Database Theory 
• Compiler Construction 
• Computer Security 
• Digital Logic Design 
• Artificial Intelligence
3 
Course Information 
 Syllabus: 
• Logic 
• Sets 
• Relations 
• Functions. 
• Combinatory: counting, permutations, combinations. 
• Recursion 
• Probibility 
• Mathematical Induction 
• Graph theory: Graphs and Trees
4 
Course Information 
 Textbook: 
• Discrete Mathematics and its Applications by Kenneth. H. 
Rosen, 7th Edition 
• Discrete Mathematics with Application” by Susana. 4th 
edition, 2010
5 
 How will you master Discrete Structures 
• “I hear and I forget. I see and I remember. I do and 
understand” - Chinese proverb
6 
Terminology 
Discrete - Composed of distinct OR separable/unconnected parts. 
(Opposite of continuous.) 
Structures - Objects built up from simpler objects according to 
some definite pattern.
7
8 
Introduction 
 What is discrete mathematics? 
• Part of mathematics devoted to the study of 
discrete objects. 
• Discrete means consisting of distinct or 
unconnected elements. 
• As computers are discrete object operating one 
jumpy, discontinuous step at a time, Discrete 
Math is the right framework for describing 
precisely Computer Science concepts.
9 
Introduction 
 What is discrete mathematics? 
• In computer science we usually deal with finite, 
discrete objects. 
• For example, we cannot store a real number 
(infinite precision) in a computer but can only 
store bits (finite precisions). 
 Definition 
• Discrete Mathematics is a collection of 
mathematical topics that examine and use finite 
or countable infinite mathematical objects.
Problems Solved Using DM
Logic – 7
Statement – 8a
Examples – 8b
Truth Values of Propositions – 8c
Examples – 9a
Statements & Truth Values – 9b 
T 
T 
F 
F
Example – 10b
10/13/2014 19
Example – 11b
Compound Statement – 12a
Symbolic Representation – 13a
Logical Connectives – 14a
24 
Some Alternative Notations 
Name: not and or xor implies iff 
Propositional logic:       
Boolean algebra: p pq +  
C/C++/Java (wordwise): ! && || != == 
C/C++/Java (bitwise): ~ & | ^ 
Logic gates:
Examples – 14b
Translating from English to 
Symbols – 15
Translating from English to 
Symbols – 16a
Translating from English to 
Symbols – 16
Translating from English to 
Symbols – 17a
Translating from English to 
Symbols – 17b
Negation – 19
Truth Table for ~p – 20
10/13/2014 33
Conjunction – 21
Truth Table for p ^ q – 22
Disjunction – 23
Truth Table for p q – 15
Truth Table
• Advanced versions of many Internet search engines allow you 
to use some form of and, or and not to refine the search 
process. 
• Imagine that you want to find web pages about careers in 
mathematics or computer science but not finance or 
marketing. 
• With a search engine that uses quotation marks to enclose 
exact phrases and expresses and as AND, or as OR, and not as 
NOT, you would write 
• Careers AND (mathematics OR "computer science") 
• AND NOT (finance OR marketing).
Truth Table for ~p^q - 2
Truth Table for ~p^q – 2a
Truth Table for ~p^q – 2b
Truth Table for ~p^q – 2c
~p ^ (q v~ r) – (2 - 3a)
~p ^ (q v~ r) – 2 - 3b
~p ^ (q v~ r) – 2 - 3c
~p ^ (q v~ r) – 2 - 3d
v 
Truth Table for ~p (p v~ q) – 2 - 3e
Truth Table for (pvq) ^~ (p^q) – 2 - 4a
Truth Table for (pvq) ^~ (p^q) – 2 - 4c
v v 
Truth Table for (pvq) ^~ (p^q) – 2 - 4e
Truth Table for (pvq) ^~ (p^q) – 2 -4f
Exclusive OR – 2 - 5
Symbols for Exclusive OR – 2 - 5a 
p q p q 
T 
T 
F 
T 
F 
T 
F 
T 
T 
F 
F 
F
Bit Strings 
Thus voltage memory stored in a computer can be 
represented by a sequence of 0’s and 1’s such as 
01 1011 0010 1001 
Another portion of the memory might look like 
10 0010 1111 1001 
Each of the number in the sequence is called a bit, and 
the whole sequence of bits is called a bit string. 
Lecture 1 55
Logical Equivalence – 2 - 6
Double Negation ~(~p) ≡ p – 2 - 7
Examples – 2 - 12
Example – 2 - 17c
Example – 2 - 17d
Example – 2 - 17e
Exercise – 2 - 19
Tautology – 2 - 21
Example – 2 - 21a
Contradiction – 2 - 22
Example – 2 - 22a
Exercise – 2 - 23
Prove that the above statement is a Tautology 
10/13/2014 69
Exercise – 2 - 24

Logic