際際滷

際際滷Share a Scribd company logo
Discrete
Mathematics
By
Sadat Sumon
Introduction to Discrete Mathematics
Aug 16, 17, Sep 11 2011
A B
C
a = qb+r gcd(a,b) = gcd(b,r)
What is Discrete Math?
 Discrete mathematics is mathematics that
deals with discrete objects.
 Discrete objects are those which are
separated from (not connected to/distinct
from) each other.
Discrete objects
 Integers, rational numbers (ones that can be
expressed as the quotient of two integers),
automobiles, houses, people etc. are all
discrete objects.
 On the other hand real numbers which include
irrational as well as rational numbers are not
discrete.
 between any two different real numbers there is
another real number different from either of them.
 So they are packed without any gaps and can not
be separated from their immediate neighbors. In
that sense they are not discrete.
Discrete Objects
 In this course we will be concerned with objects
such as integers, propositions, sets, relations
and functions, which are all discrete.
 We are going to learn concepts associated with
them, their properties, and relationships among
them among others.
Why Discrete Math?
 Through DM, we learn formal/theoretical
approaches in computer science.
 Why formal approach is important?
 we can handle infinity or large quantity and
indefiniteness with them
 results from formal approaches are reusable.
Checker
x=0
Start with any configuration with all circles on or below the x-axis.
Checker
x=0
Move: jump through your adjacent neighbour,
but then your neighbour will disappear.
Checker
x=0
Move: jump through your adjacent neighbour,
but then your neighbour will disappear.
Checker
x=0
Goal: Find an initial configuration with least number of circles to jump up to level k.
K=1
x=0
2 circles to reach level 1.
K=2
x=0
K=2
x=0
4 circles to reach level 2.
Now we have reduced to the k=1 configuration, but one level higher.
K=3
x=0
This is the configuration for k=2, so jump two level higher.
K=3
x=0
8 circles to reach level 3.
K=4
x=0
K=4
x=0
K=4
x=0
K=4
x=0
K=4
x=0
Now we have reduced to the k=3 configuration, but one level higher
20 circles (not 16) to reach level 4!
K=5?
a. 39 or below
b. 40-50 circles
c. 51-70 circles
d. 71- 100 circles
e. 101  1000 circles
f. 1001 or above
It turns out that it is impossible to move to level 5,
and there is a very interesting mathematical proof of it.
Graph Theory
How to color a map?
How to send data efficiently?
How to schedule exams?
Objectives of This Course
To learn basic mathematical concepts, e.g. sets, functions, graphs
To be familiar with formal mathematical reasoning, e.g. logic, proofs
To improve problem solving skills
To see the connections between discrete mathematics and computer science
 Introduction to logic
 Motivations
 Basic Definitions
 Logic formula
