SlideShare a Scribd company logo
Discrete
Mathematics
Lecture 01
Propositions
Overview
• Propositions
• Propositional Logic
• Applications of Propositional Logic
• Propositional Equivalences
2
Tashreef Muhammad
Propositions
Understanding the Concept of
“Propositions”
3
Tashreef Muhammad
Propositions
• Rules of logic specify mathematical statements
• There exists and integer not the sum of two squares
• For every positive integer 𝑛𝑛, the sum of positive
integers not exceeding 𝑛𝑛 is
𝑛𝑛 𝑛𝑛+1
2
• A proposition is a declarative sentence
• Either True or False
• Not both
4
Tashreef Muhammad
Propositions
• Washington, D.C., is the capital of U.S.A.
• Toronto is the capital of Canada
• 1 + 1 = 2
• 2 + 2 = 3
• What time is it?
• Read this carefully
• 𝑥𝑥 + 1 = 2
5
Tashreef Muhammad
Propositions
• Propositions are expressed through variables
• Makes operations easier
• Letters denote propositional variables
• Convention: 𝑝𝑝, 𝑞𝑞, 𝑟𝑟, 𝑠𝑠, …
• They are either true or false
• Truth values denoted by T; when proposition is true
• Truth values denoted by F; when proposition is false
6
Tashreef Muhammad
Propositional
Logic
Discussing different types of
propositional logic
7
Tashreef Muhammad
Propositional Logic
• Compound Propositions
• New propositions
• Formed from existing propositions
• Through logical operators
• Connectives
• Some of the logical operators
• Form propositions using multiple propositions
8
Tashreef Muhammad
Propositional Logic
• Negation
• The negation of 𝑝𝑝 is denoted by ¬𝑝𝑝 (or ̅
𝑝𝑝)
• Makes: “It is not the case that 𝑝𝑝”
• Read as “not 𝑝𝑝”
• Example
• 𝑝𝑝: Michael’s PC runs Linux
• ¬𝑝𝑝: It is not the case that Michael’s PC runs Linux
• Simply: Michael’s PC does not run Linux
9
Tashreef Muhammad
Propositional Logic
• Conjunction
• The conjunction of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ∧ 𝑞𝑞
• Read as “𝑝𝑝 and 𝑞𝑞”
• Sometimes “but” instead of “and” → The sun is shining, but it is
raining
• Example
• 𝑝𝑝: Monir’s PC has 512 GB SSD
• 𝑞𝑞: Monir’s PC runs faster than 2 GHz
• 𝑝𝑝 ∧ 𝑞𝑞: Monir’s PC has 512 GB SSD and Monir’s PC runs faster
than 2 GHz
• Simply: Monir’s PC has 512 GB SSD and runs faster than 2 GHz
10
Tashreef Muhammad
Propositional Logic
• Disjunction
• The disjunction of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ∨ 𝑞𝑞
• Read as “𝑝𝑝 or 𝑞𝑞”
• Two variations: “exclusive or”, “inclusive or”
• Example
• 𝑝𝑝: Monir’s PC has 512 GB SSD
• 𝑞𝑞: Monir’s PC runs faster than 2 GHz
• 𝑝𝑝 ∨ 𝑞𝑞: Monir’s PC has 512 GB SSD or Monir’s PC runs faster than 2 GHz
• Simply: Monir’s PC has 512 GB SSD or runs faster than 2 GHz
• Must contain at least one
• Can contain both (inclusive or) or only one (exclusive or)
11
Tashreef Muhammad
Propositional Logic
• Condition Statements
• The conditional statements of 𝑝𝑝 and 𝑞𝑞 is denoted by
𝑝𝑝 → 𝑞𝑞
• Read as “If 𝑝𝑝 then 𝑞𝑞” and many other ways
• Example
• 𝑝𝑝: You get 100% on the final
• 𝑞𝑞: You get an A
• 𝑝𝑝 → 𝑞𝑞: If you get 100% on the final, then you get an A
• Another: If you have a smartphone, then 2 + 3 = 5
12
Tashreef Muhammad
Propositional Logic
• Converse
• 𝑞𝑞 → 𝑝𝑝 is called converse of 𝑝𝑝 → 𝑞𝑞
• Contrapositive
• ¬𝑞𝑞 → ¬𝑝𝑝 is called contrapositive of 𝑝𝑝 → 𝑞𝑞
• Always has the same truth value as condition
• Inverse
• ¬𝑝𝑝 → ¬𝑞𝑞 is called inverse of 𝑝𝑝 → 𝑞𝑞
13
Tashreef Muhammad
Propositional Logic
• Bidirectional
• The bidirectional of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ↔ 𝑞𝑞
• Read as “𝑝𝑝 if and only if 𝑞𝑞”
• Bi-implications
• Similar to 𝑝𝑝 → 𝑞𝑞 ∧ (𝑞𝑞 → 𝑝𝑝)
• Example
• 𝑝𝑝: You can take the flight
• 𝑞𝑞: You buy a ticket
• 𝑝𝑝 ↔ 𝑞𝑞: You can take the if and only if (iff) you buy a ticket
14
Tashreef Muhammad
Propositional Logic
Tashreef Muhammad 15
𝒑𝒑 𝒒𝒒 ¬𝒑𝒑 ¬𝒒𝒒 𝒑𝒑 ∧ 𝒒𝒒 𝒑𝒑 ∨ 𝒒𝒒 𝒑𝒑 ⊗ 𝒒𝒒 𝒑𝒑 → 𝒒𝒒 𝒑𝒑 ↔ 𝒒𝒒
T T F F T T F T T
T F F T F T T F F
F T T F F T T T F
F F T T F F F T T
Propositional Logic
Tashreef Muhammad 16
𝒑𝒑 𝒒𝒒 ¬𝒒𝒒 𝒑𝒑 ∨ ¬𝒒𝒒 𝒑𝒑 ∧ 𝒒𝒒 (𝒑𝒑 ∨ ¬𝒒𝒒) → (𝒑𝒑 ∧ 𝒒𝒒)
T T F T T T
T F T T F F
F T F F F T
F F T T F F
Truth Tables of Compound Propositions: (𝒑𝒑 ∨ ¬𝒒𝒒) → (𝒑𝒑 ∧ 𝒒𝒒)
Propositional Logic
• Precedence of Logical Operators
• ¬ > ∧ > ∨ > → > ↔
• Use brackets for clarification
• Logic and Bit Operations
• Bit: Binary Digit
• 1 can represent True/T
• 0 can represent False/F
• Bit strings, length, Bitwise operations
17
Tashreef Muhammad
Applications of
Propositional
Logic
Where propositional logics are
used
18
Tashreef Muhammad
Applications of Propositional
Logic
• Translating English sentences
• System specifications
• Boolean searches
• Logic puzzles
• Logic circuits
• Read examples from books to understand
scenario
19
Tashreef Muhammad
Propositional
Equivalences
Understanding and using
propositional equivalences
20
Tashreef Muhammad
Propositional Equivalences
• Tautology
• A compound proposition that is always true
• Contradiction
• A compound proposition that is always false
• Contingency
• A compound proposition neither true, nor false
Tashreef Muhammad 21
Propositional Equivalences
• Logical Equivalences
• Separate compound propositions
• Same truth values in all cases
• Let 𝑝𝑝 and 𝑞𝑞 be two separate compound propositions
• 𝑝𝑝 and 𝑞𝑞 logically equivalent if 𝑝𝑝 ↔ 𝑞𝑞 is a tautology.
• 𝑝𝑝 ≡ 𝑞𝑞 (or 𝑝𝑝 ⇔ 𝑞𝑞) denotes that 𝑝𝑝 and 𝑞𝑞 are logically
equivalent
• 𝑝𝑝 ≡ 𝑞𝑞 is not a compound proposition, but a statement
that 𝑝𝑝 ↔ 𝑞𝑞 is a tautology
Tashreef Muhammad 22
Propositional Equivalences
• Logical equivalences proved by truth tables
• Find the true value for each proposition in all
cases
• If the truth values matches for all, they are
equivalent
• Example: ¬(𝑝𝑝 ∨ 𝑞𝑞)and ¬𝑝𝑝 ∧ ¬𝑞𝑞 are logically
equivalent
Tashreef Muhammad 23
Propositional Equivalences
• Identity laws
• 𝑝𝑝 ∧ 𝑻𝑻 ≡ 𝑝𝑝 and 𝑝𝑝 ∨ 𝐹𝐹 ≡ 𝑝𝑝
• Domination laws
• 𝑝𝑝 ∨ 𝑻𝑻 ≡ 𝑻𝑻 and 𝑝𝑝 ∧ 𝐹𝐹 ≡ 𝑭𝑭
• Idempotent laws
• 𝑝𝑝 ∨ 𝑝𝑝 ≡ 𝑝𝑝 and 𝑝𝑝 ∧ 𝑝𝑝 ≡ 𝑝𝑝
• Double negation law
• ¬(¬𝑝𝑝) ≡ 𝑝𝑝
Tashreef Muhammad 24
Propositional Equivalences
• Commutative laws
• 𝑝𝑝 ∨ 𝑞𝑞 ≡ 𝑞𝑞 ∨ 𝑝𝑝 and 𝑝𝑝 ∧ 𝑞𝑞 ≡ 𝑞𝑞 ∧ 𝑝𝑝
• Associative laws
• (𝑝𝑝 ∨ 𝑞𝑞) ∨ 𝑟𝑟 ≡ 𝑝𝑝 ∨ (𝑞𝑞 ∨ 𝑟𝑟) and (𝑝𝑝 ∧ 𝑞𝑞) ∧ 𝑟𝑟 ≡ 𝑝𝑝 ∧ (𝑞𝑞 ∧ 𝑟𝑟)
• Distributive laws
• 𝑝𝑝 ∨ 𝑞𝑞 ∧ 𝑟𝑟 ≡ 𝑝𝑝 ∨ 𝑞𝑞 ∧ 𝑝𝑝 ∨ 𝑟𝑟
• 𝑝𝑝 ∧ (𝑞𝑞 ∨ 𝑟𝑟) ≡ (𝑝𝑝 ∧ 𝑞𝑞) ∨ (𝑝𝑝 ∧ 𝑟𝑟)
Tashreef Muhammad 25
Propositional Equivalences
• De Morgan’s laws
• ¬(𝑝𝑝 ∧ 𝑞𝑞) ≡ ¬𝑝𝑝 ∨ ¬𝑞𝑞 and ¬(𝑝𝑝 ∨ 𝑞𝑞) ≡ ¬𝑝𝑝 ∧ ¬𝑞𝑞
• Absorption laws
• 𝑝𝑝 ∨ (𝑝𝑝 ∧ 𝑞𝑞) ≡ 𝑝𝑝 and 𝑝𝑝 ∧ (𝑝𝑝 ∨ 𝑞𝑞) ≡ 𝑝𝑝
• Negation laws
• 𝑝𝑝 ∨ ¬𝑝𝑝 ≡ 𝑻𝑻 and 𝑝𝑝 ∧ ¬𝑝𝑝 ≡ 𝑭𝑭
Tashreef Muhammad 26
Propositional Equivalences
• There exists many such equivalences
• The more you know, the better
• Helps evaluate larger propositions faster
• Faster than truth table
• A notation for long compound proposition
• 𝑝𝑝1 ∧ 𝑝𝑝2 ∧ 𝑝𝑝3 ∧ ⋯ ∧ 𝑝𝑝𝑛𝑛 can be written as ∧𝑗𝑗=1
𝑛𝑛
𝑝𝑝𝑗𝑗
• 𝑝𝑝1 ∨ 𝑝𝑝2 ∨ 𝑝𝑝3 ∨ ⋯ ∨ 𝑝𝑝𝑛𝑛 can be written as ∨𝑗𝑗=1
𝑛𝑛
𝑝𝑝𝑗𝑗
Tashreef Muhammad 27
Propositional Equivalences
• De Morgan’s law is particularly important
• Helps a lot in logical equivalences
• Read book example for better understanding
• Constructing new logical equivalences
• Using existing logical equivalences
• Kind of like simplification
• Make new logical equivalence
Tashreef Muhammad 28
Propositional Equivalences
Tashreef Muhammad 29
Show that ¬ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ 𝑞𝑞 ≡ ¬𝑝𝑝 ∧ ¬𝑞𝑞
Solution:
¬ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ 𝑞𝑞 ≡ ¬𝑝𝑝 ∧ ¬ ¬𝑝𝑝 ∧ 𝑞𝑞 [Second De Morgan’s Law]
≡ ¬𝑝𝑝 ∧ ¬ ¬𝑝𝑝 ∨ ¬𝑞𝑞 [First De Morgan’s Law]
≡ ¬𝑝𝑝 ∧ 𝑝𝑝 ∨ ¬𝑞𝑞 [Double Negation Law]
≡ ¬𝑝𝑝 ∧ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ ¬𝑞𝑞 [Second Distributive Law]
≡ 𝑭𝑭 ∨ ¬𝑝𝑝 ∧ ¬𝑞𝑞 [Because, 𝑝𝑝 ∧ ¬𝑝𝑝 ≡ 𝑭𝑭]
≡ ¬𝑝𝑝 ∧ 𝑞𝑞 [Identity law for 𝑭𝑭]
Propositional Equivalences
• Propositional Satisfiability
• When no combinations exist to make a compound
proposition true, it is unsatisfiable
• In other words, the negation of the compound
proposition is a tautology
• The case where true value of a compound proposition
is true is a solution
• Build a truth table for a compound proposition to prove
whether it is satisfiable or unsatisfiable
Tashreef Muhammad 30
Propositional Equivalences
• Applications of Satisfiability
• Sudoku
• Read book for scenario
• Solving satisfiable problems
• For every 𝑥𝑥 variable compound proposition there is 2𝑥𝑥
possible combinations
• Brute force approaches are time consuming
• We need algorithms
Tashreef Muhammad 31
Thank You
32
Tashreef Muhammad

