(QiuXin Hui) 7.2 Given the following, can you prove that the unicorn is mythical? How about magical? Horned? Decide what you think the right answer

Similar documents
a. Given that we search depth first from left to right, list all leaf nodes above that we need to search/expand. (35 Points)

NP-Completeness of 3SAT, 1-IN-3SAT and MAX 2SAT

Question 1: 25% of students lost more than 2 points Question 2: 50% of students lost 2-4 points; 50% got it entirely correct Question 3: 95% of

Boolean Functions (Formulas) and Propositional Logic

PROPOSITIONAL LOGIC (2)

Answer Key #1 Phil 414 JL Shaheen Fall 2010

Artificial Intelligence. Chapters Reviews. Readings: Chapters 3-8 of Russell & Norvig.

CS 512, Spring 2017: Take-Home End-of-Term Examination

Grad AI Fall, 2007 Homework 1

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 9 Normal Forms

Linear Time Unit Propagation, Horn-SAT and 2-SAT

The Resolution Algorithm

Efficient Enumeration Algorithms for Constraint Satisfaction Problems

8.1 Polynomial-Time Reductions

1. (15 points) Consider the crossword puzzle

1. Suppose you are given a magic black box that somehow answers the following decision problem in polynomial time:

Constraint satisfaction search

8 NP-complete problem Hard problems: demo

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

CSE 20 DISCRETE MATH. Fall

Chapter 10 Part 1: Reduction

The Satisfiability Problem [HMU06,Chp.10b] Satisfiability (SAT) Problem Cook s Theorem: An NP-Complete Problem Restricted SAT: CSAT, k-sat, 3SAT

DM841 DISCRETE OPTIMIZATION. Part 2 Heuristics. Satisfiability. Marco Chiarandini

Exam in Algorithms & Data Structures 3 (1DL481)

Implementation of a Sudoku Solver Using Reduction to SAT

Informatics 1 - Computation & Logic: Tutorial 3

CSP- and SAT-based Inference Techniques Applied to Gnomine

Name: UW CSE 473 Midterm, Fall 2014

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Class2: Constraint Networks Rina Dechter

Module 4. Constraint satisfaction problems. Version 2 CSE IIT, Kharagpur

NP and computational intractability. Kleinberg and Tardos, chapter 8

Deductive Methods, Bounded Model Checking

Horn Formulae. CS124 Course Notes 8 Spring 2018

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Where Can We Draw The Line?

Problem 1 Zero: 11% (~20 students), Partial: 66% (~120 students), Perfect: 23% (~43 students)

Parallelizing SAT Solver With specific application on solving Sudoku Puzzles

Homework #6 (Constraint Satisfaction, Non-Deterministic Uncertainty and Adversarial Search) Out: 2/21/11 Due: 2/29/11 (at noon)

Reduction of nite linear CSPs to SAT using dierent encod

Logic: TD as search, Datalog (variables)

Constraint Satisfaction Problems (CSPs)

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Informed (heuristic) search (cont). Constraint-satisfaction search.

Today. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 5. Constraint Satisfaction Problems (CSP) CSP Definition

1 Inference for Boolean theories

Lecture 14: Lower Bounds for Tree Resolution

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

EECS 219C: Computer-Aided Verification Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

Boolean Representations and Combinatorial Equivalence

Lesson 10: Representing, Naming, and Evaluating Functions

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

CS188 Spring 2010 Section 2: CSP s

LECTURE 2 An Introduction to Boolean Algebra

Chapter 8. NP and Computational Intractability. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Example: Map coloring

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 37 Resolution Rules

Module 4. Constraint satisfaction problems. Version 2 CSE IIT, Kharagpur

Mixed Integer Linear Programming

CSE-6490B Assignment #1

! Greed. O(n log n) interval scheduling. ! Divide-and-conquer. O(n log n) FFT. ! Dynamic programming. O(n 2 ) edit distance.

Informatics 1 - Computation & Logic: Tutorial 4

CS-171, Intro to A.I. Mid-term Exam Fall Quarter, 2014

1. (15 points) Solve the decanting problem for containers of sizes 199 and 179; that is find integers x and y satisfying.

Research on Modeling Method for Constraint Inference

NP-Complete Reductions 2

EECS 492 Midterm #1. Example Questions. Note: Not a complete exam!

Normal Forms for Boolean Expressions

NP-Completeness. Algorithms

Recitation 3 Problems

Constraint (Logic) Programming

Example of a Demonstration that a Problem is NP-Complete by reduction from CNF-SAT

P -vs- NP. NP Problems. P = polynomial time. NP = non-deterministic polynomial time

CONDITIONAL EXECUTION

1.4 Normal Forms. We define conjunctions of formulas as follows: and analogously disjunctions: Literals and Clauses

EECS 219C: Formal Methods Boolean Satisfiability Solving. Sanjit A. Seshia EECS, UC Berkeley

Binary Decision Diagrams

Notes for Chapter 12 Logic Programming. The AI War Basic Concepts of Logic Programming Prolog Review questions