2 2 2
a b c+ =
Familiar?
Obvious?
cb
a
Pythagorean theorem
cb
a
(i) a cc square, and then
(ii) an aa & a bb square
Good Proof
b-a
We will show that these five pieces can be rearranged into:
b-a
And then we can conclude that
c
cc
a b
c
b-a
Good Proof
The five pieces can be rearranged into:
(i) a cc square
cb
a b-a
b-a
Good Proof
How to rearrange them into an axa square and a bxb square?
b
a
a ab-a
74 proofs in http://www.cut-the-knot.org/pythagoras/index.shtml
b
Good Proof
b
Bad Proof
Bad Proof
Bad Proof
Mathematical Proof
To prove mathematical theorems, we need a more rigorous system.
The standard procedure for proving mathematical theorems is invented by
Euclid in 300BC. First he started with five axioms (the truth of these
statements are taken for granted). Then he uses logic to deduce the truth
of other statements.
1.It is possible to draw a straight line from any point to any other point.
2.It is possible to produce a finite straight line continuously in a straight line.
3.It is possible to describe a circle with any center and any radius.
4.It is true that all right angles are equal to one another.
5.("Parallel postulate") It is true that, if a straight line falling on two straight lines make the
interior angles on the same side less than two right angles,
the two straight lines, if produced indefinitely, intersect on that side on which are the
angles less than the two right angles.
Statement (Proposition)
A Statement is a sentence that is either True or False
Examples:
Non-examples: x+y>0
x2
+y2
=z2
True
False
2 + 2 = 4
3 x 3 = 8
787009911 is a prime
They are true for some values of x and y
but are false for some other values of x and y.
Logic Operators
F
F
F
T
P Q
FF
TF
FT
TT
QP
AND::=
F
T
T
T
P Q
FF
TF
FT
TT
QP
OR::=
NOT::=測 ~p is true if p is false
Compound Statement
p = it is hot q = it is sunny
It is hot and sunny
It is not hot but sunny
It is neither hot nor sunny
Exclusive-Or
coffee or tea  exclusive-or
How to construct a compound statement for exclusive-or?
p q p  q
T T F
T F T
F T T
F F F
Idea 1: Look at the true rowsIdea 1: Look at the true rowsIdea 1: Look at the true rows
Want the formula to be true
exactly when the input belongs
to a true row.
The input is the second row exactly if this sub-formula is satisfied
And the formula is true exactly when the input is the second row or the third row.
Exclusive-Or
coffee or tea  exclusive-or
How to construct a compound statement for exclusive-or?
p q p  q
T T F
T F T
F T T
F F F
Idea 2: Look at the false rows
Want the formula to be true
exactly when the input does
not belong to a false row.
The input is the first row exactly if this sub-formula is satisfied
And the formula is true exactly when the input is not in the 1st
row and the 4th
row.
Logical Equivalence
p q
T T F T F F
T F T T T T
F T T T T T
F F F F T F
Logical equivalence: Two statements have the same truth table
Idea 3: Guess and check
As you see, there are many different ways to write the same logical formula.
One can always use a truth table to check whether two statements are equivalent.
Writing Logical Formula for a Truth Table
Digital logic:
Given a digital circuit, we can construct the truth table.
Now, suppose we are given only the truth table (i.e. the specification),
how can we construct a circuit (i.e. formula) that has the same function?
Writing Logical Formula for a Truth Table
p q r output
T T T F
T T F T
T F T T
T F F F
F T T T
F T F T
F F T T
F F F F
Use idea 1 or idea 2. Idea 1: Look at the true rows
and take the or.
The formula is true exactly when the input is one of the true rows.
Writing Logical Formula for a Truth Table
Idea 2: Look at the false rows,
negate and take the and.
The formula is true exactly when the input is not one of the false row.
p q r output
T T T F
T T F T
T F T T
T F F F
F T T T
F T F T
F F T T
F F F F
DeMorgans Laws
Logical equivalence: Two statements have the same truth table
Statement: Tom is in the football team and the basketball team.
Negation: Tom is not in the football team or not in the basketball team.
Statement: The number 783477841 is divisible by 7 or 11.
Negation: The number 783477841 is not divisible by 7 and not divisible by 11.
De Morgans Law
De Morgans Law
DeMorgans Laws
Logical equivalence: Two statements have the same truth table
T T F F
T F T T
F T T T
F F T T
De Morgans Law
De Morgans Law
Simplifying Statement
Practice a lot
DeMorgan
Distributive law
Tautology, Contradiction
A tautology is a statement that is always true.
A contradiction is a statement that is always false. (negation of a tautology)
In general it is difficult to tell whether a statement is a contradiction.
It is one of the most important problems in CS  the satisfiability problem.
How this is a negation of the first tautology?
Quick Summary
Key points to know.
1. Write a logical formula from a truth table.
2. Check logical equivalence of two logical formulas.
3. DeMorgans rule and other simple logical rules (e.g. distributive).
4. Use simple logical rules to simplify a logical formula.

More Related Content

What's hot (20)

