CSE 321 Discrete Structures

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Propositional Equivalences
Foundations of Computing I CSE 311 Fall 2014 Foundations of Computing I Fall 2014.
CSE 311: Foundations of Computing Fall 2013 Lecture 3: Logic and Boolean algebra.
CSE 311 Foundations of Computing I Spring 2013 Lecture 1 Propositional Logic.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 1 Propositional Logic.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
CSE 321 Discrete Structures Winter 2008 Lecture 1 Propositional Logic.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
CSE 311 Foundations of Computing I Autumn 2012 Lecture 1 Propositional Logic 1.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
CSE 311 Foundations of Computing I Spring 2013, Lecture 3 Propositional Logic, Boolean Logic/Boolean Algebra 1.
Propositional Equivalences
SSK3003 DISCRETE STRUCTURES
September1999 CMSC 203 / 0201 Fall 2002 Week #1 – 28/30 August 2002 Prof. Marie desJardins.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
UMBC CMSC 203, Section Fall CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
CSci 2011 Recap ^Propositional operation summary not andorconditionalBi-conditional pq ppqqpqpqpqpqpqpqpqpq TTFFTTTT TFFTFTFF FTTFFTTF FFTTFFTT.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
CSE 311: Foundations of Computing Fall 2013 Lecture 1: Propositional logic.
Chapter 1 Propositional Logic
2. The Logic of Compound Statements Summary
The Foundations: Logic and Proofs
Advanced Algorithms Analysis and Design
CSE15 Discrete Mathematics 01/23/17
DISCRETE MATHEMATICS CHAPTER I.
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
Citra Noviyasari, S.Si, MT
Logical Equivalence of Propositions
MATH 245 Spring 2009 This is mathematics for computer science
CSE 311 Foundations of Computing I
COT 3100, Spr Applications of Discrete Structures
(CSC 102) Discrete Structures Lecture 2.
CPCS222 Discrete Structures I
Discussion #10 Logical Equivalences
Mathematics for Computing
Discrete Structures for Computer Science
Propositional Calculus: Boolean Algebra and Simplification
Administrivia Course Web:
1.2 Propositional Equivalences
Propositional Equivalences
CS100: Discrete structures
Information Technology Department
Propositional Equivalence (§1.2)
CSE 311 Foundations of Computing I
CS 220: Discrete Structures and their Applications
CSE 311 Foundations of Computing I
Propositional Equivalences
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
Lecture 2: Propositional Equivalences
Discrete Mathematics Lecture 2: Propositional Logic
1.2 Propositional Equivalences
CSE 321 Discrete Structures
CSE 321 Discrete Structures
1.2 Propositional Equivalences
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Discrete Structures Prepositional Logic 2
The Foundations: Logic and Proofs
Presentation transcript:

CSE 321 Discrete Structures Winter 2008 Lecture 2 Propositional Equivalences

Announcements Homework 1, Due January 16th Reading: sections 1.1, 1.2, 1.3 Quiz section Thursday 12:30-1:20 or 1:30 – 2:20 CSE 305 Office hours Richard Anderson, CSE 582, Friday 2:30-3:30 Natalie Linnell, CSE 218, Monday, 11:00-12:00, Tuesday, 2:00-3:00

Highlights from Lecture 1 Fundamental tasks in computing Propositional logic Proposition: statement with a truth value Basic connectives , , , , ,  Truth table for implication Translating from idea to working system Getting details right p q p  q

Biconditional p  q p iff q p is equivalent to q p implies q and q implies p p q p  q

English and Logic You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old q: you can ride the roller coaster r: you are under 4 feet tall s: you are older than 16 ( r   s)   q  s  (r   q)

Logical equivalence Terminology: A compound proposition is a Tautology if it is always true Contradiction if it is always false Contingency if it can be either true or false p   p (p  p)  p p   p  q   q (p  q)  p (p  q)  (p   q)  ( p  q)  ( p   q)

Logical Equivalence p and q are Logically Equivalent if p q is a tautology. The notation p  q denotes p and q are logically equivalent Example: (p q)  ( p  q) p q p  q  p  p  q (p q)  ( p  q)

Computing equivalence Describe an algorithm for computing if two logical expressions are equivalent What is the run time of the algorithm?

Understanding connectives Reflect basic rules of reasoning and logic Allow manipulation of logical formulas Simplification Testing for equivalence Applications Query optimization Search optimization and caching Artificial Intelligence Program verification

Properties of logical connectives Identity Domination Idempotent Commutative Associative Distributive Absorption Negation p  T  p p  F  F p  p  p p  q  q  p (p  q)  r  p  (q  r) p  (q  r)  (p q)  (p  r) p  (p  q)  p p   p  F

De Morgan’s Laws  (p  q)   p   q  (p  q)   p   q What are the negations of: Casey has a laptop and Jena has an iPod Clinton will win Iowa or New Hampshire

Equivalences relating to implication p  q   p  q p  q   q   p p  q   p  q p  q   (p   q) p  q  (p q)  (q  p) p  q   p   q p  q  (p  q)  ( p   q)  (p  q)  p   q

Logical Proofs To show P is equivalent to Q To show P is a tautology Apply a series of logical equivalences to subexpressions to convert P to Q To show P is a tautology Apply a series of logical equivalences to subexpressions to convert P to T

Show (p  q)  (p  q) is a tautology

Show (p  q)  r and p  (q  r) are not equivalent All false works