SlideShare a Scribd company logo
1 of 28
CS 1050 
(Rosen Section 1.1, 1.2)
Proposition 
A proposition is a statement that is either true or false, 
but not both. 
Atlanta was the site of the 1996 Summer Olympic 
games. 
1+1 = 2 
3+1 = 5 
What will my CS1050 grade be?
Definition 1. Negation of p 
Let p be a proposition. 
The statement “It is not 
the case that p” is also a 
proposition, called the 
“negation of p” or ¬p 
(read “not p”) 
Table 1. 
The Truth Table for the 
Negation of a Proposition 
p ¬p 
T F 
F T 
p = The sky is blue. 
Øp = It is not the case that 
the sky is blue. 
Øp = The sky is not blue.
Definition 2. Conjunction of p 
and q 
Let p and q be 
propositions. The 
proposition “p and q,” 
denoted by pÙq is true 
when both p and q are 
true and is false 
otherwise. This is 
called the conjunction 
of p and q. 
Table 2. The Truth Table for 
the Conjunction of two 
propositions 
p q pÙq 
T T T 
T F F 
F T F 
F F F
Definition 3. Disjunction of p and 
q 
Let p and q be 
propositions. The 
proposition “p or q,” 
denoted by pÚq, is the 
proposition that is false 
when p and q are both 
false and true otherwise. 
Table 3. The Truth Table for 
the Disjunction of two 
propositions 
p q pÚq 
T T T 
T F T 
F T T 
F F F
Definition 4. Exclusive or of p and 
q 
Let p and q be 
propositions. The 
exclusive or of p and q, 
denoted by pÅq, is the 
proposition that is true 
when exactly one of p 
and q is true and is false 
otherwise. 
Table 4. The Truth Table for 
the Exclusive OR of two 
propositions 
p q pÅq 
T T F 
T F T 
F T T 
F F F
Definition 5. Implication p®q 
Let p and q be propositions. 
The implication p®q is the 
proposition that is false when 
p is true and q is false, and 
true otherwise. In this 
implication p is called the 
hypothesis (or antecedent or 
premise) and q is called the 
conclusion (or consequence). 
Table 5. The Truth Table for 
the Implication of p®q. 
p q p®q 
T T T 
T F F 
F T T 
F F T
Implications 
If p, then q 
p implies q 
if p,q 
p only if q 
p is sufficient for q 
q if p 
q whenever p 
q is necessary for p 
Not the same as the if-then 
construct used in 
programming languages 
such as If p then S
Implications 
How can both p and q be false, and p®q be true? 
•Think of p as a “contract” and q as its “obligation” that is 
only carried out if the contract is valid. 
•Example: “If you make more than $25,000, then you must 
file a tax return.” This says nothing about someone who 
makes less than $25,000. So the implication is true no 
matter what someone making less than $25,000 does. 
•Another example: 
p: Bill Gates is poor. 
q: Pigs can fly. 
p®q is always true because Bill Gates is not poor. Another 
way of saying the implication is 
“Pigs can fly whenever Bill Gates is poor” which is true 
since neither p nor q is true.
Related Implications 
Converse of p 
® q is 
q ® p 
Contrapositive of p 
® q is the 
proposition Øq ® 
Øp
Definition 6. Biconditional 
Let p and q be 
propositions. The 
biconditional p«q is the 
proposition that is true 
when p and q have the 
same truth values and is 
false otherwise. “p if and 
only if q, p is necessary 
and sufficient for q” 
Table 6. The Truth Table for 
the biconditional p«q. 
p q p«q 
T T T 
T F F 
F T F 
F F T
Practice 
p: You learn the simple things well. 
q: The difficult things become easy. 
You do not learn the 
simple things well. 
If you learn the simple 
things well then the 
difficult things become 
easy. 
If you do not learn the 
simple things well, then 
the difficult things will 
not become easy. 
The difficult things 
become easy but you did 
not learn the simple 
things well. 
You learn the simple 
things well but the 
difficult things did not 
become easy. 
Øp 
p® 
q 
Øp ® Øq 
q Ù Øp 
p Ù Øq
Truth Table Puzzle Steve would like to determine the relative 
salaries of three coworkers using two facts (all 
salaries are distinct): 
If Fred is not the highest paid of the three, 
then Janice is. 
If Janice is not the lowest paid, then Maggie is 
paid the most. 
Who is paid the most and who is paid the least?
p : Janice is paid the most. 
q: Maggie is paid the most. 
r: Fred is paid the most. 
s: Janice is paid the least. 
p q r s Ør®p Øs ®q (Ør®p)Ù 
(Øs®q) 
T F F F T F F 
F T F T F T F 
F F T T T T T 
F T F F F T F 
F F T F T F F 
Fred, Maggie, Janice 
•If Fred is not the highest paid 
of the three, then Janice is. 
•If Janice is not the lowest paid, 
then Maggie is paid the most.
p : Janice is paid the most. 
•If Fred is not the highest paid 
q: Maggie is paid the most. 
of the three, then Janice is. 
r: Fred is paid the most. 
•If Janice is the lowest paid, 
then Maggie is paid the most. 
s: Janice is paid the least. 
p q r s Ør®p s ®q (Ør®p)Ù 
(s®q) 
T F F F T T T 
F T F T F T F 
F F T T T F F 
F T F F F T F 
F F T F T T T 
Fred, Janice, Maggie or Janice, Maggie, Fred 
or Janice, Fred, Maggie
A computer bit has two possible values: 0 (false) and 1 
(true). A variable is called a Boolean variable is its value is 
either true or false. 
Bit operations correspond to the logical connectives: 
Ú OR 
Ù AND 
Å XOR 
Information can be represented by bit strings, which are 
sequences of zeros and ones, and manipulated by 
operations on the bit strings.
Ú 0 1 
0 0 1 
1 1 1 Ù 0 1 
0 0 0 
1 0 1 
Å 0 1 
0 0 1 
1 1 0
Logical Equivalence 
An important technique in proofs is to replace a 
statement with another statement that is “logically 
equivalent.” 
Tautology: compound proposition that is always true 
regardless of the truth values of the propositions in it. 
Contradiction: Compound proposition that is 
always false regardless of the truth values of the 
propositions in it.
Logically Equivalent 
Compound propositions P and Q are logically 
equivalent if P«Q is a tautology. In other words, P 
and Q have the same truth values for all combinations 
of truth values of simple propositions. 
This is denoted: PÛQ (or by P Q) 
   