More Related Content

Recently uploaded

Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 

Recently uploaded (20)

Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Lecture 01 - Discrete Mathematics

  • 2. Overview • Propositions • Propositional Logic • Applications of Propositional Logic • Propositional Equivalences 2 Tashreef Muhammad
  • 3. Propositions Understanding the Concept of “Propositions” 3 Tashreef Muhammad
  • 4. Propositions • Rules of logic specify mathematical statements • There exists and integer not the sum of two squares • For every positive integer 𝑛𝑛, the sum of positive integers not exceeding 𝑛𝑛 is 𝑛𝑛 𝑛𝑛+1 2 • A proposition is a declarative sentence • Either True or False • Not both 4 Tashreef Muhammad
  • 5. Propositions • Washington, D.C., is the capital of U.S.A. • Toronto is the capital of Canada • 1 + 1 = 2 • 2 + 2 = 3 • What time is it? • Read this carefully • 𝑥𝑥 + 1 = 2 5 Tashreef Muhammad
  • 6. Propositions • Propositions are expressed through variables • Makes operations easier • Letters denote propositional variables • Convention: 𝑝𝑝, 𝑞𝑞, 𝑟𝑟, 𝑠𝑠, … • They are either true or false • Truth values denoted by T; when proposition is true • Truth values denoted by F; when proposition is false 6 Tashreef Muhammad
  • 7. Propositional Logic Discussing different types of propositional logic 7 Tashreef Muhammad
  • 8. Propositional Logic • Compound Propositions • New propositions • Formed from existing propositions • Through logical operators • Connectives • Some of the logical operators • Form propositions using multiple propositions 8 Tashreef Muhammad
  • 9. Propositional Logic • Negation • The negation of 𝑝𝑝 is denoted by ¬𝑝𝑝 (or ̅ 𝑝𝑝) • Makes: “It is not the case that 𝑝𝑝” • Read as “not 𝑝𝑝” • Example • 𝑝𝑝: Michael’s PC runs Linux • ¬𝑝𝑝: It is not the case that Michael’s PC runs Linux • Simply: Michael’s PC does not run Linux 9 Tashreef Muhammad
  • 10. Propositional Logic • Conjunction • The conjunction of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ∧ 𝑞𝑞 • Read as “𝑝𝑝 and 𝑞𝑞” • Sometimes “but” instead of “and” → The sun is shining, but it is raining • Example • 𝑝𝑝: Monir’s PC has 512 GB SSD • 𝑞𝑞: Monir’s PC runs faster than 2 GHz • 𝑝𝑝 ∧ 𝑞𝑞: Monir’s PC has 512 GB SSD and Monir’s PC runs faster than 2 GHz • Simply: Monir’s PC has 512 GB SSD and runs faster than 2 GHz 10 Tashreef Muhammad
  • 11. Propositional Logic • Disjunction • The disjunction of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ∨ 𝑞𝑞 • Read as “𝑝𝑝 or 𝑞𝑞” • Two variations: “exclusive or”, “inclusive or” • Example • 𝑝𝑝: Monir’s PC has 512 GB SSD • 𝑞𝑞: Monir’s PC runs faster than 2 GHz • 𝑝𝑝 ∨ 𝑞𝑞: Monir’s PC has 512 GB SSD or Monir’s PC runs faster than 2 GHz • Simply: Monir’s PC has 512 GB SSD or runs faster than 2 GHz • Must contain at least one • Can contain both (inclusive or) or only one (exclusive or) 11 Tashreef Muhammad
  • 12. Propositional Logic • Condition Statements • The conditional statements of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 → 𝑞𝑞 • Read as “If 𝑝𝑝 then 𝑞𝑞” and many other ways • Example • 𝑝𝑝: You get 100% on the final • 𝑞𝑞: You get an A • 𝑝𝑝 → 𝑞𝑞: If you get 100% on the final, then you get an A • Another: If you have a smartphone, then 2 + 3 = 5 12 Tashreef Muhammad
  • 13. Propositional Logic • Converse • 𝑞𝑞 → 𝑝𝑝 is called converse of 𝑝𝑝 → 𝑞𝑞 • Contrapositive • ¬𝑞𝑞 → ¬𝑝𝑝 is called contrapositive of 𝑝𝑝 → 𝑞𝑞 • Always has the same truth value as condition • Inverse • ¬𝑝𝑝 → ¬𝑞𝑞 is called inverse of 𝑝𝑝 → 𝑞𝑞 13 Tashreef Muhammad
  • 14. Propositional Logic • Bidirectional • The bidirectional of 𝑝𝑝 and 𝑞𝑞 is denoted by 𝑝𝑝 ↔ 𝑞𝑞 • Read as “𝑝𝑝 if and only if 𝑞𝑞” • Bi-implications • Similar to 𝑝𝑝 → 𝑞𝑞 ∧ (𝑞𝑞 → 𝑝𝑝) • Example • 𝑝𝑝: You can take the flight • 𝑞𝑞: You buy a ticket • 𝑝𝑝 ↔ 𝑞𝑞: You can take the if and only if (iff) you buy a ticket 14 Tashreef Muhammad
  • 15. Propositional Logic Tashreef Muhammad 15 𝒑𝒑 𝒒𝒒 ¬𝒑𝒑 ¬𝒒𝒒 𝒑𝒑 ∧ 𝒒𝒒 𝒑𝒑 ∨ 𝒒𝒒 𝒑𝒑 ⊗ 𝒒𝒒 𝒑𝒑 → 𝒒𝒒 𝒑𝒑 ↔ 𝒒𝒒 T T F F T T F T T T F F T F T T F F F T T F F T T T F F F T T F F F T T
  • 16. Propositional Logic Tashreef Muhammad 16 𝒑𝒑 𝒒𝒒 ¬𝒒𝒒 𝒑𝒑 ∨ ¬𝒒𝒒 𝒑𝒑 ∧ 𝒒𝒒 (𝒑𝒑 ∨ ¬𝒒𝒒) → (𝒑𝒑 ∧ 𝒒𝒒) T T F T T T T F T T F F F T F F F T F F T T F F Truth Tables of Compound Propositions: (𝒑𝒑 ∨ ¬𝒒𝒒) → (𝒑𝒑 ∧ 𝒒𝒒)
  • 17. Propositional Logic • Precedence of Logical Operators • ¬ > ∧ > ∨ > → > ↔ • Use brackets for clarification • Logic and Bit Operations • Bit: Binary Digit • 1 can represent True/T • 0 can represent False/F • Bit strings, length, Bitwise operations 17 Tashreef Muhammad
  • 18. Applications of Propositional Logic Where propositional logics are used 18 Tashreef Muhammad
  • 19. Applications of Propositional Logic • Translating English sentences • System specifications • Boolean searches • Logic puzzles • Logic circuits • Read examples from books to understand scenario 19 Tashreef Muhammad
  • 21. Propositional Equivalences • Tautology • A compound proposition that is always true • Contradiction • A compound proposition that is always false • Contingency • A compound proposition neither true, nor false Tashreef Muhammad 21
  • 22. Propositional Equivalences • Logical Equivalences • Separate compound propositions • Same truth values in all cases • Let 𝑝𝑝 and 𝑞𝑞 be two separate compound propositions • 𝑝𝑝 and 𝑞𝑞 logically equivalent if 𝑝𝑝 ↔ 𝑞𝑞 is a tautology. • 𝑝𝑝 ≡ 𝑞𝑞 (or 𝑝𝑝 ⇔ 𝑞𝑞) denotes that 𝑝𝑝 and 𝑞𝑞 are logically equivalent • 𝑝𝑝 ≡ 𝑞𝑞 is not a compound proposition, but a statement that 𝑝𝑝 ↔ 𝑞𝑞 is a tautology Tashreef Muhammad 22
  • 23. Propositional Equivalences • Logical equivalences proved by truth tables • Find the true value for each proposition in all cases • If the truth values matches for all, they are equivalent • Example: ¬(𝑝𝑝 ∨ 𝑞𝑞)and ¬𝑝𝑝 ∧ ¬𝑞𝑞 are logically equivalent Tashreef Muhammad 23
  • 24. Propositional Equivalences • Identity laws • 𝑝𝑝 ∧ 𝑻𝑻 ≡ 𝑝𝑝 and 𝑝𝑝 ∨ 𝐹𝐹 ≡ 𝑝𝑝 • Domination laws • 𝑝𝑝 ∨ 𝑻𝑻 ≡ 𝑻𝑻 and 𝑝𝑝 ∧ 𝐹𝐹 ≡ 𝑭𝑭 • Idempotent laws • 𝑝𝑝 ∨ 𝑝𝑝 ≡ 𝑝𝑝 and 𝑝𝑝 ∧ 𝑝𝑝 ≡ 𝑝𝑝 • Double negation law • ¬(¬𝑝𝑝) ≡ 𝑝𝑝 Tashreef Muhammad 24
  • 25. Propositional Equivalences • Commutative laws • 𝑝𝑝 ∨ 𝑞𝑞 ≡ 𝑞𝑞 ∨ 𝑝𝑝 and 𝑝𝑝 ∧ 𝑞𝑞 ≡ 𝑞𝑞 ∧ 𝑝𝑝 • Associative laws • (𝑝𝑝 ∨ 𝑞𝑞) ∨ 𝑟𝑟 ≡ 𝑝𝑝 ∨ (𝑞𝑞 ∨ 𝑟𝑟) and (𝑝𝑝 ∧ 𝑞𝑞) ∧ 𝑟𝑟 ≡ 𝑝𝑝 ∧ (𝑞𝑞 ∧ 𝑟𝑟) • Distributive laws • 𝑝𝑝 ∨ 𝑞𝑞 ∧ 𝑟𝑟 ≡ 𝑝𝑝 ∨ 𝑞𝑞 ∧ 𝑝𝑝 ∨ 𝑟𝑟 • 𝑝𝑝 ∧ (𝑞𝑞 ∨ 𝑟𝑟) ≡ (𝑝𝑝 ∧ 𝑞𝑞) ∨ (𝑝𝑝 ∧ 𝑟𝑟) Tashreef Muhammad 25
  • 26. Propositional Equivalences • De Morgan’s laws • ¬(𝑝𝑝 ∧ 𝑞𝑞) ≡ ¬𝑝𝑝 ∨ ¬𝑞𝑞 and ¬(𝑝𝑝 ∨ 𝑞𝑞) ≡ ¬𝑝𝑝 ∧ ¬𝑞𝑞 • Absorption laws • 𝑝𝑝 ∨ (𝑝𝑝 ∧ 𝑞𝑞) ≡ 𝑝𝑝 and 𝑝𝑝 ∧ (𝑝𝑝 ∨ 𝑞𝑞) ≡ 𝑝𝑝 • Negation laws • 𝑝𝑝 ∨ ¬𝑝𝑝 ≡ 𝑻𝑻 and 𝑝𝑝 ∧ ¬𝑝𝑝 ≡ 𝑭𝑭 Tashreef Muhammad 26
  • 27. Propositional Equivalences • There exists many such equivalences • The more you know, the better • Helps evaluate larger propositions faster • Faster than truth table • A notation for long compound proposition • 𝑝𝑝1 ∧ 𝑝𝑝2 ∧ 𝑝𝑝3 ∧ ⋯ ∧ 𝑝𝑝𝑛𝑛 can be written as ∧𝑗𝑗=1 𝑛𝑛 𝑝𝑝𝑗𝑗 • 𝑝𝑝1 ∨ 𝑝𝑝2 ∨ 𝑝𝑝3 ∨ ⋯ ∨ 𝑝𝑝𝑛𝑛 can be written as ∨𝑗𝑗=1 𝑛𝑛 𝑝𝑝𝑗𝑗 Tashreef Muhammad 27
  • 28. Propositional Equivalences • De Morgan’s law is particularly important • Helps a lot in logical equivalences • Read book example for better understanding • Constructing new logical equivalences • Using existing logical equivalences • Kind of like simplification • Make new logical equivalence Tashreef Muhammad 28
  • 29. Propositional Equivalences Tashreef Muhammad 29 Show that ¬ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ 𝑞𝑞 ≡ ¬𝑝𝑝 ∧ ¬𝑞𝑞 Solution: ¬ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ 𝑞𝑞 ≡ ¬𝑝𝑝 ∧ ¬ ¬𝑝𝑝 ∧ 𝑞𝑞 [Second De Morgan’s Law] ≡ ¬𝑝𝑝 ∧ ¬ ¬𝑝𝑝 ∨ ¬𝑞𝑞 [First De Morgan’s Law] ≡ ¬𝑝𝑝 ∧ 𝑝𝑝 ∨ ¬𝑞𝑞 [Double Negation Law] ≡ ¬𝑝𝑝 ∧ 𝑝𝑝 ∨ ¬𝑝𝑝 ∧ ¬𝑞𝑞 [Second Distributive Law] ≡ 𝑭𝑭 ∨ ¬𝑝𝑝 ∧ ¬𝑞𝑞 [Because, 𝑝𝑝 ∧ ¬𝑝𝑝 ≡ 𝑭𝑭] ≡ ¬𝑝𝑝 ∧ 𝑞𝑞 [Identity law for 𝑭𝑭]
  • 30. Propositional Equivalences • Propositional Satisfiability • When no combinations exist to make a compound proposition true, it is unsatisfiable • In other words, the negation of the compound proposition is a tautology • The case where true value of a compound proposition is true is a solution • Build a truth table for a compound proposition to prove whether it is satisfiable or unsatisfiable Tashreef Muhammad 30
  • 31. Propositional Equivalences • Applications of Satisfiability • Sudoku • Read book for scenario • Solving satisfiable problems • For every 𝑥𝑥 variable compound proposition there is 2𝑥𝑥 possible combinations • Brute force approaches are time consuming • We need algorithms Tashreef Muhammad 31