Chapter 1: The Foundations: Logic and Proofs: Discrete Mathematics and Its Applications
Chapter 1: The Foundations: Logic and Proofs: Discrete Mathematics and Its Applications
1
Some Rules
2
Discrete Structures
Discrete mathematics is the part of mathematics devoted to the
study of discrete objects (Kenneth H. Rosen, 7th edition).
Discrete mathematics is the mathematical study of properties,
and relationships among discrete objects.
Discrete mathematics is the study of mathematical structures
that are fundamentally discrete rather than continuous.
o Discrete objects are those which are separated from (distinct
from) each other, such as integers, rational numbers, houses,
people, etc.
o Real numbers are not discrete.
o Computers use discrete structures to represent and manipulate
data.
3
Discrete Mathematics
Discrete Data: A set of data is said to be
discrete if the values belonging to the set are
distinct and separate. It is counted e.g.,
{1,2,3,4,5,6}
In this course:
•We’ll be concerned with objects such as integers, propositions,
sets, relations and functions, which are all discrete.
•We’ll learn concepts associated with them, their properties, and
relationships among them.
•We’ll learn mathematical facts and their applications.
Discrete Data: A set of data is said to be discrete if the values belonging to the set are distinct and
separate. It is counted e.g., {1,2,3,4,5,6}
5
6
Why Discrete Structures -- Applications
How many ways are there to choose a valid password on a computer
system?
What is the probability of winning a lottery?
Is there a link between two computers in a network?
How can I identify spam e-mail messages?
How can I encrypt a message so that no unintended recipient can read it?
What is the shortest path between two cities using a transportation
system?
How can a list of integers be sorted so that the integers are in increasing
order?
How many steps are required to do such a sorting?
How many valid Internet addresses are there?
7
Why Discrete Structures -- Applications
Alice and Bob have never met but they would like to
exchange a message. Eve would like to eavesdrop.
E.g. between you and the Bank of America.
They could come up with a good encryption
algorithm and exchange the encryption key –
but how to do it without
Eve getting it? (If Eve gets it, all security
is lost.)
9
Applications: Coloring a Map
Graph:
A vertex correspond to a course.
An edge between two vertices denotes that there is at least one common
student in the courses they represent.
Each time slot for a final exam is represented by a different color.
1 1
Time Courses
Period
2 7 2 I 1,6
7
II 2
III 3,5
IV 4,7
6 3 6 3
5 4 5 4
14
Applications: Logic
Hardware and software specifications
Formal: Input_wire_A
value in {0, 1}
Example 1: Adder
One-bit Full Adder with
22
Course Outline
23
TEXT Book:
Discrete Mathematics & its Applications, 7th
edition. By Kenneth H. Rosen.
References Book:
Invitation to Discrete Maths, 2nd edition. By
Matousek and Nesetril.
Discrete Mathematics. By Lovasz, Pelikan and
Vesztergombi.
24
Marks Distribution
Assignments 20%
Mid – I 15%
Mid – II 15%
Final Exam 50%
25
26