SlideShare una empresa de Scribd logo
1 de 19
LECTURE 1
Disrete
mathematics
and its
application by
rosen
7th edition
THE FOUNDATIONS:
LOGIC AND PROOFS
1.1 PROPOSITIONAL
LOGIC
 A proposition is a declarative sentence (that is, a sentence
that declares a fact) that is either true or false, but not both
 1 + 1 = 2 (true)
 4 + 9 = 13 (true)
 Islamabad is capital of Pakistan (true)
 Karachi is the largest city of Pakistan (true)
 100+9 = 111 (false)
 Some sentences are not prepositions
 Where is my class? (un decelerated sentence)
 What is the time by your watch? (un decelerated sentence)
 x + y = ? ( will be prepositions when value is assigned)
 Z +w * r = p
PROPOSITIONS
 We use letters to denote propositional variables (or statement
variables).
 The truth value of a proposition is true, denoted by T, if it is a
true proposition.
 The truth value of a proposition is false, denoted by F, if it is a
false proposition.
 Many mathematical statements are constructed by combining
one or more propositions. They are called compound
propositions, are formed from existing propositions using
logical operators.
PROPOSITIONS
 Definition: Let p be a proposition. The negation of p, denoted
by¬p (also denoted by p), is the statement “It is not the case
that p.”
 The proposition ¬p is read “not p.” The truth value of the
negation of p, ¬p, is the opposite of the truth value of p.
 Also denoted as “ ′ ”
 Examples:
 p := Sir PC is running Windows OS
 ¬p := sir PC is not running Windows OS
 p := a + b = c
 p := a + b ≠ c
NEGATION
The Truth Table for the Negation of a Proposition
p ¬p
T
F
F
T
 Definition: Let p and q be propositions. The conjunction of p
and q, denoted by p ∧ q, is the proposition “p and q.” The
conjunction p ∧ q is true when both p and q are true and is
false otherwise.
 Also known as UNION, AND, BIT WISE AND, AGREGATION
 Denoted as ^ , &, AND
CONJUNCTION
The Truth Table for the conjunction of a Proposition
p q p ^ q
T T
T F
F T
F F
T
F
F
F
 Definition: Let p and q be propositions. The disjunction of p
and q, denoted by p ∨ q, is the proposition “p or q.” The
disjunction p ∨ q is false when both p and q are false and is
true otherwise.
 Also known as OR, BIT WISE OR, SEGREGATION
 Denoted as v , || , OR
DISJUNCTION
The Truth Table for the conjunction of a Proposition
p q p v q
T T
T F
F T
F F
T
T
T
F
 Definition: 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.
 Also known as ZORING
 Denoted as XOR , Ex OR, ⊕
EXCLUSIVE OR
The Truth Table for the conjunction of a Proposition
p q p ⊕ q
T T
T F
F T
F F
F
T
T
F
 Let p and q be propositions. The conditional statement p → q
is the proposition “if p, then q.” The conditional statement p
→ q is false when p is true and q is false, and true otherwise.
 In the conditional statement p → q, p is called the hypothesis
(or antecedent or premise) and q is called the conclusion (or
consequence).
 Denoted by 
CONDITIONAL STATEMENT
The Truth Table for the conjunction of a Proposition
p q p → q
T T
T F
F T
F F
T
F
T
T
 The proposition q → p is called the converse of p → q.
 The converse, q → p, has no same truth value as p → q for all
cases.
 Formed from conditional statement.
CONVERSE
 The contrapositive of p → q is the proposition ¬q →¬p.
 only the contrapositive always has the same truth value as p
→ q.
 The contrapositive is false only when ¬p is false and ¬q is
true.
 Formed from conditional statement.
CONTRAPOSITIVE
The Truth Table for the CONTRAPOSITIVE of a Proposition
p q ¬p ¬q ¬p → ¬q
T T F F
T F F T
F T T F
F F T T
T
T
F
T
 Formed from conditional statement.
 The proposition ¬p →¬q is called the inverse of p → q.
 The converse, q → p, has no same truth value as p → q for all
cases.
INVERSE
 Let p and q be propositions. The biconditional statement p ↔
q is the proposition “p if and only if q.” The biconditional
statement p ↔ q is true when p and q have the same truth
values, and is false otherwise.
 Biconditional statements are also called bi-implications.
BICONDITIONAL
The Truth Table for the CONTRAPOSITIVE of a Proposition
q p q ↔ p
T T
T F
F T
F F
T
F
F
T
 Definition: When more that one above defined preposition
