CS 416 Artificial Intelligence

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Advertisements

Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
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)
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
ITCS 3153 Artificial Intelligence Lecture 12 Logical Agents Chapter 7 Lecture 12 Logical Agents Chapter 7.
Methods of Proof Chapter 7, second half.
1 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Satisfiability (Reading R&N: Chapter 7)
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CS 416 Artificial Intelligence Lecture 10 Logic Chapters 7 and 8 Lecture 10 Logic Chapters 7 and 8.
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)
1 CSE 4705 Artificial Intelligence Jinbo Bi Department of Computer Science & Engineering
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
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.:
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 15: Intractable Problems (Smiley.
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.
1 Logical Agents Chapter 7. 2 Logical Agents What are we talking about, “logical?” –Aren’t search-based chess programs logical Yes, but knowledge is used.
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.
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 23: Intractable Problems (Smiley Puzzles.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
CS666 AI P. T. Chung Logic Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Notes 7: Knowledge Representation, The Propositional Calculus
EA C461 Artificial Intelligence
Inference in Propositional Logic (and Intro to SAT)
CS 4700: Foundations of Artificial Intelligence
Logical Inference 1 introduction
EA C461 – Artificial Intelligence Logical Agent
ARTIFICIAL INTELLIGENCE
Notes 7: Knowledge Representation, The Propositional Calculus
Lecture 7 Constraint Satisfaction Problems
First-Order Logic and Inductive Logic Programming
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21
Logical Inference: Through Proof to Truth
CSCI 5582 Artificial Intelligence
Logical Agents Chapter 7.
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
Logical Agents Chapter 7 Selected and slightly modified slides from
Logical Agents Reading: Russell’s Chapter 7
Announcements Homework 3 due today (grace period through Friday)
CSE 4705 Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence: Agents and Propositional Logic.
CS 416 Artificial Intelligence
Automated Reasoning in Propositional Logic
Artificial Intelligence
CS 416 Artificial Intelligence
Methods of Proof Chapter 7, second half.
Bottom Up: Soundness and Completeness
Bottom Up: Soundness and Completeness
Propositional Logic: Methods of Proof (Part II)
CSE 415 Introduction to Artificial Intelligence Winter 2007
SEG 4560 Midterm Review.
Problems in AI Problem Formulation Uninformed Search Heuristic Search
Bottom Up: Soundness and Completeness
Presentation transcript:

CS 416 Artificial Intelligence Lecture 12 Logical Agents Chapter 7

Midterm Exam Midterm will be on Thursday, March 13th It will cover material up until Feb 27th

Propositional Logic We’re still emphasizing Propositional Logic Very important question with this method Does knowledge base of propositional logic satisfy a particular proposition? Can we generate some sequence of resolutions that prove a proposition is possible?

Backtracking Make sure you understand this logic Another way (representation) for searching Problem to solve is in CNF Is Marvin a Martian given --- M == 1 (true)? Marvin is green --- G=1 Marvin is little --- L=1 (little and green) implies Martian --- (L ^ G) => M ~(L^G) V M ~L V ~G V M = 1 Proof by contradiction… are there true/false values for G, L, and M that are consistent with knowledge base and Marvin not being a Martian? G ^ L ^ (~L V ~G V M) ^ ~M == 0? Make sure you understand this logic

Searching for variable values Want to find values such that: Randomly consider all true/false assignments to variables until we exhaust them all or find match (G, L, M) = (1, 0, 0)… no = (0, 1, 0)… no = (0, 0, 0)… no = (1, 1, 0)… no Alternatively… G ^ L ^ (~L V ~G V M) ^ ~M == 0

Searching for variable values Davis-Putnam Algorithm (DPLL) Search through possible assignments to (G, L, M) via depth first search (0, 0, 0) to (0, 0, 1) to (0, 1, 0)… Each clause of CNF must be true Terminate consideration when clause evaluates to false Use heuristics to reduce repeated computation of propositions Early termination Pure symbol heuristic Unit clause heuristic G L M

Searching for variable values Other ways to find (G, L, M) assignments for: G ^ L ^ (~L V ~G V M) ^ ~M == 0 Simulated Annealing (WalkSAT) Start with initial guess (0, 1, 1) Evaluation metric is the number of clauses that evaluate to true Move “in direction” of guesses that cause more clauses to be true Many local mins, use lots of randomness

WalkSAT termination How do you know when simulated annealing is done? No way to know with certainty that an answer is not possible Could have been bad luck Could be there really is no answer Establish a max number of iterations and go with best answer to that point

So how well do these work? Think about it this way 16 of 32 possible assignments are models (are satisfiable) for this sentence Therefore, 2 random guesses should find a solution WalkSAT and DPLL should work quickly

What about more clauses? If # symbols (variables) stays the same, but number of clauses increases More ways for an assignment to fail (on any one clause) More searching through possible assignments is needed Let’s create a ratio, m/n, to measure #clauses / # symbols We expect large m/n causes slower solution

What about more clauses Higher m/n means fewer assignments will work If fewer assignments work it is harder for DPLL and WalkSAT

Combining it all 4x4 Wumpus World The “physics” of the game At least one wumpus on board A most one wumpus on board (for any two squares, one is free) n(n-1)/2 rules like: ~W1,1 V ~W1,2 Total of 155 sentences containing 64 distinct symbols

Wumpus World Inefficiencies as world becomes large Knowledge base must expand if size of world expands Preferred to have sentences that apply to all squares We brought this subject up last week Next chapter addresses this issue