º
Example: DeMorgans 
Prove that Ø(pÚq) Û (Øp Ù Øq) 
p q (pÚq) Ø(pÚq) Øp Øq (Øp Ù Øq) 
T T 
T F F F F 
T F 
T F F T F 
F T 
T F T F F 
F F 
F T T T T
Illustration of De Morgan’s Law 
q 
Ø(pÚq) 
p
Illustration of De Morgan’s Law 
p 
Øp
Illustration of De Morgan’s Law 
q 
Øq
Illustration of De Morgan’s Law 
q 
Øp Ù Øq 
p
Prove that: p Ú (q Ù r) Û (p Ú q) Ù (p Ú r) 
p q r qÙr pÚ(qÙr) pÚq pÚr (pÚq)Ù(pÚr) 
T T T T T T T T 
T T F F T T T T 
T F T F T T T T 
T F F F T T T T 
F T T T T T T T 
F T F F F T F F 
F F T F F F T F 
F F F F F F F F
Prove: p«qÛ(p®q) Ù (q®p) 
p q p«q p®q q®p (p®q)Ù(q®p) 
T T T T T T 
T F F F T F 
F T F T F F 
F F T T T T 
We call this biconditional equivalence.
pÙT Û p; pÚF Û p Identity Laws 
pÚT Û T; pÙF Û F Domination Laws 
pÚp Û p; pÙp Û p Idempotent Laws 
Ø(Øp) Û p Double Negation Law 
pÚq Û qÚp; pÙq Û qÙp Commutative Laws 
(pÚq)Ú r Û pÚ (qÚr); (pÙq) Ù r Û p Ù (qÙr) 
Associative Laws
pÚ(qÙr) Û (pÚq)Ù(pÚr) Distribution Laws 
pÙ(qÚr) Û (pÙq)Ú(pÙr) 
Ø(pÚq)Û(Øp Ù Øq) De Morgan’s Laws 
Ø(pÙq)Û(Øp Ú Øq) 
Miscellaneous 
p Ú Øp Û T Or Tautology 
p Ù Øp Û F And Contradiction 
(p®q) Û (Øp Ú q) Implication Equivalence 
p«qÛ(p®q) Ù (q®p) Biconditional Equivalence

More Related Content

What's hot

Logic
LogicLogic
LogicH K
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional LogicJanet Stemwedel
 
Propositional logic by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawanTouhidul Shawan
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematicsSyed Umair
 
Logical Operators in Brief with examples
Logical Operators in Brief with examplesLogical Operators in Brief with examples
Logical Operators in Brief with examplesMujtaBa Khan
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Abdullah Al Amin
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicManjula V
 