RPP Eksponen (Bilangan Pangkat) 0.2
RPP Eksponen (Bilangan Pangkat) 0.2RPP Eksponen (Bilangan Pangkat) 0.2
RPP Eksponen (Bilangan Pangkat) 0.2
Juraidi .
Hidrolisis power
Hidrolisis powerHidrolisis power
Hidrolisis power
herliani123
PD dengan Koefisien Linier dan PD Eksak
PD dengan Koefisien Linier dan PD EksakPD dengan Koefisien Linier dan PD Eksak
PD dengan Koefisien Linier dan PD Eksak
Uli Rahmawati
Sistem bilangan kompleks
Sistem bilangan kompleksSistem bilangan kompleks
Sistem bilangan kompleks
tejowati
Bab 6 Hubungan Energi dalam Reaksi Kimia
Bab 6 Hubungan Energi dalam Reaksi KimiaBab 6 Hubungan Energi dalam Reaksi Kimia
Bab 6 Hubungan Energi dalam Reaksi Kimia
Jajang Sulaeman
18. soal soal notasi sigma, barisan, deret dan induksi matematika
18. soal soal notasi sigma, barisan, deret dan induksi matematika18. soal soal notasi sigma, barisan, deret dan induksi matematika
18. soal soal notasi sigma, barisan, deret dan induksi matematika
nurul Aulia sari
Kite.pptx
Kite.pptxKite.pptx
Kite.pptx
LhynCastro
Persamaan linier satu variabel (plsv)
Persamaan linier satu variabel (plsv)Persamaan linier satu variabel (plsv)
Persamaan linier satu variabel (plsv)
Oktavianti Nur Hasanah
Operasi pada vektor
Operasi pada vektorOperasi pada vektor
Operasi pada vektor
restu sri rahayu
Materi lingkaran kelas 12 - Persamaan lingkaran
Materi lingkaran kelas 12 - Persamaan lingkaranMateri lingkaran kelas 12 - Persamaan lingkaran
Materi lingkaran kelas 12 - Persamaan lingkaran
maulidyafajria
Matematika Diskrit - 06 relasi dan fungsi - 04
Matematika Diskrit - 06 relasi dan fungsi - 04Matematika Diskrit - 06 relasi dan fungsi - 04
Matematika Diskrit - 06 relasi dan fungsi - 04
KuliahKita
Section 7.4 trigonometric identities
Section 7.4 trigonometric identities Section 7.4 trigonometric identities
Section 7.4 trigonometric identities
Wong Hsiung
5 permutasi dan kombinasi
5 permutasi dan kombinasi5 permutasi dan kombinasi
5 permutasi dan kombinasi
Heni Widayani
barisan dan deret bilangan kompleks
barisan dan deret bilangan kompleksbarisan dan deret bilangan kompleks
barisan dan deret bilangan kompleks
Nurmini RuddiaNa
Linear Inequality
Linear InequalityLinear Inequality
Linear Inequality
Ashams kurian
Analisis Vektor
Analisis VektorAnalisis Vektor
Analisis Vektor
Dnr Creatives
Dimensi Tiga Jarak-matematika kelas 12.pptx
Dimensi Tiga Jarak-matematika kelas 12.pptxDimensi Tiga Jarak-matematika kelas 12.pptx
Dimensi Tiga Jarak-matematika kelas 12.pptx
windafebriyantianwar
B. 2. suku tengah pada barisan aritmetika
B. 2.  suku tengah pada barisan aritmetikaB. 2.  suku tengah pada barisan aritmetika
B. 2. suku tengah pada barisan aritmetika
SMKN 9 Bandung
RPP Eksponen (Bilangan Pangkat) 0.2
RPP Eksponen (Bilangan Pangkat) 0.2RPP Eksponen (Bilangan Pangkat) 0.2
RPP Eksponen (Bilangan Pangkat) 0.2
Juraidi .
Hidrolisis power
Hidrolisis powerHidrolisis power
Hidrolisis power
herliani123
PD dengan Koefisien Linier dan PD Eksak
PD dengan Koefisien Linier dan PD EksakPD dengan Koefisien Linier dan PD Eksak
PD dengan Koefisien Linier dan PD Eksak
Uli Rahmawati
Sistem bilangan kompleks
Sistem bilangan kompleksSistem bilangan kompleks
Sistem bilangan kompleks
tejowati
Bab 6 Hubungan Energi dalam Reaksi Kimia
Bab 6 Hubungan Energi dalam Reaksi KimiaBab 6 Hubungan Energi dalam Reaksi Kimia
Bab 6 Hubungan Energi dalam Reaksi Kimia
Jajang Sulaeman
18. soal soal notasi sigma, barisan, deret dan induksi matematika
18. soal soal notasi sigma, barisan, deret dan induksi matematika18. soal soal notasi sigma, barisan, deret dan induksi matematika
18. soal soal notasi sigma, barisan, deret dan induksi matematika
nurul Aulia sari
Persamaan linier satu variabel (plsv)
Persamaan linier satu variabel (plsv)Persamaan linier satu variabel (plsv)
Persamaan linier satu variabel (plsv)
Oktavianti Nur Hasanah
Materi lingkaran kelas 12 - Persamaan lingkaran
Materi lingkaran kelas 12 - Persamaan lingkaranMateri lingkaran kelas 12 - Persamaan lingkaran
Materi lingkaran kelas 12 - Persamaan lingkaran
maulidyafajria
Matematika Diskrit - 06 relasi dan fungsi - 04
Matematika Diskrit - 06 relasi dan fungsi - 04Matematika Diskrit - 06 relasi dan fungsi - 04
Matematika Diskrit - 06 relasi dan fungsi - 04
KuliahKita
Section 7.4 trigonometric identities
Section 7.4 trigonometric identities Section 7.4 trigonometric identities
Section 7.4 trigonometric identities
Wong Hsiung
5 permutasi dan kombinasi
5 permutasi dan kombinasi5 permutasi dan kombinasi
5 permutasi dan kombinasi
Heni Widayani
barisan dan deret bilangan kompleks
barisan dan deret bilangan kompleksbarisan dan deret bilangan kompleks
barisan dan deret bilangan kompleks
Nurmini RuddiaNa
Linear Inequality
Linear InequalityLinear Inequality
Linear Inequality
Ashams kurian
Dimensi Tiga Jarak-matematika kelas 12.pptx
Dimensi Tiga Jarak-matematika kelas 12.pptxDimensi Tiga Jarak-matematika kelas 12.pptx
Dimensi Tiga Jarak-matematika kelas 12.pptx
windafebriyantianwar
B. 2. suku tengah pada barisan aritmetika
B. 2.  suku tengah pada barisan aritmetikaB. 2.  suku tengah pada barisan aritmetika
B. 2. suku tengah pada barisan aritmetika
SMKN 9 Bandung

