Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

Russell and Norvig Chapter 7
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Ch. 19 – Knowledge in Learning Supplemental slides for CSE 327 Prof. Jeff Heflin.
Ch. 2 – Intelligent Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
Ch. 8 – First Order Logic Supplemental slides for CSE 327 Prof. Jeff Heflin.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 6.
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.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
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.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
LOGICAL AGENTS Yılmaz KILIÇASLAN. Definitions Logical agents are those that can:  form representations of the world,  use a process of inference to.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2008.
Rutgers CS440, Fall 2003 Propositional Logic Reading: Ch. 7, AIMA 2 nd Ed. (skip )
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
CS 188: Artificial Intelligence Logical Agents Instructor: Stuart Russell University of California, Berkeley.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Ch. 9 – FOL Inference Supplemental slides for CSE 327 Prof. Jeff Heflin.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
지식표현 Agent that reason logically
CSE LOGIC1 Propositional Logic An “adventure game” example Thinking?
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
1 Knowledge Representation Propositional Logic Vumpus World Knowledge Representation Propositional Logic Vumpus World.
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 Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
Knowledge Representation Lecture # 17, 18 & 19. Motivation (1) Up to now, we concentrated on search methods in worlds that can be relatively easily represented.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
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.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 13 –Reasoning with Uncertainty Tuesday –AIMA, Ch. 14.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents Russell & Norvig Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean)
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Prof. Dr. Samy Abu Naser University of Palestine Artificial Intelligence.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
LOGICAL AGENTS CHAPTER 7 AIMA 3. OUTLINE  Knowledge-based agents  Wumpus world  Logic in general - models and entailment  Propositional (Boolean)
Ch. 2 – Intelligent Agents
Introduction to Knowledge-bases
EA C461 – Artificial Intelligence Logical Agent
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Logical Agents Chapter 7.
Artificial Intelligence
Ch. 19 – Knowledge in Learning
Artificial Intelligence: Logic agents
Logical Agents Chapter 7.
Warm-up: What is the relationship between number of constraints and number of possible solutions? In other words, as the number of the constraints increases,
Knowledge Representation I (Propositional Logic)
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Ch. 2 – Intelligent Agents
Supplemental slides for CSE 327 Prof. Jeff Heflin
Logical Agents Prof. Dr. Widodo Budiharto 2018
Supplemental slides for CSE 327 Prof. Jeff Heflin
Presentation transcript:

Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin

Goal-Based Agent sensors actuators Agent Environment What the world is like now What action I should do now Goals State How the world evolves What my actions do What it will be like if I do action A From Fig. 2.13, p. 52

Knowledge-Based Agent function KB-AGENT(percept) returns an action persistent: KB, a knowledge base t, a counter, initially 0 indicating time TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t)) action  ASK(KB, MAKE-ACTION-QUERY(t)) TELL(KB, MAKE-ACTION-SENTENCE(action, t)) t  t + 1 return action From Figure 7.1, p. 236

Grammar for Propositional Logic Sentence  AtomicSentence | ComplexSentence AtomicSentence  True | False | Symbol Symbol  P | Q | R | … ComplexSentence   Sentence | (Sentence  Sentence) | (Sentence  Sentence) | (Sentence  Sentence) | (Sentence  Sentence) From Figure 7.7, p. 244

Checking Entailment PQR 1:PQ1:PQ 2:Q2:Q 3:QR3:QR KB:  1   2   3 PP R PRPR FFFTTTTTFT FFTTTTTTTT FTFTFFFTFT FTTTFTFTTT TFFFTTFFFF TFTFTTFFTT TTFTFFFFFF TTTTFTFFTT Assume KB={P  Q,  Q,  Q  R} Entailed! Not Entailed!

Inference via Model Checking function TT-ENTAILS?(KB,  ) returns true or false symbols  a list of the proposition symbols in KB and  return TT-CHECK-ALL(KB, , symbols, {}) function TT-CHECK-ALL(KB, , symbols, model) returns true or false if EMPTY?(symbols) then if PL-TRUE?(KB, model) then return PL-TRUE?( , model) else return true else do P  FIRST(symbols); rest  REST(symbols) return TT-CHECK-ALL(KB, , rest, model  {P=true} and TT-CHECK-ALL(KB, , rest, model  {P=false}) From Figure 7.10, p. 248

Wumpus World Agent function HYBRID-WUMPUS-AGENT(percept) returns an action inputs: percept, a list [stench, breeze, glitter] persistent: KB, a knowledge base, containins “rules” of the Wumpus world x, y, orientation, the agent’s position visited, array of squares visited by agent, initially empty action, most recent action, initially null plan, an action sequence, initially empty update x, y, orientation, visited based on action if stench then TELL(KB, S x,y ) else TELL(KB,  S x,y ) if breeze then TELL(KB, B x,y ) else TELL(KB,  B x,y ) if glitter then action  grab else if plan is nonempty then action  POP(plan) else if for some frontier square [i,j], ASK(KB, (  P i,j   W i,j )) is true or for some frontier square [i,j], ASK(KB, (P i,j  W i,j )) is false then do plan  A*-GRAPH-SEARCH(ROUTE-PROBLEM([x,y], orientation, [i,j], visited)) action  POP(plan) else action  a randomly chosen move return action Simplified version of agent described Figure 7.20, p. 270