Logic Notes
Logic NotesLogic Notes
Logic Notesacavis
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Argument Forms
Argument FormsArgument Forms
Argument FormsAli Lodhra
 
1.3.1 Conditional Statements
1.3.1 Conditional Statements1.3.1 Conditional Statements
1.3.1 Conditional Statementssmiller5
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysisAnoojaI
 

What's hot (18)

Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Logic
LogicLogic
Logic
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional Logic
 
Propositional logic by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawan
 
Truth table
Truth tableTruth table
Truth table
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Logical Operators in Brief with examples
Logical Operators in Brief with examplesLogical Operators in Brief with examples
Logical Operators in Brief with examples
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Logic Notes
Logic NotesLogic Notes
Logic Notes
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Argument Forms
Argument FormsArgument Forms
Argument Forms
 
AppTheories_L3
AppTheories_L3AppTheories_L3
AppTheories_L3
 
1.3.1 Conditional Statements
1.3.1 Conditional Statements1.3.1 Conditional Statements
1.3.1 Conditional Statements
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysis
 

Similar to Bab 1 proposisi

MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdfjayarao21
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptxMath101BSCA1C
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdfZLEMORHAN3
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsZenLooper
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematicsSyed Umair
 

Similar to Bab 1 proposisi (20)

MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 
Logic2.pptx
Logic2.pptxLogic2.pptx
Logic2.pptx
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptx
 
L01.ppt
L01.pptL01.ppt
L01.ppt
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdf
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applications
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 

More from Dhan junkie

Pemrograman web modul 1 dan 2
Pemrograman web  modul 1 dan 2Pemrograman web  modul 1 dan 2
Pemrograman web modul 1 dan 2Dhan junkie
 
Perakitan dan perkembangan hs
Perakitan dan perkembangan hsPerakitan dan perkembangan hs
Perakitan dan perkembangan hsDhan junkie
 
Pengenalan hardware
Pengenalan  hardware Pengenalan  hardware
Pengenalan hardware Dhan junkie
 
Perakitan dan Perkembangan
Perakitan dan Perkembangan Perakitan dan Perkembangan
Perakitan dan Perkembangan Dhan junkie
 
Bios partisi format
Bios partisi formatBios partisi format
Bios partisi formatDhan junkie
 
fungsi algoritma
fungsi algoritmafungsi algoritma
fungsi algoritmaDhan junkie
 
Ix struktur pointer
Ix struktur pointerIx struktur pointer
Ix struktur pointerDhan junkie
 
Regular properties 2
Regular properties 2Regular properties 2
Regular properties 2Dhan junkie
 
Regular expressions 2
Regular expressions 2Regular expressions 2
Regular expressions 2Dhan junkie
 
REGULAR LANGUAGE
REGULAR LANGUAGEREGULAR LANGUAGE
REGULAR LANGUAGEDhan junkie
 
REGULAR LANGUAGES
REGULAR LANGUAGESREGULAR LANGUAGES
REGULAR LANGUAGESDhan junkie
 
Pertemuan 6 sifat sifat bahasa Reguler
Pertemuan 6 sifat sifat bahasa RegulerPertemuan 6 sifat sifat bahasa Reguler
Pertemuan 6 sifat sifat bahasa RegulerDhan junkie
 
Laporan tahunan-adira-finance-2011
Laporan tahunan-adira-finance-2011Laporan tahunan-adira-finance-2011
Laporan tahunan-adira-finance-2011Dhan junkie
 
Brosur mnc purwokerto
Brosur mnc purwokertoBrosur mnc purwokerto
Brosur mnc purwokertoDhan junkie
 

More from Dhan junkie (20)

Pemrogramanweb
PemrogramanwebPemrogramanweb
Pemrogramanweb
 
Pemrogramanweb
PemrogramanwebPemrogramanweb
Pemrogramanweb
 
Pemrograman web modul 1 dan 2
Pemrograman web  modul 1 dan 2Pemrograman web  modul 1 dan 2
Pemrograman web modul 1 dan 2
 
Perakitan pc
Perakitan pcPerakitan pc
Perakitan pc
 
Perakitan dan perkembangan hs
Perakitan dan perkembangan hsPerakitan dan perkembangan hs
Perakitan dan perkembangan hs
 
Pengenalan hardware
Pengenalan  hardware Pengenalan  hardware
Pengenalan hardware
 
Perakitan dan Perkembangan
Perakitan dan Perkembangan Perakitan dan Perkembangan
Perakitan dan Perkembangan
 