logic combines it is called as compound preposition.
 Example:
 (p^q)v(p’)
 (p ⊕ q) ^ (r v s)
COMPOUND PROPOSITIONS
 (p ∨¬q) → (p ∧ q)
COMPOUND PROPOSITIONS (TRUTH
TABLE)
The Truth Table of (p ∨¬q) → (p ∧ q)
p q ¬q p ∨¬q p ∧ q (p ∨¬q) → (p ∧ q)
T
T
F
F
T
F
T
F
F
T
F
T
T
T
F
T
T
F
F
F
T
F
T
F
Precedence of Logical Operators.
Operator Precedence
¬ 1
^ 2
v 3
→ 4
↔ 5
XOR 6
PRECEDENCE OF LOGICAL OPERATORS
 Computers represent information using bits
 A bit is a symbol with two possible values, namely, 0 (zero)
and 1 (one).
 A bit can be used to represent a truth value, because there
are two truth values, namely, true and false.
 1 bit to represent true and a 0 bit to represent false. That is,
1 represents T (true), 0 represents F (false).
 A variable is called a Boolean variable if its value is either
true or false. Consequently, a Boolean variable can be
represented using a bit.
LOGIC AND BIT OPERATIONS
Truth Value Bit
T 1
F 0
 Computer bit operations correspond to the logical
connectives.
 By replacing true by a one and false by a zero in the truth
tables for the operators ∧ (AND) , ∨ (OR) , and ⊕ (XOR) , the
tables shown for the corresponding bit operations are
obtained.
LOGIC AND BIT OPERATIONS
Table for the Bit Operators OR, AND, and XOR.
p q p ^ q p v q p XOR q
0
0
1
1
0
1
0
1
0
0
0
1
0
1
1
1
0
1
1
0
 01 1011 0110
11 0001 1101
11 1011 1111 bitwise OR
01 0001 0100 bitwise AND
10 1010 1011 bitwise XOR
 11 1010 1110
11 0001 1101
11 1011 1111 bitwise OR
11 0000 1100 bitwise AND
00 1010 0011 bitwise XOR
BITWISE OR, BITWISE AND, AND BITWISE
XOR

Más contenido relacionado

La actualidad más candente

Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2Ali Usman
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesFellowBuddy.com
 
Propositional logic
Propositional logicPropositional logic
Propositional logicMamta Pandey
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentationMujtaBa Khan
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceLakshmi R
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics LectureGenie Rose Santos
 
AI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdfAI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdflokesh406075
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory Rajendran
 
Mathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarMathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarAnimesh Sarkar
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiersallyn joy calcaben
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceharman kaur
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicUniversity of Potsdam
 
A Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing NetworkA Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing NetworkShethwala Ridhvesh
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course OutlineMustafa Jarrar
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notesGIRIM8
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theoremmmanning02474
 

La actualidad más candente (20)

Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2
 
Discrete Mathematics Lecture Notes
Discrete Mathematics Lecture NotesDiscrete Mathematics Lecture Notes
Discrete Mathematics Lecture Notes
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
lattice
 lattice lattice
lattice
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
 
AI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdfAI PPT-ALR_Unit-3-1.pdf
AI PPT-ALR_Unit-3-1.pdf
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Mathematical induction by Animesh Sarkar
Mathematical induction by Animesh SarkarMathematical induction by Animesh Sarkar
Mathematical induction by Animesh Sarkar
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional Logic
 
A Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing NetworkA Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing Network
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course Outline
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theorem
 

Similar a Disrete mathematics and_its application_by_rosen _7th edition_lecture_1

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
 
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
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly LanguageRaquel Mulles
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statementsguestd166eb5
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptxssuser92109d
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 

Similar a Disrete mathematics and_its application_by_rosen _7th edition_lecture_1 (20)

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 د. خالد بكرو
 
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]
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
 
Logic
LogicLogic
Logic
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
Slide subtopic 2
Slide subtopic 2Slide subtopic 2
Slide subtopic 2
 
LOGIC
LOGICLOGIC
LOGIC
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 

Último

BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptx
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptxKAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptx
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptxjohnandrewcarlos
 
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...narsireddynannuri1
 
Julius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the TableJulius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the Tableget joys
 
Pakistan PMLN Election Manifesto 2024.pdf
Pakistan PMLN Election Manifesto 2024.pdfPakistan PMLN Election Manifesto 2024.pdf
Pakistan PMLN Election Manifesto 2024.pdfFahimUddin61
 
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopkoEmbed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopkobhavenpr
 
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...Axel Bruns
 
Embed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdhEmbed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdhbhavenpr
 
