Simplifying Boolean Expressions. Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xyx XOR y FFF FTT TFT TTF xNOT x FT TF.

Slides:



Advertisements
Similar presentations
TRUTH TABLES Section 1.3.
Advertisements

TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Logic & Critical Reasoning
Chapter 3 section 2. Please form your groups The 1 st column represents all possibilities for the statement that can be either True or False. The 2 nd.
Truth Tables Presented by: Tutorial Services The Math Center.
CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
Chapter 5 Decisions. Outline and Objectives Relational and Logical Operators If Blocks Select Case Blocks.
Gates and Circuits. Three Main Gates  AND  OR  NOT.
Boolean Algebra Computer Science AND (today is Monday) AND (it is raining) (today is Monday) AND (it is not raining) (today is Friday) AND (it is.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
Discussion #10 1/16 Discussion #10 Logical Equivalences.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
The Logic of Compound Statements
Truth Tables for Negation, Conjunction, and Disjunction.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
BUILDING COMPUTER CIRCUITS prepared by Burak Galip ASLAN September, 2006 BOOLEAN LOGIC AND GATES CONTROL CIRCUITS.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Logic Gates & Boolean Algebra Chin-Sung Lin Eleanor Roosevelt High School.
Normal Forms, Tautology and Satisfiability 2/3/121.
Chapter 5 Decisions. Outline and Objectives Relational and Logical Operators If Blocks Select Case Blocks.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 2.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
3.3: Truth Tables. Types of Statements Negation: ~p Conjunction: p ˄ q (p and q) Disjunction: p V q (p or q, or both) Conditional: p → q (if p, then q)
Boolean Algebra. Logical Statements A proposition that may or may not be true:  Today is Monday  Today is Sunday  It is raining.
Boolean Logic. Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xNOT x FT TF.
4. Computer Maths and Logic 4.2 Boolean Logic Simplifying Boolean Expressions.
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Warmup Answer the following True/False questions in your head: I have brown hair AND I am wearing glasses I am male OR I am wearing sneakers I am NOT male.
How do I show that two compound propositions are logically equivalent?
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
Boolean Algebra Monday/Wednesday 7th Week. Logical Statements Today is Friday AND it is sunny. Today is Friday AND it is rainy. Today is Monday OR it.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Boolean Logic.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
Notes - Truth Tables fun, fun, and more fun!!!!. A compound statement is created by combining two or more statements, p and q.
Logic and Boolean Algebra. Logic statements  Real life statements  “I use public transportation when the car is broken and I have to go to work”  “All.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
BOOLEAN ALGEBRA Kamrul Ahsan Teacher of
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each.
CSS342: Propositions1 Professor: Munehiro Fukuda.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
3/6/20161 Let’s get started with... Logic !. 3/6/20162 Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Aspatial Selection. Table Queries Table queries are a very common GIS aspatial operation Selects a subset of records based on values of specific attributes.
Chapter 1 Logic and proofs
Hoda Roodaki Boolean Algebra Hoda Roodaki
7.1 De Morgan's Laws Bond Chapter 7.1 Part 2.
CHAPTER 2 Boolean Algebra
Boolean logic Taken from notes by Dr. Neil Moore
Propositional Equivalences
De Morgan’s laws presentation
Boolean logic Taken from notes by Dr. Neil Moore
LOGICAL EQUIVALENCES - DISCRETE MATHEMATICS.
Presentation transcript:

Simplifying Boolean Expressions

Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xyx XOR y FFF FTT TFT TTF xNOT x FT TF

Boolean Operators (1/0) xyx AND y xyx OR y xyx XOR y xNOT x 01 10

Boolean Operators Symbols OperatorSymbol NOTā (overbar), a’, ~a AND· (mult. dot) OR+ XOR  (plus sign with circle around it)

Simplifying Boolean Expressions Commutative laws A + B = B + A A · B = B · A Associative laws A + (B + C) = (A + B) + C A · (B · C) = (A · B) · C Distributive laws A · (B + C) = A · B + A · C A + (B · C) = (A + B) · (A + C)

Simplifying Boolean Expressions Tautology laws A · A = A A + A = A A + ~A = 1 A · ~A = 0 Absorption Law A + (A · B) = A A · (A + B) = A

Simplifying Boolean Expressions Identities 0 · A = A = A A + 1 = 1 1 · A = A A = A Complement A + ~A · B = A + B

Examples A + A + A + A = A Using the Tautology law

A Bigger Example Simplify ~A · B + A · ~B + ~A · ~B ~A · B + A · ~B + ~A · ~B ~A · B + (A · ~B + ~A · ~B)  Associative ~A · B + (~B · (A + ~A))  Distributive ~A · B + ~B & Tautology ~A + ~B  Complement Verify with a truth table!

Practice Show that A + B · C = (A + B) · (A + C) is true using a truth table.

Practice Show that A + ~A · B = A + B

Practice Simplification Simplify A + AB + ~B and verify with a truth table

De Morgan’s Laws ~(A · B) = ~A + ~B ~A · ~B = ~(A+B) 1. Take a term ~A · ~B 2. NOT the individual members of the term A · B 3. Change the operator i.e. · to +, or + to · A + B 4. NOT the entire term ~(A+B)

De Morgan’s Law Example f = ~A · ~B + (~A + ~B) = ~~( ~A · ~B + (~A + ~B) )  NOT NOT = ~( (A + B) · ~(~A + ~B) )  De Morgan’s = ~( (A + B) · (A·B) )  De Morgan’s = ~( A·(A·B) + B·(A·B) )  Distributive = ~( A·B + A·B )  Tautology = ~(A·B)  Tautology