SlideShare ist ein Scribd-Unternehmen logo
1 von 17
TRUTH OR CONSEQUENCES
Class 6 –TruthTables and Boolean Logic
Introduction
 Logic, Problem Solving, and Creativity
 From Gottlob Frege to Google Search
 George Boole – early 19th century
 Gottlob Frege, Charles Pierce – mid 19th century
 Emil Post, LudwigWittgenstein, and JohnVenn –
late 19th and early 20th centuries
 ENIAC – mid 20th century
 BackRubGoogolGoogle (1997)
 Y2K:World Domination? Google Earth!
Agenda
 Review and Debrief
 LateralThinking
 Assignments, etc.
 Boolean Math &TruthTables
 Propositional Logic
 Boolean Operations
 QuestTopic:
 Ruby Math and formatting features
 Project 1: Calculator/Converter
Review & Debrief
 Assignment Returned
 Noted
 Challenges, inspirations?
 Website Resources
 LateralThinking
Truth Tables
 What is the truth?
 Propositional Logic
 True/false
 Yes/No
 1/0
 On/Off
Conditions & Operations
 What is a condition?
 Logical Operations
 NOT (~)
 AND (^)
 OR (v)
 XOR (⊕)
Conditions & Operations - NOT
 Condition A = <25 years-old
A ~A
F T
T F
Conditions & Operations - NOT
 Condition B = green eyes
B ~B
F T
T F
Conditions & Operations - AND
 Condition A=<25 years-old
 Condition B = green eyes
A B A ^ B
F F F
F T F
T F F
T T T
Conditions & Operations - OR
 Condition A=<25 years-old
 Condition B = green eyes
A B A v B
F F F
F T T
T F T
T T T
Conditions & Operations - XOR
 Condition A=<25 years-old
 Condition B = green eyes
A B A ⊕ B
F F F
F T T
T F T
T T F
Combining Operations
 Condition A=<25 years-old
 Condition B = green eyes
A B A ^ B ~( A ^ B )
F F F T
F T F T
T F F T
T T T F
Logical Equivalence
 Condition A=<25 years-old
 Condition B = green eyes
A B ~A ~B A ^ B ~( ~A v ~B )
F F T T F F
F T T F F F
T F F T F F
T T F F T T
Exercises
 Parenthetic Expressions
 NSCC Grading Policy
 Prior Learning Assessment at NSCC
Boolean Operations & Computing
 Boolean Operations in Internet Searches
 Filter and fine-tune searches
 Fewer and better results
 Boolean Operations in Databases
 Filter and fine-tune searches
 Fewer and better results
 Analysis and reporting
 Writing Code
 Conditional logic
Summary
 Propositional Math
 Boolean Logic &TruthTables
 Operations
 Negation
 Conjunction
 Disjunction
 Exclusive Disjunction
 Applying to real-world/ computing problems
 Assignment 5 – Math Review
Assignment
 Assignment 5: Math Review
 Grade 5%
 Due: 2 weeks

Weitere ähnliche Inhalte

Mehr von Stephen Parsons

Mehr von Stephen Parsons (19)

Atlantic Woodworkers Website Strategy
Atlantic Woodworkers Website StrategyAtlantic Woodworkers Website Strategy
Atlantic Woodworkers Website Strategy
 
Chairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGMChairs Report to LSCRS 2012 AGM
Chairs Report to LSCRS 2012 AGM
 
Class 10 Arrays
Class 10 ArraysClass 10 Arrays
Class 10 Arrays
 
Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11Program Renewal for NSCC Schools 2010-11
Program Renewal for NSCC Schools 2010-11
 
Class 7 lecture notes
Class 7 lecture notesClass 7 lecture notes
Class 7 lecture notes
 
Class 6a ruby math
Class 6a   ruby mathClass 6a   ruby math
Class 6a ruby math
 
Class 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn DiagramsClass 5 - Set Theory and Venn Diagrams
Class 5 - Set Theory and Venn Diagrams
 
Class 4 IPO and Intro to Ruby
Class 4 IPO and Intro to RubyClass 4 IPO and Intro to Ruby
Class 4 IPO and Intro to Ruby
 
Class 3 Binary & Hexadecimal
Class 3 Binary & HexadecimalClass 3 Binary & Hexadecimal
Class 3 Binary & Hexadecimal
 