Minto-Morley Reforms 1909 (constitution).pptx
Minto-Morley Reforms 1909 (constitution).pptxMinto-Morley Reforms 1909 (constitution).pptx
Minto-Morley Reforms 1909 (constitution).pptxAwaiskhalid96
 
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Development
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's DevelopmentNara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Development
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Developmentnarsireddynannuri1
 
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docxkfjstone13
 
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...Diya Sharma
 
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost LoverPsychicRuben LoveSpells
 
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)Delhi Call girls
 
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docxkfjstone13
 
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreie
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreieGujarat-SEBCs.pdf pfpkoopapriorjfperjreie
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreiebhavenpr
 
1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.ppt1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.pptsammehtumblr
 
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptx
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptxLorenzo D'Emidio_Lavoro sullaNorth Korea .pptx
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptxlorenzodemidio01
 
28042024_First India Newspaper Jaipur.pdf
28042024_First India Newspaper Jaipur.pdf28042024_First India Newspaper Jaipur.pdf
28042024_First India Newspaper Jaipur.pdfFIRST INDIA
 
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort ServiceDelhi Call girls
 

Último (20)

BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
 
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptx
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptxKAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptx
KAHULUGAN AT KAHALAGAHAN NG GAWAING PANSIBIKO.pptx
 
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
 
Julius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the TableJulius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the Table
 
Pakistan PMLN Election Manifesto 2024.pdf
Pakistan PMLN Election Manifesto 2024.pdfPakistan PMLN Election Manifesto 2024.pdf
Pakistan PMLN Election Manifesto 2024.pdf
 
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopkoEmbed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
 
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
 
Embed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdhEmbed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdh
 
Minto-Morley Reforms 1909 (constitution).pptx
Minto-Morley Reforms 1909 (constitution).pptxMinto-Morley Reforms 1909 (constitution).pptx
Minto-Morley Reforms 1909 (constitution).pptx
 
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Development
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's DevelopmentNara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Development
Nara Chandrababu Naidu's Visionary Policies For Andhra Pradesh's Development
 
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx
2024 03 13 AZ GOP LD4 Gen Meeting Minutes_FINAL.docx
 
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
 
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
 
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
 
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx
2024 04 03 AZ GOP LD4 Gen Meeting Minutes FINAL.docx
 
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreie
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreieGujarat-SEBCs.pdf pfpkoopapriorjfperjreie
Gujarat-SEBCs.pdf pfpkoopapriorjfperjreie
 
1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.ppt1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.ppt
 
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptx
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptxLorenzo D'Emidio_Lavoro sullaNorth Korea .pptx
Lorenzo D'Emidio_Lavoro sullaNorth Korea .pptx
 
28042024_First India Newspaper Jaipur.pdf
28042024_First India Newspaper Jaipur.pdf28042024_First India Newspaper Jaipur.pdf
28042024_First India Newspaper Jaipur.pdf
 
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Rajokri Delhi >༒8448380779 Escort Service
 