Similar to Discrete mathematics by sadat sumon (20)

Proving techniques for discrete mathematics
Proving techniques for discrete mathematicsProving techniques for discrete mathematics
Proving techniques for discrete mathematics
ankurgupta857016
Intro.pptx boolean algebra and logic gates
Intro.pptx boolean algebra and logic gatesIntro.pptx boolean algebra and logic gates
Intro.pptx boolean algebra and logic gates
AhmedSamow
Introtodiscteremath123456789qwertyu.pptx
Introtodiscteremath123456789qwertyu.pptxIntrotodiscteremath123456789qwertyu.pptx
Introtodiscteremath123456789qwertyu.pptx
jayarao21
Discrete Mathematics With Calculus and Derivation
Discrete Mathematics With Calculus and DerivationDiscrete Mathematics With Calculus and Derivation
Discrete Mathematics With Calculus and Derivation
DrAsifKhan10
Introduction to Discrete Mathematics and computer science Theory
Introduction to Discrete Mathematics and computer science TheoryIntroduction to Discrete Mathematics and computer science Theory
Introduction to Discrete Mathematics and computer science Theory
DrAsifKhan10
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2
blaircomp2003
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
IT Engineering Department
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
jayarao21
1 1 number theory
1 1 number theory1 1 number theory
1 1 number theory
smillertx281
Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Algebraic Methods Prove by contradiction using simplification of alebraic fra...Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Lamu5
Maths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paperMaths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paper
Fabian Hkb
DiscreteMathematicsfor btechAsWeProgress.pptx
DiscreteMathematicsfor btechAsWeProgress.pptxDiscreteMathematicsfor btechAsWeProgress.pptx
DiscreteMathematicsfor btechAsWeProgress.pptx
ssuser9183b6
Analysis.pptx
Analysis.pptxAnalysis.pptx
Analysis.pptx
AryanVerma215603
integral calculus.pdf
integral calculus.pdfintegral calculus.pdf
integral calculus.pdf
AudreyMendoza6
Fractions
FractionsFractions
Fractions
navajomath
LEC 1oral pathology by lecture 23jn yh.pptx
LEC 1oral pathology by lecture 23jn yh.pptxLEC 1oral pathology by lecture 23jn yh.pptx
LEC 1oral pathology by lecture 23jn yh.pptx
SamanArshad11
DISCRETE MATHEMATICS Presenatation for IT
DISCRETE MATHEMATICS Presenatation for ITDISCRETE MATHEMATICS Presenatation for IT
DISCRETE MATHEMATICS Presenatation for IT
ReymartVillapea
Digital txtbook final
Digital txtbook finalDigital txtbook final
Digital txtbook final
neetaa2014
HEC 222 LECTURE 1.pptx
HEC 222 LECTURE 1.pptxHEC 222 LECTURE 1.pptx
HEC 222 LECTURE 1.pptx
Raymond685379
1019Lec1.ppt
1019Lec1.ppt1019Lec1.ppt
1019Lec1.ppt
VimbainasheMavhima
Proving techniques for discrete mathematics
Proving techniques for discrete mathematicsProving techniques for discrete mathematics
Proving techniques for discrete mathematics
ankurgupta857016
Intro.pptx boolean algebra and logic gates
Intro.pptx boolean algebra and logic gatesIntro.pptx boolean algebra and logic gates
Intro.pptx boolean algebra and logic gates
AhmedSamow
Introtodiscteremath123456789qwertyu.pptx
Introtodiscteremath123456789qwertyu.pptxIntrotodiscteremath123456789qwertyu.pptx
Introtodiscteremath123456789qwertyu.pptx
jayarao21
Discrete Mathematics With Calculus and Derivation
Discrete Mathematics With Calculus and DerivationDiscrete Mathematics With Calculus and Derivation
Discrete Mathematics With Calculus and Derivation
DrAsifKhan10
Introduction to Discrete Mathematics and computer science Theory
Introduction to Discrete Mathematics and computer science TheoryIntroduction to Discrete Mathematics and computer science Theory
Introduction to Discrete Mathematics and computer science Theory
DrAsifKhan10
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2
blaircomp2003
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
IT Engineering Department
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
jayarao21
1 1 number theory
1 1 number theory1 1 number theory
1 1 number theory
smillertx281
Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Algebraic Methods Prove by contradiction using simplification of alebraic fra...Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Algebraic Methods Prove by contradiction using simplification of alebraic fra...
Lamu5
Maths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paperMaths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paper
Fabian Hkb
DiscreteMathematicsfor btechAsWeProgress.pptx
DiscreteMathematicsfor btechAsWeProgress.pptxDiscreteMathematicsfor btechAsWeProgress.pptx
DiscreteMathematicsfor btechAsWeProgress.pptx
ssuser9183b6
integral calculus.pdf
integral calculus.pdfintegral calculus.pdf
integral calculus.pdf
AudreyMendoza6
LEC 1oral pathology by lecture 23jn yh.pptx
LEC 1oral pathology by lecture 23jn yh.pptxLEC 1oral pathology by lecture 23jn yh.pptx
LEC 1oral pathology by lecture 23jn yh.pptx
SamanArshad11
DISCRETE MATHEMATICS Presenatation for IT
DISCRETE MATHEMATICS Presenatation for ITDISCRETE MATHEMATICS Presenatation for IT
DISCRETE MATHEMATICS Presenatation for IT
ReymartVillapea
Digital txtbook final
Digital txtbook finalDigital txtbook final
Digital txtbook final
neetaa2014
HEC 222 LECTURE 1.pptx
HEC 222 LECTURE 1.pptxHEC 222 LECTURE 1.pptx
HEC 222 LECTURE 1.pptx
Raymond685379