Bios partisi format
Bios partisi formatBios partisi format
Bios partisi format
 
fungsi algoritma
fungsi algoritmafungsi algoritma
fungsi algoritma
 
Ix struktur pointer
Ix struktur pointerIx struktur pointer
Ix struktur pointer
 
Regular properties 2
Regular properties 2Regular properties 2
Regular properties 2
 
Regular expressions 2
Regular expressions 2Regular expressions 2
Regular expressions 2
 
REGULAR LANGUAGE
REGULAR LANGUAGEREGULAR LANGUAGE
REGULAR LANGUAGE
 
REGULAR LANGUAGES
REGULAR LANGUAGESREGULAR LANGUAGES
REGULAR LANGUAGES
 
Pertemuan 6 sifat sifat bahasa Reguler
Pertemuan 6 sifat sifat bahasa RegulerPertemuan 6 sifat sifat bahasa Reguler
Pertemuan 6 sifat sifat bahasa Reguler
 
Laporan tahunan-adira-finance-2011
Laporan tahunan-adira-finance-2011Laporan tahunan-adira-finance-2011
Laporan tahunan-adira-finance-2011
 
Komputasi tugas
Komputasi tugasKomputasi tugas
Komputasi tugas
 
Ipi15211
Ipi15211Ipi15211
Ipi15211
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Brosur mnc purwokerto
Brosur mnc purwokertoBrosur mnc purwokerto
Brosur mnc purwokerto
 

Recently uploaded

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

