Supplemental slides for CSE 327 Prof. Jeff Heflin

Slides:



Advertisements
Similar presentations
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Advertisements

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.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
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?
Oregon State University – CS430 Intro to AI (c) 2003 Thomas G. Dietterich and Devika Subramanian1 Reasoning/Inference  Given a set of facts/beliefs/rules/evidence.
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.
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
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
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
지식표현 Agent that reason logically
CSE LOGIC1 Propositional Logic An “adventure game” example Thinking?
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 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
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.
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)
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
Hierarchical and K-means Clustering
Knowledge and reasoning – second part
Ch. 2 – Intelligent Agents
Introduction to Knowledge-bases
CS 4700: Foundations of Artificial Intelligence
Planning Search vs. planning STRIPS operators Partial-order planning
EA C461 – Artificial Intelligence Logical Agent
Supplemental slides for CSE 327 Prof. Jeff Heflin
Planning Search vs. planning STRIPS operators Partial-order planning
Learning and Knowledge Acquisition
Artificial Intelli-gence 1: logic agents
Logical Agents Reading: Russell’s Chapter 7
Planning Search vs. planning STRIPS operators Partial-order planning
Logical Agents Chapter 7.
Artificial Intelligence
Artificial Intelligence: Agents and Propositional Logic.
Artificial Intelligence: Logic agents
Class #9– Thursday, September 29
Knowledge and reasoning – second part
Logical Agents Chapter 7.
EA C461 – Artificial Intelligence Logical Agent
Logical Agents Chapter 7 How do we reason about reasonable decisions
CS 416 Artificial Intelligence
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,
Artificial Intelligence Lecture 10: Logical Agents
Knowledge Representation I (Propositional Logic)
Warm-up: The regions below visually enclose the set of models that satisfy the respective sentence
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
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
Presentation transcript:

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

Goal-Based Agent Environment Agent sensors State What the world is like now How the world evolves Environment What it will be like if I do action A What my actions do What action I should do now Goals actuators Agent 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

Example KB Sentences For an adventure game AI, specified informally: State of the world I am healthy A wall is in front of me Effects of actions If I fall in a pit, I will die If I shoot something, I will injure it Changing goals If I see an enemy, then attack If I am injured, then retreat

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) | (Sentence  Sentence) From Figure 7.7, p. 244

Checking Entailment Entailed! Not Entailed! Entailed! Assume KB={PQ, Q, QR} P Q R 1: PQ 2: Q 3: QR KB: 1  2  3 P PR F T

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 This topic will not be covered this year.

Wumpus World Agent function HYBRID-WUMPUS-AGENT(percept) returns an action inputs: percept, a list [stench, breeze, glitter] persistent: KB, a knowledge base, contains “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, Sx,y) else Tell(KB, Sx,y) if breeze then Tell(KB, Bx,y) else Tell(KB, Bx,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, (Pi,j  Wi,j )) is true or for some frontier square [i,j], Ask(KB, (Pi,j  Wi,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 in Figure 7.20, p. 270