Disrete mathematics and_its application_by_rosen _7th edition_lecture_1

  • 2. Disrete mathematics and its application by rosen 7th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC
  • 3.  A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both  1 + 1 = 2 (true)  4 + 9 = 13 (true)  Islamabad is capital of Pakistan (true)  Karachi is the largest city of Pakistan (true)  100+9 = 111 (false)  Some sentences are not prepositions  Where is my class? (un decelerated sentence)  What is the time by your watch? (un decelerated sentence)  x + y = ? ( will be prepositions when value is assigned)  Z +w * r = p PROPOSITIONS
  • 4.  We use letters to denote propositional variables (or statement variables).  The truth value of a proposition is true, denoted by T, if it is a true proposition.  The truth value of a proposition is false, denoted by F, if it is a false proposition.  Many mathematical statements are constructed by combining one or more propositions. They are called compound propositions, are formed from existing propositions using logical operators. PROPOSITIONS
  • 5.  Definition: Let p be a proposition. The negation of p, denoted by¬p (also denoted by p), is the statement “It is not the case that p.”  The proposition ¬p is read “not p.” The truth value of the negation of p, ¬p, is the opposite of the truth value of p.  Also denoted as “ ′ ”  Examples:  p := Sir PC is running Windows OS  ¬p := sir PC is not running Windows OS  p := a + b = c  p := a + b ≠ c NEGATION The Truth Table for the Negation of a Proposition p ¬p T F F T
  • 6.  Definition: Let p and q be propositions. The conjunction of p and q, denoted by p ∧ q, is the proposition “p and q.” The conjunction p ∧ q is true when both p and q are true and is false otherwise.  Also known as UNION, AND, BIT WISE AND, AGREGATION  Denoted as ^ , &, AND CONJUNCTION The Truth Table for the conjunction of a Proposition p q p ^ q T T T F F T F F T F F F
  • 7.  Definition: Let p and q be propositions. The disjunction of p and q, denoted by p ∨ q, is the proposition “p or q.” The disjunction p ∨ q is false when both p and q are false and is true otherwise.  Also known as OR, BIT WISE OR, SEGREGATION  Denoted as v , || , OR DISJUNCTION The Truth Table for the conjunction of a Proposition p q p v q T T T F F T F F T T T F
  • 8.  Definition: 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.  Also known as ZORING  Denoted as XOR , Ex OR, ⊕ EXCLUSIVE OR The Truth Table for the conjunction of a Proposition p q p ⊕ q T T T F F T F F F T T F
  • 9.  Let p and q be propositions. The conditional statement p → q is the proposition “if p, then q.” The conditional statement p → q is false when p is true and q is false, and true otherwise.  In the conditional statement p → q, p is called the hypothesis (or antecedent or premise) and q is called the conclusion (or consequence).  Denoted by  CONDITIONAL STATEMENT The Truth Table for the conjunction of a Proposition p q p → q T T T F F T F F T F T T
  • 10.  The proposition q → p is called the converse of p → q.  The converse, q → p, has no same truth value as p → q for all cases.  Formed from conditional statement. CONVERSE
  • 11.  The contrapositive of p → q is the proposition ¬q →¬p.  only the contrapositive always has the same truth value as p → q.  The contrapositive is false only when ¬p is false and ¬q is true.  Formed from conditional statement. CONTRAPOSITIVE The Truth Table for the CONTRAPOSITIVE of a Proposition p q ¬p ¬q ¬p → ¬q T T F F T F F T F T T F F F T T T T F T
  • 12.  Formed from conditional statement.  The proposition ¬p →¬q is called the inverse of p → q.  The converse, q → p, has no same truth value as p → q for all cases. INVERSE
  • 13.  Let p and q be propositions. The biconditional statement p ↔ q is the proposition “p if and only if q.” The biconditional statement p ↔ q is true when p and q have the same truth values, and is false otherwise.  Biconditional statements are also called bi-implications. BICONDITIONAL The Truth Table for the CONTRAPOSITIVE of a Proposition q p q ↔ p T T T F F T F F T F F T
  • 14.  Definition: When more that one above defined preposition logic combines it is called as compound preposition.  Example:  (p^q)v(p’)  (p ⊕ q) ^ (r v s) COMPOUND PROPOSITIONS
  • 15.  (p ∨¬q) → (p ∧ q) COMPOUND PROPOSITIONS (TRUTH TABLE) The Truth Table of (p ∨¬q) → (p ∧ q) p q ¬q p ∨¬q p ∧ q (p ∨¬q) → (p ∧ q) T T F F T F T F F T F T T T F T T F F F T F T F
  • 16. Precedence of Logical Operators. Operator Precedence ¬ 1 ^ 2 v 3 → 4 ↔ 5 XOR 6 PRECEDENCE OF LOGICAL OPERATORS
  • 17.  Computers represent information using bits  A bit is a symbol with two possible values, namely, 0 (zero) and 1 (one).  A bit can be used to represent a truth value, because there are two truth values, namely, true and false.  1 bit to represent true and a 0 bit to represent false. That is, 1 represents T (true), 0 represents F (false).  A variable is called a Boolean variable if its value is either true or false. Consequently, a Boolean variable can be represented using a bit. LOGIC AND BIT OPERATIONS Truth Value Bit T 1 F 0
  • 18.  Computer bit operations correspond to the logical connectives.  By replacing true by a one and false by a zero in the truth tables for the operators ∧ (AND) , ∨ (OR) , and ⊕ (XOR) , the tables shown for the corresponding bit operations are obtained. LOGIC AND BIT OPERATIONS Table for the Bit Operators OR, AND, and XOR. p q p ^ q p v q p XOR q 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 1 0 1 1 0
  • 19.  01 1011 0110 11 0001 1101 11 1011 1111 bitwise OR 01 0001 0100 bitwise AND 10 1010 1011 bitwise XOR  11 1010 1110 11 0001 1101 11 1011 1111 bitwise OR 11 0000 1100 bitwise AND 00 1010 0011 bitwise XOR BITWISE OR, BITWISE AND, AND BITWISE XOR