Bab 1 proposisi

  • 1. CS 1050 (Rosen Section 1.1, 1.2)
  • 2. Proposition A proposition is a statement that is either true or false, but not both. Atlanta was the site of the 1996 Summer Olympic games. 1+1 = 2 3+1 = 5 What will my CS1050 grade be?
  • 3. Definition 1. Negation of p Let p be a proposition. The statement “It is not the case that p” is also a proposition, called the “negation of p” or ¬p (read “not p”) Table 1. The Truth Table for the Negation of a Proposition p ¬p T F F T p = The sky is blue. Øp = It is not the case that the sky is blue. Øp = The sky is not blue.
  • 4. Definition 2. Conjunction of p and q Let p and q be propositions. The proposition “p and q,” denoted by pÙq is true when both p and q are true and is false otherwise. This is called the conjunction of p and q. Table 2. The Truth Table for the Conjunction of two propositions p q pÙq T T T T F F F T F F F F
  • 5. Definition 3. Disjunction of p and q Let p and q be propositions. The proposition “p or q,” denoted by pÚq, is the proposition that is false when p and q are both false and true otherwise. Table 3. The Truth Table for the Disjunction of two propositions p q pÚq T T T T F T F T T F F F
  • 6. Definition 4. Exclusive or of p and q Let p and q be propositions. The exclusive or of p and q, denoted by pÅq, is the proposition that is true when exactly one of p and q is true and is false otherwise. Table 4. The Truth Table for the Exclusive OR of two propositions p q pÅq T T F T F T F T T F F F
  • 7. Definition 5. Implication p®q Let p and q be propositions. The implication p®q is the proposition that is false when p is true and q is false, and true otherwise. In this implication p is called the hypothesis (or antecedent or premise) and q is called the conclusion (or consequence). Table 5. The Truth Table for the Implication of p®q. p q p®q T T T T F F F T T F F T
  • 8. Implications If p, then q p implies q if p,q p only if q p is sufficient for q q if p q whenever p q is necessary for p Not the same as the if-then construct used in programming languages such as If p then S
  • 9. Implications How can both p and q be false, and p®q be true? •Think of p as a “contract” and q as its “obligation” that is only carried out if the contract is valid. •Example: “If you make more than $25,000, then you must file a tax return.” This says nothing about someone who makes less than $25,000. So the implication is true no matter what someone making less than $25,000 does. •Another example: p: Bill Gates is poor. q: Pigs can fly. p®q is always true because Bill Gates is not poor. Another way of saying the implication is “Pigs can fly whenever Bill Gates is poor” which is true since neither p nor q is true.
  • 10. Related Implications Converse of p ® q is q ® p Contrapositive of p ® q is the proposition Øq ® Øp
  • 11. Definition 6. Biconditional Let p and q be propositions. The biconditional p«q is the proposition that is true when p and q have the same truth values and is false otherwise. “p if and only if q, p is necessary and sufficient for q” Table 6. The Truth Table for the biconditional p«q. p q p«q T T T T F F F T F F F T
  • 12. Practice p: You learn the simple things well. q: The difficult things become easy. You do not learn the simple things well. If you learn the simple things well then the difficult things become easy. If you do not learn the simple things well, then the difficult things will not become easy. The difficult things become easy but you did not learn the simple things well. You learn the simple things well but the difficult things did not become easy. Øp p® q Øp ® Øq q Ù Øp p Ù Øq
  • 13. Truth Table Puzzle Steve would like to determine the relative salaries of three coworkers using two facts (all salaries are distinct): If Fred is not the highest paid of the three, then Janice is. If Janice is not the lowest paid, then Maggie is paid the most. Who is paid the most and who is paid the least?
  • 14. p : Janice is paid the most. q: Maggie is paid the most. r: Fred is paid the most. s: Janice is paid the least. p q r s Ør®p Øs ®q (Ør®p)Ù (Øs®q) T F F F T F F F T F T F T F F F T T T T T F T F F F T F F F T F T F F Fred, Maggie, Janice •If Fred is not the highest paid of the three, then Janice is. •If Janice is not the lowest paid, then Maggie is paid the most.
  • 15. p : Janice is paid the most. •If Fred is not the highest paid q: Maggie is paid the most. of the three, then Janice is. r: Fred is paid the most. •If Janice is the lowest paid, then Maggie is paid the most. s: Janice is paid the least. p q r s Ør®p s ®q (Ør®p)Ù (s®q) T F F F T T T F T F T F T F F F T T T F F F T F F F T F F F T F T T T Fred, Janice, Maggie or Janice, Maggie, Fred or Janice, Fred, Maggie
  • 16. A computer bit has two possible values: 0 (false) and 1 (true). A variable is called a Boolean variable is its value is either true or false. Bit operations correspond to the logical connectives: Ú OR Ù AND Å XOR Information can be represented by bit strings, which are sequences of zeros and ones, and manipulated by operations on the bit strings.
  • 17. Ú 0 1 0 0 1 1 1 1 Ù 0 1 0 0 0 1 0 1 Å 0 1 0 0 1 1 1 0
  • 18. Logical Equivalence An important technique in proofs is to replace a statement with another statement that is “logically equivalent.” Tautology: compound proposition that is always true regardless of the truth values of the propositions in it. Contradiction: Compound proposition that is always false regardless of the truth values of the propositions in it.
  • 19. Logically Equivalent Compound propositions P and Q are logically equivalent if P«Q is a tautology. In other words, P and Q have the same truth values for all combinations of truth values of simple propositions. This is denoted: PÛQ (or by P Q)   º
  • 20. Example: DeMorgans Prove that Ø(pÚq) Û (Øp Ù Øq) p q (pÚq) Ø(pÚq) Øp Øq (Øp Ù Øq) T T T F F F F T F T F F T F F T T F T F F F F F T T T T
  • 21. Illustration of De Morgan’s Law q Ø(pÚq) p
  • 22. Illustration of De Morgan’s Law p Øp
  • 23. Illustration of De Morgan’s Law q Øq
  • 24. Illustration of De Morgan’s Law q Øp Ù Øq p
  • 25. Prove that: p Ú (q Ù r) Û (p Ú q) Ù (p Ú r) p q r qÙr pÚ(qÙr) pÚq pÚr (pÚq)Ù(pÚr) T T T T T T T T T T F F T T T T T F T F T T T T T F F F T T T T F T T T T T T T F T F F F T F F F F T F F F T F F F F F F F F F
  • 26. Prove: p«qÛ(p®q) Ù (q®p) p q p«q p®q q®p (p®q)Ù(q®p) T T T T T T T F F F T F F T F T F F F F T T T T We call this biconditional equivalence.
  • 27. pÙT Û p; pÚF Û p Identity Laws pÚT Û T; pÙF Û F Domination Laws pÚp Û p; pÙp Û p Idempotent Laws Ø(Øp) Û p Double Negation Law pÚq Û qÚp; pÙq Û qÙp Commutative Laws (pÚq)Ú r Û pÚ (qÚr); (pÙq) Ù r Û p Ù (qÙr) Associative Laws
  • 28. pÚ(qÙr) Û (pÚq)Ù(pÚr) Distribution Laws pÙ(qÚr) Û (pÙq)Ú(pÙr) Ø(pÚq)Û(Øp Ù Øq) De Morgan’s Laws Ø(pÙq)Û(Øp Ú Øq) Miscellaneous p Ú Øp Û T Or Tautology p Ù Øp Û F And Contradiction (p®q) Û (Øp Ú q) Implication Equivalence p«qÛ(p®q) Ù (q®p) Biconditional Equivalence