Recently uploaded (20)

Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen EngineRise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
stevebrudz1
Hire Odoo Developer OnestopDA Experts.
Hire Odoo Developer  OnestopDA Experts.Hire Odoo Developer  OnestopDA Experts.
Hire Odoo Developer OnestopDA Experts.
OnestopDA
How John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talkHow John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talk
Nacho Cougil
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio: Preprocessing, ...
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio:  Preprocessing, ...AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio:  Preprocessing, ...
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio: Preprocessing, ...
Alluxio, Inc.
AI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee SupportAI-Powered Chatbots for Employee Support
AI-Powered Chatbots for Employee Support
AutomationEdge Technologies
SE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.pptSE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.ppt
theworldimagine985
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
Code or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose BothCode or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose Both
Applitools
Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0
Yann-Ga谷l Gu辿h辿neuc
Enscape Latest 2025 Crack Free Download
Enscape Latest 2025  Crack Free DownloadEnscape Latest 2025  Crack Free Download
Enscape Latest 2025 Crack Free Download
rnzu5cxw0y
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
Adobe After Effects Crack latest version 2025
Adobe After Effects Crack latest version 2025Adobe After Effects Crack latest version 2025
Adobe After Effects Crack latest version 2025
saniasabbba
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
Douwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-LatestDouwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-Latest
mubeen010khan
AI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
AI/ML Infra Meetup | How Uber Optimizes LLM Training and FinetuneAI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
AI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
Alluxio, Inc.
SolidWorks 2025 Crack free Download updated
SolidWorks 2025 Crack  free Download updatedSolidWorks 2025 Crack  free Download updated
SolidWorks 2025 Crack free Download updated
sanasabaa73
Elastic Search Engineer Certification - Virtual
Elastic Search Engineer Certification - VirtualElastic Search Engineer Certification - Virtual
Elastic Search Engineer Certification - Virtual
Gon巽alo Pereira
LDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free DownloadLDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free Download
5ls1bnl9iv
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber ScaleAI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
Alluxio, Inc.
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605
Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen EngineRise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
Rise of the Phoenix: Lesson Learned Build an AI-powered Test Gen Engine
stevebrudz1
Hire Odoo Developer OnestopDA Experts.
Hire Odoo Developer  OnestopDA Experts.Hire Odoo Developer  OnestopDA Experts.
Hire Odoo Developer OnestopDA Experts.
OnestopDA
How John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talkHow John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talk
Nacho Cougil
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio: Preprocessing, ...
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio:  Preprocessing, ...AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio:  Preprocessing, ...
AI/ML Infra Meetup | Optimizing ML Data Access with Alluxio: Preprocessing, ...
Alluxio, Inc.
SE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.pptSE- Lecture 5 SE for easy understanding.ppt
SE- Lecture 5 SE for easy understanding.ppt
theworldimagine985
Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025Carousel - Five Key FinTech Trends for 2025
Carousel - Five Key FinTech Trends for 2025
Anadea
Code or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose BothCode or No-Code Tests: Why Top Teams Choose Both
Code or No-Code Tests: Why Top Teams Choose Both
Applitools
Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0Consequences and Principles of Software Quality v1.0
Consequences and Principles of Software Quality v1.0
Yann-Ga谷l Gu辿h辿neuc
Enscape Latest 2025 Crack Free Download
Enscape Latest 2025  Crack Free DownloadEnscape Latest 2025  Crack Free Download
Enscape Latest 2025 Crack Free Download
rnzu5cxw0y
Instagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo websiteInstagram Feed Snippet, Instagram posts display in odoo website
Instagram Feed Snippet, Instagram posts display in odoo website
AxisTechnolabs
Adobe After Effects Crack latest version 2025
Adobe After Effects Crack latest version 2025Adobe After Effects Crack latest version 2025
Adobe After Effects Crack latest version 2025
saniasabbba
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
Douwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-LatestDouwan Preactivated Plus Crack 2025-Latest
Douwan Preactivated Plus Crack 2025-Latest
mubeen010khan
AI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
AI/ML Infra Meetup | How Uber Optimizes LLM Training and FinetuneAI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
AI/ML Infra Meetup | How Uber Optimizes LLM Training and Finetune
Alluxio, Inc.
SolidWorks 2025 Crack free Download updated
SolidWorks 2025 Crack  free Download updatedSolidWorks 2025 Crack  free Download updated
SolidWorks 2025 Crack free Download updated
sanasabaa73
Elastic Search Engineer Certification - Virtual
Elastic Search Engineer Certification - VirtualElastic Search Engineer Certification - Virtual
Elastic Search Engineer Certification - Virtual
Gon巽alo Pereira
LDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free DownloadLDPlayer 9.1.20 Latest Crack Free Download
LDPlayer 9.1.20 Latest Crack Free Download
5ls1bnl9iv
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber ScaleAI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber Scale
Alluxio, Inc.
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605