Class 2 Math I
Class 2 Math IClass 2 Math I
Class 2 Math I
 
Class 1 introduction to logic & problem solving
Class 1   introduction to logic & problem solvingClass 1   introduction to logic & problem solving
Class 1 introduction to logic & problem solving
 
Portfolio Of A Community
Portfolio Of A CommunityPortfolio Of A Community
Portfolio Of A Community
 
Cause & effect analysis part 2
Cause & effect analysis part 2Cause & effect analysis part 2
Cause & effect analysis part 2
 
Cause & effect analysis part 1
Cause & effect analysis part 1Cause & effect analysis part 1
Cause & effect analysis part 1
 
Class 11 lecture notes
Class 11 lecture notesClass 11 lecture notes
Class 11 lecture notes
 
Class 10 Lecture Notes
Class 10  Lecture  NotesClass 10  Lecture  Notes
Class 10 Lecture Notes
 
Class 9 Lecture Notes
Class 9 Lecture NotesClass 9 Lecture Notes
Class 9 Lecture Notes
 
Class 8 Lecture Notes
Class 8 Lecture NotesClass 8 Lecture Notes
Class 8 Lecture Notes
 
Deck Project Phase II
Deck Project Phase IIDeck Project Phase II
Deck Project Phase II
 

Kürzlich hochgeladen

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 

Kürzlich hochgeladen (20)

Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 

Class 6 truth tables and boolean math

  • 1. TRUTH OR CONSEQUENCES Class 6 –TruthTables and Boolean Logic
  • 2. Introduction  Logic, Problem Solving, and Creativity  From Gottlob Frege to Google Search  George Boole – early 19th century  Gottlob Frege, Charles Pierce – mid 19th century  Emil Post, LudwigWittgenstein, and JohnVenn – late 19th and early 20th centuries  ENIAC – mid 20th century  BackRubGoogolGoogle (1997)  Y2K:World Domination? Google Earth!
  • 3. Agenda  Review and Debrief  LateralThinking  Assignments, etc.  Boolean Math &TruthTables  Propositional Logic  Boolean Operations  QuestTopic:  Ruby Math and formatting features  Project 1: Calculator/Converter
  • 4. Review & Debrief  Assignment Returned  Noted  Challenges, inspirations?  Website Resources  LateralThinking
  • 5. Truth Tables  What is the truth?  Propositional Logic  True/false  Yes/No  1/0  On/Off
  • 6. Conditions & Operations  What is a condition?  Logical Operations  NOT (~)  AND (^)  OR (v)  XOR (⊕)
  • 7. Conditions & Operations - NOT  Condition A = <25 years-old A ~A F T T F
  • 8. Conditions & Operations - NOT  Condition B = green eyes B ~B F T T F
  • 9. Conditions & Operations - AND  Condition A=<25 years-old  Condition B = green eyes A B A ^ B F F F F T F T F F T T T
  • 10. Conditions & Operations - OR  Condition A=<25 years-old  Condition B = green eyes A B A v B F F F F T T T F T T T T
  • 11. Conditions & Operations - XOR  Condition A=<25 years-old  Condition B = green eyes A B A ⊕ B F F F F T T T F T T T F
  • 12. Combining Operations  Condition A=<25 years-old  Condition B = green eyes A B A ^ B ~( A ^ B ) F F F T F T F T T F F T T T T F
  • 13. Logical Equivalence  Condition A=<25 years-old  Condition B = green eyes A B ~A ~B A ^ B ~( ~A v ~B ) F F T T F F F T T F F F T F F T F F T T F F T T
  • 14. Exercises  Parenthetic Expressions  NSCC Grading Policy  Prior Learning Assessment at NSCC
  • 15. Boolean Operations & Computing  Boolean Operations in Internet Searches  Filter and fine-tune searches  Fewer and better results  Boolean Operations in Databases  Filter and fine-tune searches  Fewer and better results  Analysis and reporting  Writing Code  Conditional logic
  • 16. Summary  Propositional Math  Boolean Logic &TruthTables  Operations  Negation  Conjunction  Disjunction  Exclusive Disjunction  Applying to real-world/ computing problems  Assignment 5 – Math Review
  • 17. Assignment  Assignment 5: Math Review  Grade 5%  Due: 2 weeks