Professional Documents
Culture Documents
Discrete Structure 0
Discrete Structure 0
2
3
4
5
6
7 Do not join the points in this case as
8 we are dealing only with whole (dis-
9
10 crete) numbers.
• Plot the points on a Cartesian coordinate plane with the number of people
on the x-axis and the number of handshakes on the y-axis. d
• Write a formula for the number o handshakes, H, in terms of the number
of people, n.
Password
During the mid-1600s, mathematicians Blaise Pascal, Pierre de Fermat and Antoine Gombaud puz-
zled over this simple gambling problem:
• Which is more likely, rolling a six on four throws of one dice,
• or rolling a double six on 24 throws with two dice?
• Which option do you think is more likely? Why?
How do we approach:
• Solve a Problem (proofs – problem solving – Discrete Maths)
• Construct an Algorithm (Analysis of Algorithms – Data Structures)
• Develop Code (All other relevant skills)
Trichotomy
• Division into three parts or elements.
• A system based on three parts or elements, especially the theological description
of humans as consisting of body, soul, and spirit.
I Proofs
1 What is a Proof? III Counting
2 The Well Ordering Principle 14 Sums and Asymptotics
3 Logical Formulas 15 Cardinality Rules
4 Mathematical Data Types 16 Generating Functions
5 Induction
6 State Machines IV Probability
7 Recursive Data Types 17 Events and Probability Spaces
8 Infinite Sets 18 Conditional Probability
19 Random Variables
II Structures
9 Number Theory
10 Directed graphs & Partial Orders
11 Communication Networks
12 Simple Graphs
13 Planar Graphs
Proof
• The properties of the set of integers are the subject of Number Theory
OR Number theory is the study of the integers.
• Numbers as a “structure” that has multiple parts of different kinds.
One part is, of course, the set of all the integers.
A second part is the collection of basic integer operations: addition, multiplication, expo-
nentiation,. . . .
Other parts are the important subsets of integers—like the prime numbers—out of which
all integers can be built using multiplication.
• Structured objects more generally are fundamental in computer science. Whether
you are writing code, solving an optimization problem, or designing a network, you
will be dealing with structures.
• Graphs, also known as networks, are a fundamental structure in computer science.
Graphs can model associations between pairs of objects; for example, two exams
that cannot be given at the same time, two people that like each other, or two sub-
routines that can be run independently.
Counting