Discrete mathematics by sadat sumon

  • 2. Introduction to Discrete Mathematics Aug 16, 17, Sep 11 2011 A B C a = qb+r gcd(a,b) = gcd(b,r)
  • 3. What is Discrete Math? Discrete mathematics is mathematics that deals with discrete objects. Discrete objects are those which are separated from (not connected to/distinct from) each other.
  • 4. Discrete objects Integers, rational numbers (ones that can be expressed as the quotient of two integers), automobiles, houses, people etc. are all discrete objects. On the other hand real numbers which include irrational as well as rational numbers are not discrete. between any two different real numbers there is another real number different from either of them. So they are packed without any gaps and can not be separated from their immediate neighbors. In that sense they are not discrete.
  • 5. Discrete Objects In this course we will be concerned with objects such as integers, propositions, sets, relations and functions, which are all discrete. We are going to learn concepts associated with them, their properties, and relationships among them among others.
  • 6. Why Discrete Math? Through DM, we learn formal/theoretical approaches in computer science. Why formal approach is important? we can handle infinity or large quantity and indefiniteness with them results from formal approaches are reusable.
  • 7. Checker x=0 Start with any configuration with all circles on or below the x-axis.
  • 8. Checker x=0 Move: jump through your adjacent neighbour, but then your neighbour will disappear.
  • 9. Checker x=0 Move: jump through your adjacent neighbour, but then your neighbour will disappear.
  • 10. Checker x=0 Goal: Find an initial configuration with least number of circles to jump up to level k.
  • 11. K=1 x=0 2 circles to reach level 1.
  • 13. K=2 x=0 4 circles to reach level 2. Now we have reduced to the k=1 configuration, but one level higher.
  • 14. K=3 x=0 This is the configuration for k=2, so jump two level higher.
  • 15. K=3 x=0 8 circles to reach level 3.
  • 20. K=4 x=0 Now we have reduced to the k=3 configuration, but one level higher 20 circles (not 16) to reach level 4!
  • 21. K=5? a. 39 or below b. 40-50 circles c. 51-70 circles d. 71- 100 circles e. 101 1000 circles f. 1001 or above It turns out that it is impossible to move to level 5, and there is a very interesting mathematical proof of it.
  • 22. Graph Theory How to color a map? How to send data efficiently? How to schedule exams?
  • 23. Objectives of This Course To learn basic mathematical concepts, e.g. sets, functions, graphs To be familiar with formal mathematical reasoning, e.g. logic, proofs To improve problem solving skills To see the connections between discrete mathematics and computer science
  • 24. Introduction to logic Motivations Basic Definitions Logic formula
  • 25. 2 2 2 a b c+ = Familiar? Obvious? cb a Pythagorean theorem
  • 26. cb a (i) a cc square, and then (ii) an aa & a bb square Good Proof b-a We will show that these five pieces can be rearranged into: b-a And then we can conclude that
  • 27. c cc a b c b-a Good Proof The five pieces can be rearranged into: (i) a cc square
  • 28. cb a b-a b-a Good Proof How to rearrange them into an axa square and a bxb square?
  • 29. b a a ab-a 74 proofs in http://www.cut-the-knot.org/pythagoras/index.shtml b Good Proof b
  • 33. Mathematical Proof To prove mathematical theorems, we need a more rigorous system. The standard procedure for proving mathematical theorems is invented by Euclid in 300BC. First he started with five axioms (the truth of these statements are taken for granted). Then he uses logic to deduce the truth of other statements. 1.It is possible to draw a straight line from any point to any other point. 2.It is possible to produce a finite straight line continuously in a straight line. 3.It is possible to describe a circle with any center and any radius. 4.It is true that all right angles are equal to one another. 5.("Parallel postulate") It is true that, if a straight line falling on two straight lines make the interior angles on the same side less than two right angles, the two straight lines, if produced indefinitely, intersect on that side on which are the angles less than the two right angles.
  • 34. Statement (Proposition) A Statement is a sentence that is either True or False Examples: Non-examples: x+y>0 x2 +y2 =z2 True False 2 + 2 = 4 3 x 3 = 8 787009911 is a prime They are true for some values of x and y but are false for some other values of x and y.
  • 35. Logic Operators F F F T P Q FF TF FT TT QP AND::= F T T T P Q FF TF FT TT QP OR::= NOT::=測 ~p is true if p is false
  • 36. Compound Statement p = it is hot q = it is sunny It is hot and sunny It is not hot but sunny It is neither hot nor sunny
  • 37. Exclusive-Or coffee or tea exclusive-or How to construct a compound statement for exclusive-or? p q p q T T F T F T F T T F F F Idea 1: Look at the true rowsIdea 1: Look at the true rowsIdea 1: Look at the true rows Want the formula to be true exactly when the input belongs to a true row. The input is the second row exactly if this sub-formula is satisfied And the formula is true exactly when the input is the second row or the third row.
  • 38. Exclusive-Or coffee or tea exclusive-or How to construct a compound statement for exclusive-or? p q p q T T F T F T F T T F F F Idea 2: Look at the false rows Want the formula to be true exactly when the input does not belong to a false row. The input is the first row exactly if this sub-formula is satisfied And the formula is true exactly when the input is not in the 1st row and the 4th row.
  • 39. Logical Equivalence p q T T F T F F T F T T T T F T T T T T F F F F T F Logical equivalence: Two statements have the same truth table Idea 3: Guess and check As you see, there are many different ways to write the same logical formula. One can always use a truth table to check whether two statements are equivalent.
  • 40. Writing Logical Formula for a Truth Table Digital logic: Given a digital circuit, we can construct the truth table. Now, suppose we are given only the truth table (i.e. the specification), how can we construct a circuit (i.e. formula) that has the same function?
  • 41. Writing Logical Formula for a Truth Table p q r output T T T F T T F T T F T T T F F F F T T T F T F T F F T T F F F F Use idea 1 or idea 2. Idea 1: Look at the true rows and take the or. The formula is true exactly when the input is one of the true rows.
  • 42. Writing Logical Formula for a Truth Table Idea 2: Look at the false rows, negate and take the and. The formula is true exactly when the input is not one of the false row. p q r output T T T F T T F T T F T T T F F F F T T T F T F T F F T T F F F F
  • 43. DeMorgans Laws Logical equivalence: Two statements have the same truth table Statement: Tom is in the football team and the basketball team. Negation: Tom is not in the football team or not in the basketball team. Statement: The number 783477841 is divisible by 7 or 11. Negation: The number 783477841 is not divisible by 7 and not divisible by 11. De Morgans Law De Morgans Law
  • 44. DeMorgans Laws Logical equivalence: Two statements have the same truth table T T F F T F T T F T T T F F T T De Morgans Law De Morgans Law
  • 45. Simplifying Statement Practice a lot DeMorgan Distributive law
  • 46. Tautology, Contradiction A tautology is a statement that is always true. A contradiction is a statement that is always false. (negation of a tautology) In general it is difficult to tell whether a statement is a contradiction. It is one of the most important problems in CS the satisfiability problem. How this is a negation of the first tautology?
  • 47. Quick Summary Key points to know. 1. Write a logical formula from a truth table. 2. Check logical equivalence of two logical formulas. 3. DeMorgans rule and other simple logical rules (e.g. distributive). 4. Use simple logical rules to simplify a logical formula.