Artificial Intelligence Chapter 7 Agents That Plan Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.

Slides:



Advertisements
Similar presentations
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Advertisements

Binary Trees CSC 220. Your Observations (so far data structures) Array –Unordered Add, delete, search –Ordered Linked List –??
Analysis of Algorithms Depth First Search. Graph A representation of set of objects Pairs of objects are connected Interconnected objects are called “vertices.
Artificial Intelligence Chapter 9 Heuristic Search Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Chapter 5 State Machines.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
©Brooks/Cole, 2003 Chapter 12 Abstract Data Type.
Edited by Malak Abdullah Jordan University of Science and Technology Data Structures Using C++ 2E Chapter 12 Graphs.
September 26, 2012Introduction to Artificial Intelligence Lecture 7: Search in State Spaces I 1 After our “Haskell in a Nutshell” excursion, let us move.
Problem Solving and Search in AI Part I Search and Intelligence Search is one of the most powerful approaches to problem solving in AI Search is a universal.
Artificial Intelligence Chapter 19 Reasoning with Uncertain Information Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Structures and Strategies for State Space Search
Using Search in Problem Solving
1 Chapter 15 Introduction to Planning. 2 Chapter 15 Contents l Planning as Search l Situation Calculus l The Frame Problem l Means-Ends Analysis l The.
Using Search in Problem Solving
1 Structures and Strategies for State Space Search 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
CSC 2300 Data Structures & Algorithms February 6, 2007 Chapter 4. Trees.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Binary Trees Chapter 6.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
Index Structures for Files Indexes speed up the retrieval of records under certain search conditions Indexes called secondary access paths do not affect.
COSC2007 Data Structures II
Artificial Intelligence Lecture 9. Outline Search in State Space State Space Graphs Decision Trees Backtracking in Decision Trees.
Chapter 12 Adversarial Search. (c) 2000, 2001 SNU CSE Biointelligence Lab2 Two-Agent Games (1) Idealized Setting  The actions of the agents are interleaved.
Lecture 10 Trees –Definiton of trees –Uses of trees –Operations on a tree.
Chapter 6 Binary Trees. 6.1 Trees, Binary Trees, and Binary Search Trees Linked lists usually are more flexible than arrays, but it is difficult to use.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
Artificial Intelligence Chapter 6 Robot Vision Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Chapter 3 Neural Networks Artificial Intelligence Chapter 3 Neural Networks Biointelligence Lab School of Computer Sci. & Eng.
Trees : Part 1 Section 4.1 (1) Theory and Terminology (2) Preorder, Postorder and Levelorder Traversals.
Agents that plan K. V. S. Prasad Notes for TIN171/DIT410 (Friday, 26 March 2010) Based on Nils Nilsson, “Artificial Intelligence: a new synthesis”, Morgan.
Artificial Intelligence Chapter 10 Planning, Acting, and Learning Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
1 Directed Graphs Chapter 8. 2 Objectives You will be able to: Say what a directed graph is. Describe two ways to represent a directed graph: Adjacency.
Chapter 10 Planning, Acting, and Learning. 2 Contents The Sense/Plan/Act Cycle Approximate Search Learning Heuristic Functions Rewards Instead of Goals.
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
Data Structures Lakshmish Ramaswamy. Tree Hierarchical data structure Several real-world systems have hierarchical concepts –Physical and biological systems.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Search in State Spaces Problem solving as search Search consists of –state space –operators –start state –goal states A Search Tree is an efficient way.
February 11, 2016Introduction to Artificial Intelligence Lecture 6: Search in State Spaces II 1 State-Space Graphs There are various methods for searching.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
February 9, 2016Introduction to Artificial Intelligence Lecture 5: Perception & Action 1 Frege Notes In order to use many of the Java math functions in.
1 Trees : Part 1 Reading: Section 4.1 Theory and Terminology Preorder, Postorder and Levelorder Traversals.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
Artificial Intelligence Chapter 19 Reasoning with Uncertain Information Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Code: BCA302 Data Structures with C Prof. (Dr.) Monalisa Banerjee By.
Artificial Intelligence Chapter 11 Alternative Search Formulations and Applications.
1 Traversal Algorithms  sequential polling algorithm  traversing connected networks (tree construction) complexity measures tree terminology tarry’s.
Plan Agents Chapter 7..
Chapter 6. Robot Vision.
Artificial Intelligence Chapter 12 Adversarial Search
Biointelligence Lab School of Computer Sci. & Eng.
Graphs Chapter 11 Objectives Upon completion you will be able to:
Artificial Intelligence Chapter 3 Neural Networks
Artificial Intelligence Chapter 2 Stimulus-Response Agents
Biointelligence Lab School of Computer Sci. & Eng.
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Haskell Tips You can turn any function that takes two inputs into an infix operator: mod 7 3 is the same as 7 `mod` 3 takeWhile returns all initial.
Artificial Intelligence Chapter 3 Neural Networks
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 10 Planning, Acting, and Learning
Artificial Intelligence Chapter 9 Heuristic Search
Artificial Intelligence Chapter 8 Uninformed Search
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 3 Neural Networks
Artificial Intelligence Chapter 7 Agents That Plan
Artificial Intelligence Chapter 3 Neural Networks
Artificial Intelligence Chapter 10 Planning, Acting, and Learning
Presentation transcript:

Artificial Intelligence Chapter 7 Agents That Plan Biointelligence Lab School of Computer Sci. & Eng. Seoul National University

(c) SNU CSE Biointelligence Lab2 7.1 Memory Versus Computation Memory-based implementation  The action is selected by designer.  Agent would require large amounts of memory.  Designer would require foresight in anticipating appropriate reactions for all possible situations. Computation-based implementation  It will reduce the agent’s memory requirements and the burden on the designer.  The designer specifies the computation instead of all possible situations.  These computations will take time

(c) SNU CSE Biointelligence Lab3 7.1 Memory Versus Computation (Cont’d) Computations  Predict the consequences of the actions possible in any given situation.  If these consequence-predicting computations could be automatically learned or evolved, the agent would be able to select appropriate actions even in those environments that a designer might not have been able to foresee.  An agent must have a model of the world it inhabits and models of the effects of its actions on its model of the world.

(c) SNU CSE Biointelligence Lab4 7.2 State-Space Graphs An example  Grid-space world containing 3 toy blocks (A, B, C).  All initially are on the floor.  The task is to stack blocks so that A is on top of B and B is on top of C and C is on the floor.  Instances of a schema  move(x, y) – x can be A, B, C and y can be A, B, C and floor.  Operators  move(A, C), move(A, B) …

(c) SNU CSE Biointelligence Lab5 Figure 7.1 Effects of Moving a Block 7.2 State-Space Graphs (Cont’d)

(c) SNU CSE Biointelligence Lab6 7.2 State-Space Graphs (Cont’d) Directed graph  A most useful structure for keeping track of the effects of several alternative sequences of actions.  Node  Representations of the individual worlds  Iconic or feature  Arc  Operators

(c) SNU CSE Biointelligence Lab7 7.2 State-Space Graphs (Cont’d) State-space graph  A graph representing all of the possible actions and situations  Any of the nodes in the graph can be taken to represent a goal situations.

(c) SNU CSE Biointelligence Lab8

9 7.2 State-Space Graphs (Cont’d) Plan  A sequence of the operators labeling the arcs along a path to a goal.  Planning is searching for such a sequence. Projecting  The process of predicting a sequence of world states resulting from a sequence of actions.

(c) SNU CSE Biointelligence Lab Searching Explicit State Spaces Search methods for explicit graphs involve propagating markers over the nodes of the graph.  Label the start node with a 0.  Propagate successively larger integers out in waves along the arcs until an integer hits the goal.  Trace a path back from the goal to the start along a decreasing sequence of numbers. Expansion  Puts marks on all of the marked node’s unmarked neighbors.

(c) SNU CSE Biointelligence Lab11 Figure 7.3 Stages of Search

(c) SNU CSE Biointelligence Lab Feature-Based State Spaces Feature-Based graphs need a way to describe how an action affects features.  STRIPS [Fikes & Nilsson, 1971]  Define an operator by 3 lists  Precondition list specifies those features that must have value 1 and 0 in order that the action can be applied.  Delete list specifies those features that will have their values changed from 1 to 0.  Add list specifies those features that will have their values changed from 0 to 1.

(c) SNU CSE Biointelligence Lab13 Neural Networks  Train a neural network to learn to predict the value of a feature vector at time t from its value at time t-1 and the action taken at time t-1. [Jordan & Rumelhart 1992]  After training, the prediction network can be used to compute the feature vectors that would result from various actions.  Computed features in turn could be used as new inputs to the network to predict the feature vector two steps ahead, and so on. 7.4 Feature-Based State Spaces (Cont’d)

(c) SNU CSE Biointelligence Lab14 Figure 7.4 Predicting a Feature Vector with a Neural Network

(c) SNU CSE Biointelligence Lab Graph Notation A graph consists of a set of nodes.  Arcs connect certain pairs of nodes.  A directed graph  Arcs are directed from one member of the pair to the other.  Successor (child)  Parent  An undirected graph  Edges are undirected arcs.  Contain only edges.

(c) SNU CSE Biointelligence Lab16 Figure 7.5 Graph and Tree Notation

(c) SNU CSE Biointelligence Lab Graph Notation (Cont’d) Tree is a special case of a graph.  A directed tree  A root node has no parent.  Each has exactly one parent except root.  A leaf node has no successors.  Depth of any node is defined to be the depth of its parent plus 1. ( The root node is of depth zero.)  An undirected tree  There is only one path along edges between any pair of nodes.

(c) SNU CSE Biointelligence Lab Graph Notation (Cont’d) A path of length k from node n 1 to node n k.  A sequence of nodes with each n i+1 a successor of n i for i=1,…,k-1 Accessible  Exist a path from one node to other node. Descent, Ancestor Optimal path  Path having minimal cost between two nodes. A spanning tree  A tree including all nodes in a graph