Quasigroups Defaults Foundations of AI. Given an N X N matrix, and given N colors, color the matrix in such a way that: -all cells are colored; - each.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Logic Programming Automated Reasoning in practice.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Methods of Proof Chapter 7, second half.
AAAI00 Austin, Texas Generating Satisfiable Problem Instances Dimitris Achlioptas Microsoft Carla P. Gomes Cornell University Henry Kautz University of.
Structure and Phase Transition Phenomena in the VTC Problem C. P. Gomes, H. Kautz, B. Selman R. Bejar, and I. Vetsikas IISI Cornell University University.
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Instance Hardness and Phase Transitions.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Structure and Phase Transition Phenomena in the VTC Problem C. P. Gomes, H. Kautz, B. Selman R. Bejar, and I. Vetsikas IISI Cornell University University.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 3 Logic Representations (Part 2)
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Heavy-Tailed Phenomena in Satisfiability and Constraint Satisfaction Problems by Carla P. Gomes, Bart Selman, Nuno Crato and henry Kautz Presented by Yunho.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
First-Order Logic and Inductive Logic Programming.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Inference in Propositional Logic (and Intro to SAT)
EA C461 – Artificial Intelligence Logical Agent
The Propositional Calculus
Logics for Data and Knowledge Representation
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21
Logical Inference: Through Proof to Truth
Logics for Data and Knowledge Representation
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Artificial Intelligence: Agents and Propositional Logic.
Knowledge Representation I (Propositional Logic)
Methods of Proof Chapter 7, second half.
Habib Ullah qamar Mscs(se)
Presentation transcript:

Quasigroups Defaults Foundations of AI

Given an N X N matrix, and given N colors, color the matrix in such a way that: -all cells are colored; - each color occurs exactly once in each row; - each color occurs exactly once in each column; Quasigroup or Latin Square Quasigroup or Latin Squares

Quasigroup Completion Problem (QCP) Given a partial assignment of colors (10 colors in this case), can the partial quasigroup (latin square) be completed so we obtain a full quasigroup? Example: 32% preassignment

Demonstration

QCP: A Framework for Studying Search NP-Complete. Random instances have structure not found in random k-SAT Closer to “real world” problems! Can control hardness via % preassignment (Anderson 85, Colbourn 83, 84, Denes & Keedwell 94, Fujita et al. 93, Gent et al. 99, Gomes & Selman 97, Gomes et al. 98, Shaw et al. 98, Walsh 99 )

Easy-Hard-Easy Pattern in Backtracking Search % holes Computational Cost Complete (Satz) Search Order 30, 33, 36 QWH peaks near 32% (QCP peaks near 42%)

Easy-Hard-Easy Pattern in Local Search % holes Computational Cost Local (Walksat) Search Order 30, 33, 36 First solid statistics for overconstrainted area!

Next Programming Assignment Solving Quasigroup Completion Problems Write a Prolog program to solve directly Use Prolog to generate a propositional SAT formula, then solve the SAT problem using your SAT solver (or my own implementation of Walksat) Details will be posted by Saturday morning

Default Reasoning

Generic vs. Universal Statements Which of the following are universally true? – Violins have 4 strings. – The classical violin has 4 strings. – A normal classical violin has 4 strings – Dogs have 4 legs – Normal dogs have 4 legs But what is "normal"?

Generics vs. Statistical Knowledge Is generic knowledge just statistical? Dogs have fur. – The concepts of "dogginess" is inseparable from "furriness" 99% of dogs have fur 99% of Americans have a first name that ends in a consonant Americans have first name that end in consonants (?!)

Kinds of Default Reasoning General Statements – Generic or prototypical: Dogs have fur – Statistical: Most Republicans are against gun laws Conventions of Human Interaction – "Most people got an A in 444" -> not the case that everyone got an A in 444 Based on lack of information – I believe I haven't won a Macarther Genius award Based on an explicit exhaustive knowledge – Mary is not registered for my class, because she is not listed on the class roster.

Closed-World Assumption Unless an atomic sentence is known to be true, it can be assumed to be false. Prolog: goal "not P" means "not provable" – \+/ p(e) – Recall: \+/ p(E) means \+/ Exists E. p(E) KB+ = KB U {~p | p is atomic and not KB|=p} What could go wrong?

Problem: Disjunctions Suppose KB = { p V q } Then KB+ = { p V q, ~p, ~q } Thus: CWA cannot be safely applied to a KB that contains positive disjunctive statements. Prolog has no positive disjunctive statements. Is CWA safe for Prolog?

CWA vs. \+/ Consider Prolog program: q :- \+/ p. p :- \+/ q. Is q provable? Is p provable? Is ~q in KB+? What about ~p? p is not provable, but we can't allow ~p in KB+, because then q should be provable (and vice versa) However: CWA and \+/ coincide if the Prolog program is "stratified" – Never apply \+/ to a predicate that appears EARLIER in the program.

CWA and Databases CWA is typically used in ordinary databases. DB table: Prolog relation specified by enumerating positive literals. DB view: non-recursive pure Prolog clause. Key property: DB |= (p V q) iff DB |= p OR DB |= q How is this different from the general case of logical entailment?

Beyond the CWA Much work in AI in on more general formalisms for default reasoning – Generalized CWA – Circumscription – Default logic – Autoepistemic logic – Various probabilistic (statistical) representations During last decade, almost all work has been on statistical methods (Bayes nets, etc) But, even in statistical representations, default assumptions implicitly appear – "independence assumptions" in a Bayesian network – Some kind of default reasoning is inescapable!

Default Logic Extends FOL with default rules Oridinary FOL: {provable} / {conclusion} Default rule: {provable} : {consistent} / conclusion Why is this any better than \+/ ~{consistent}? The "consisent" check is against the full, final set of logical consequences of the theory Full set of consequences = Extension

Default Logic Normal Default theory: the {conclusion} is included in the {consistent} check Theorem: every normal default theory has at least one extension.