Introduction to Computer Architecture

Exercises Computational Complexity

Dipartimento di Elettronica Informazione e Bioingegneria. Cognitive Robotics. SATplan. Act1. Pre1. Fact. G. Gini Act2

Satisfiability. Michail G. Lagoudakis. Department of Computer Science Duke University Durham, NC SATISFIABILITY

CSE 20 DISCRETE MATH. Winter

Unrestricted Nogood Recording in CSP search

Constraint Satisfaction Problems

P Is Not Equal to NP. ScholarlyCommons. University of Pennsylvania. Jon Freeman University of Pennsylvania. October 1989

HW1. Due: September 13, 2018

Resolution (14A) Young W. Lim 6/14/14

What's the difference between the entailment symbol with the equals vs the entailment symbol with one line? Single turnstile meaning

Logic Programming and Resolution Lecture notes for INF3170/4171

COMP4418 Knowledge Representation and Reasoning

CSc Parallel Scientific Computing, 2017

The Complexity of Camping

Part I Logic programming paradigm

NP-complete Reductions

Reductions and Satisfiability

W4231: Analysis of Algorithms

LOGIC-BASED TRUTH MAINTENANCE SYSTEMS. EECS 344 Winter, 2008

Transcription:

(QiuXin Hui) 7.2 Given the following, can you prove that the unicorn is mythical? How about magical? Horned? Decide what you think the right answer is yourself, then show how to get the answer using both (1) model-checking and (2) inference rule methods. If the unicorn is mythical, then it is immortal, but if it is not mythical, then it is a mortal mammal. If the unicorn is either immortal or a mammal, then it is horned. The unicorn is magical if it is horned.

(Matthew Nguyen) 7.19 A sentence is in disjunctive normal form (DNF) if is is the disjunction of conjunctions of literals. For example, the sentence (A B C) ( A C) (B C) is in DNF. (a) Any propositional logic sentence is logically equivalent to the assertion that some possible world in which it would be true is in fact the case. From this observation, prove that any sentence can be written in DNF. (b) Construct an algorithm that converts any sentence into DNF. (Hint: the algorithm is similar to the one that converts to CNF.) (c) Construct a simple algorithm that takes as input a sentence in DNF and returns a satisfying assignment if one exists, or reports that no satisfying assignment exists. (d) Apply the algorithms in (b) and (c) to the following sentence: (A B) (B C) (C A)

(Matthew Tseng) 7.17 A propositional 2-CNF expression is a conjunction of clauses, each containing exactly 2 literals; for example: (A B) ( A C) ( B D) ( C G) ( D G) (a) Prove using resolution that the above sentence entails G. (b) Two clauses are semantically distinct if they are not logically equivalent. How many semantically distinct 2-CNF clauses can be constructed from n propositional symbols? (c) Using you answer to (b), prove that propositional resolution always terminates in time polynomial in n given a 2-CNF sentence containing no more than n distinct symbols. (d) Explain why the argument in (c) does not apply to 3-CNF.

(Braden Hiebert) 7.8 We have defined four binary logical connectives. Are there any others that might be useful? How many binary connectives can there be? Why are some of them not very useful?

(Wang Zhu) 7.4 Which of the following are correct? False True True False (A B) (A B) A B A B A B A B (A B) C (A B) (B C) (C ( A B)) ((A C) (B C)) (A B) ( C D E) (A B) (A B) ( C D E) (A B) ( D E) (A B) (A B) is satisfiable. (A B) ( A B) is satisfiable. (A B) C has the same number of models as A B for a fixed set of symbols {A,B,C}.

(Will Brady) 7.15 This question considers representing satisfiability (SAT) problems as CSPs. (a) Draw the constraint graph corresponding to the following SAT problem for the case when n = 5: ( X1 X2) ( Xn-1 Xn). (b) How many solutions are there for this general SAT problem as a function of n? (c) Suppose we apply Backtracking-Search to find all solutions to a SAT CSP of the type given in (a). Assume the variables are ordered, and False is ordered before True. How much time will the algorithm take to terminate? (Use O() notation).

(Freddy Kooliyath) 6.3 Consider the problem of constructing (not solving) crossword puzzles: fitting words into a rectangular grid. The grid, which is given as a part o the problem, specifies which squares are blank and which are shaded. A list of words is provided and the task is to fill in the blank squares by using any subset of the list. Formulate this problem precisely in two ways: As a general search problem. Choose an appropriate search algorithm and specify a heuristic function. Is it better to fill in blanks one letter at a time or one word at a time? As a constraint satisfaction problem. Should the variables be words or letters? Which formulation do you think will be better. Why?

(Haipeng Li) 6.6 In this problem we will show how any CSP can be transformed into a CSP with only binary constraints. (a) Show how a single ternary constraint such as A + B = C can be turned into three binary constraints by using an auxiliary variable. You may assume finite domains. (b) Show how constraints with more than tree variables can be treated similarly. (c) Show how unary constraints can be eliminated by altering the domains of variables.