Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Truth Tables How to Make and Use. Making a Truth Table To determine the number of rows other than the heading row. To determine the number of rows other.
The Foundations: Logic and Proofs
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
From Chapter 4 Formal Specification using Z David Lightfoot
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Propositional Calculus Math Foundations of Computer Science.
Propositional Equivalence Goal: Show how propositional equivalences are established & introduce the most important such equivalences.
Copyright © Cengage Learning. All rights reserved.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Propositions and Truth Tables
The Foundations: Logic and Proofs
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Chapter 1: The Foundations: Logic and Proofs
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Normal Forms, Tautology and Satisfiability 2/3/121.
Propositional Equivalences
A compound statement is made up of more than one equation or inequality. A disjunction is a compound statement that uses the word or. Disjunction: x ≤
Solving Inequalities Solving Inequalities Objective: SWBAT solve and graph compound inequalities.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Thinking Mathematically
Chapter 1: The Foundations: Logic and Proofs
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
Propositional Equivalence A needed step towards proofs Copyright © 2014 Curt Hill.
1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.
The Foundations: Logic and Proofs
SAT Encodings for Sudoku Bug Catching in 2006 Fall Sep. 26, 2006 Gi-Hwon Kwon.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Chapter 1 Propositional Logic
Logic.
The Foundations: Logic and Proofs
Propositional Equivalence
AND.
DISCRETE MATHEMATICS CHAPTER I.
CHAPTER 3 Logic.
Truth Tables for Negation, Conjunction, and Disjunction
Chapter 1 Logic and Proofs.
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Chapter 8 Logic Topics
Propositional Calculus: Boolean Algebra and Simplification
1.2 Propositional Equivalences
Propositional Equivalences
Applications of Propositional Logic
Propositional Equivalences
TRUTH TABLES.
Modeling Sudoku as a CNF Formula
1.2 Propositional Equivalences
Statements of Symbolic Logic
Sudoku.
1.2 Propositional Equivalences
The Foundations: Logic and Proofs
Truth Tables for the Conditional and Biconditional
Modeling Sudoku as a CNF Formula
1.3 Propositional Equivalences
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CHAPTER 3 Logic.
Propositional Satisfiability
Presentation transcript:

Propositional Satisfiability A compound proposition is satisfiable if there is an assignment of truth values to its variables that make it true. When no such assignments exist, the compound proposition is unsatisfiable. A compound proposition is unsatisfiable if and only if its negation is a tautology.

Questions on Propositional Satisfiability Example: Determine the satisfiability of the following compound propositions: Solution: Satisfiable. Assign T to p, q, and r. Solution: Satisfiable. Assign T to p and F to q. Solution: Not satisfiable. Check each possible assignment of truth values to the propositional variables and none will make the proposition true.

Notation Needed for the next example.

Sudoku A Sudoku puzzle is represented by a 9  9 grid made up of nine 3  3 subgrids, known as blocks. Some of the 81 cells of the puzzle are assigned one of the numbers 1,2, …, 9. The puzzle is solved by assigning numbers to each blank cell so that every row, column and block contains each of the nine possible numbers. Example

Encoding as a Satisfiability Problem Let p(i,j,n) denote the proposition that is true when the number n is in the cell in the ith row and the jth column. There are 9  9  9 = 729 such propositions. In the sample puzzle p(5,1,6) is true, but p(5,j,6) is false for j = 2,3,…9

Encoding (cont) For each cell with a given value, assert p(d,j,n), when the cell in row i and column j has the given value. Assert that every row contains every number. Assert that every column contains every number.

Encoding (cont) Assert that each of the 3 x 3 blocks contain every number. (this is tricky - ideas from chapter 4 help) Assert that no cell contains more than one number. Take the conjunction over all values of n, n’, i, and j, where each variable ranges from 1 to 9 and, of

Solving Satisfiability Problems To solve a Sudoku puzzle, we need to find an assignment of truth values to the 729 variables of the form p(i,j,n) that makes the conjunction of the assertions true. Those variables that are assigned T yield a solution to the puzzle. A truth table can always be used to determine the satisfiability of a compound proposition. But this is too complex even for modern computers for large problems. There has been much work on developing efficient methods for solving satisfiability problems as many practical problems can be translated into satisfiability problems.