Session 1 Introduction To Discrete Mathematics
Session 1 Introduction To Discrete Mathematics
1
analysis to solve counting problems and analyze algorithms, not on applying
formulae.
Examples
1) Sorting list of integers
2) Finding the shortest path from your home to your friend’s home
3) How ways different combinations of passwords are possible with just 8
alphanumeric characters?
4) Encrypt a message and deliver it to your friend and you don’t want
anybody to read that message except your friend
5) Drawing a graph with two conditions:
a) You are not allowed to lift your pen
b) You are not allowed to repeat edges e.g. try drawing these
graphs
Solution
2
Other kinds of problems solved using discrete mathematics include:
- 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 thshortest 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 can it be proved that a sorting algorithm correctly sorts a list?
- How can a circuit that adds two integers be designed?
- How many valid Internet addresses are there?
3
The topics mathematical logic, sets, relations, function, Boolean algebra, logic
gates, combinations, graph theory and finite state machines will be discussed in
this Unit. Throughout I have made an extensive use of worked examples to
develop the general ideas.
Remark
You will learn the discrete structures and techniques needed to solve problems
such as these. More generally, discrete mathematics is used whenever objects are
counted, when relationships between finite (or countable) sets are studied, and
when processes involving a finite number of steps are analyzed. A key reason for
the growth in the importance of discrete mathematics is that information is
stored and manipulated by computing machines in a discrete fashion.