© 2004-10 Franz Kurfess Lab Exercise Reasoning CSC 480: Artificial Intelligence Wumpus World Lab Dr. Franz J. Kurfess Computer Science Department Cal Poly.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

First-Order Logic Chapter 8.
Blockbusters!!! Writing Equations.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
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.
© Franz Kurfess Reasoning CSC 480: Artificial Intelligence Dr. Franz J. Kurfess Computer Science Department Cal Poly.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
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.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
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.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
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?
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
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.
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
A toy world for logical exploration The Wumpus example.
Intelligent Agents: an Overview. 2 Definitions Rational behavior: to achieve a goal minimizing the cost and maximizing the satisfaction. Rational agent:
Perpetual Self-aware Cognitive Agents Michael T. Cox BBNT Cambridge.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Artificial Intelligence Lecture No. 9 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Computing & Information Sciences Kansas State University Lecture 10 of 42 CIS 530 / 730 Artificial Intelligence Lecture 10 of 42 William H. Hsu Department.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
For Friday Finish reading chapter 7 Homework: –Chapter 6, exercises 1 (all) and 3 (a-c only)
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part A Knowledge Representation and Reasoning.
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.
1 CMSC 471 Fall 2002 Class #9– Monday, Sept Knowledge Representation Chapter Some material adopted from notes by Andreas Geyer-Schulz and.
Blockbusters!!! Graphing Lines. Rules of the Game Two teams play against each other to make it across the board before the other team. Team 1 asks for.
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.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
Knowledge-based agents: they keep track of the world by means of an internal state which is constantly updated by the agent itself A Knowledge-Based Agent.
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.
Artificial Intelligence Lecture No. 6 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Wumpus World 1 Wumpus and 1 pile of gold in a pit-filled cave Starts in [1,1] facing right - Random cave Percepts: [smell, breeze, gold, bump, scream]
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 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Tier 2 Vocabulary Practice- Shades of Meaning 1.At your computer’s desktop, open Shades of Meaning PowerPoint. 2.Select one of the following words from.
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)
Hierarchical and K-means Clustering
Knowledge and reasoning – second part
EA C461 – Artificial Intelligence Logical Agent
Artificial Intelligence Lecture No. 6
Learning and Knowledge Acquisition
Logical Agents Chapter 7.
Artificial Intelligence
Artificial Intelligence: Logic agents
Class #9– Thursday, September 29
EA C461 – Artificial Intelligence Problem Solving Agents
Knowledge and reasoning – second part
Logical Agents Chapter 7.
EA C461 – Artificial Intelligence Logical Agent
CS 416 Artificial Intelligence
Artificial Intelligence Lecture 10: Logical Agents
Knowledge Representation I (Propositional Logic)
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

© Franz Kurfess Lab Exercise Reasoning CSC 480: Artificial Intelligence Wumpus World Lab Dr. Franz J. Kurfess Computer Science Department Cal Poly

© Franz Kurfess Lab Exercise Reasoning Hexagonal Wumpus World  similar to the grid wumpus world, but the underlying geometry is hexagonal  mark the status of tiles  visited (V)  safe (OK)  possible pit (P?)  confirmed pit (P!)  possible wumpus (W?)  confirmed wumpus (W!)  percepts (SBGPC)  orientation of the agent  action (arrow or line)

© Franz Kurfess Lab Exercise Reasoning Task Definition  add information about the stench and breeze percepts in this map by coloring or shading the respective tiles  percepts are only available for the current location  the agent knows about the existence of adjacent tiles, but can’t perceive anything about adjacent tiles  use a clockwise search strategy  the agent starts from its current orientation and examines adjacent tiles in a clockwise direction  if it finds a safe, unvisited place, it proceeds there, and puts the unexamined adjacent tiles on the fringe  if there aren’t any safe unvisited ones, it continues with unexplored tiles from its fringe  the fringe may be re-arranged so that adjacent tiles are explored first to minimize movement in this online search  if only risky locations are left, it takes the first one clockwise  keep track of the activities of your agent through the template below  create copies of it as needed (e.g. for each step)

© Franz Kurfess Lab Exercise Reasoning Knowledge and Reasoning  accumulate knowledge your agent has about the Wumpus world  current location and percept  new knowledge from observation (percepts)  new knowledge from reasoning  definitive locations of pits, wumpus  speculation  possible locations for pit, wumpus  probabilities (optional)  determine the next action

© Franz Kurfess Lab Exercise Reasoning Alternative Mode: WW Game  if you want to make this more realistic, you can do it as a game:  one person (A) sets up the environment with locations for the wumpus and pits  the other person (B), who should not know or see that setup, traverses the Wumpus World by asking A about properties of the current tile  A responds with the percept for that location  B updates its world model on the template, and decides what the next action will be

© Franz Kurfess Lab Exercise Reasoning Hex WW Configuration B ABCDE KLMNO UVWXY FGHIJ PQRST

© Franz Kurfess Lab Exercise Reasoning Hex WW Configuration F10 ABCDE KLMNO UVWXY FGHIJ PQRST  add information about the stench and breeze percepts in this map by coloring or shading the respective tiles

© Franz Kurfess Lab Exercise Reasoning Hex WW Breeze + Smell  add information about the stench and breeze percepts in this map by coloring or shading the respective tiles ABCDE KLMNO UVWXY FGHIJ PQRST

© Franz Kurfess Lab Exercise Reasoning Hex WW: Legend safe location: OK return path possible wumpus W? confirmed wump. W! shoot arrow visited location: V possible pit P? confirmed pit P! ABCDE KLMNO UVWXY FGHIJ PQRST

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Hex WW: Template ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position e.g. A  Percept [ S B G P C ]  New Knowledge  observation percepts for current square  reasoning adjacent squares ok?  speculative possible locations for pits, wumpus  Next Action  move  turn left (60 degrees)  turn right (60 degrees)  shoot  grab  exit

© Franz Kurfess Lab Exercise Reasoning Exploration Example  The following slides illustrate the first few exploration steps of the agent.

© Franz Kurfess Lab Exercise Reasoning Hex WW B: Exploration A ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position A  Percept [ _ _ _ _ _ ]  New Knowledge  observation A safe  reasoning B, F safe  speculative  Next Action move

© Franz Kurfess Lab Exercise Reasoning Hex WW B: Exploration B ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position B  Percept [ _ _ _ _ _ ]  New Knowledge  observation B safe  reasoning C, G safe  speculative  Next Action move

© Franz Kurfess Lab Exercise Reasoning Hex WW B: Exploration C ABCDE KLMNO UVWXY FGHIJ PQRST  Agent Position C  Percept [ _ B _ _ _ ]  New Knowledge  observation C safe  reasoning  speculative D, H pit?  Next Action turn, (move), turn, (move), turn, turn, move (Note: Bumps skipped)

© Franz Kurfess Lab Exercise Reasoning