STRIPS HW 1: Blocks World
|
|
- Beatrice Sims
- 6 years ago
- Views:
Transcription
1 STRIPS HW 1: Blocks World Operator Precondition Delete List Add List Stack(x, y) CLEAR(y) CLEAR(y) HOLDING(x) HOLDING(x) ON(x, y) Unstack(x, y) ON(x, y) ON(x, y) HOLDING(x) CLEAR(x) CLEAR(y) PickUp(x) CLEAR(x) ONTABLE(x) HOLDING(x) ONTABLE(x) PutDown(x) HOLDING(x) HOLDING(x) ONTABLE(x) Difference Table Difference Operator Stack(x, y) PutDown(x) HOLDING(x) Unstack(x, y) PickUp(x) ONTABLE(x) PutDown(x) CLEAR(y) Unstack(x, y) ON(x, y) Stack (x, y) Initial state: ON(B, C) ON(C, D) CLEAR(B) ONT ABLE(D) HOLDING(A) Goal state: 1
2 STRIPS HW1: Planning Note that there are many possible plans. A computational planner will try operators in a fixed order; this will most likely lead to many dead ends and/or plans that are inefficient (e.g., blocks get unnecessarily stacked or unstacked, etc. This depends on how smart the planner is. We ve only considered the simplest approach with no plan remediation.). Also, goals will be placed on the stack in some fixed order, presumably in the order they are listed in a rule s preconditions. This will also lead to many variations. In the following, the smartest choice is always made, producing the most efficient plan. Start off with the goal on the goal stack and the operator stack empty: ARMEMP T Y ONT ABLE(A) Comments: The three goals on top are the predicates that are not true in the current world state that need to be true in the goal state. Considering the topmost goal, the planner looks at the difference table to see which operators can achieve ARMEMP T Y. There are two: P utdown and Stack. 3. Try HOLDIN G(A) () ONT ABLE(A) Comments: ARMEMP T Y is replaced with the precondition for. This goal is true in the world model, which means that can be successfully carried out. is placed on the operator stack, the goal is popped from the goal stack, the predcates in its delete list are removed from the world model, and the predicates in its add list are added. successful 2
3 4. ON T ABLE(A) Comments: ONT ABLE(A) becomes true as a result of the, so it is simply popped from the goal stack. 5. Try Stack(B, A) CLEAR(B) HOLDIN G(B) CLEAR(B) HOLDIN G(B) (Stack(B, A)) Comments: is replaced with the precondition for Stack(B, A). The topmost is already true, so it is popped. 6. Try HOLDIN G(B) CLEAR(A) HOLDIN G(B) (Stack(B, A)) Comments: Two operators from the difference table apply: P ickup and Unstack. If P ickup were tried first, its preconditions would not be met and a more tortuous plan would result, so we ll assume Unstack is chosen first. 3
4 7. ARMEMP T Y ON(B, C) ARMEMP T Y ON(B, C) (Unstack(B, C)) CLEAR(A) HOLDIN G(B) (Stack(B, A)) Comments: The goal is replaced with the preconditions of U nstack. Both are true in the world model, so Unstack succeeds. It will pushed onto the operator stack, and the world model will be updated using the add and delete list of Unstack. successful 8. CLEAR(A) HOLDIN G(B) (Stack(B, A)) World: ON(C, D) CLEAR(A) CLEAR(C) ONT ABLE(A) ONT ABLE(D) HOLDING(B) Comments: The preconditions for Stack are now met, so the Stack operation can be carried out. It is placed on the operator stack and the world model is updated using the add and delete lists of Stack. Stack(B, A) successful 9. Stack(B, A) World: ON(C, D) ON T ABLE(D) ON T ABLE(A) CLEAR(C) CLEAR(B) ARM EM P T Y Comments: The world and goal states are identical, so the goal stack is popped and our plan is the sequence of operations on the operator stack, in reverse order.. 4
5 10. Stack(B, A) World: ON(C, D) ON T ABLE(D) ON T ABLE(A) CLEAR(C) CLEAR(B) ARM EM P T Y 5
Artificial Intelligence
Artificial Intelligence Lecturer 7 - Planning Lecturer: Truong Tuan Anh HCMUT - CSE 1 Outline Planning problem State-space search Partial-order planning Planning graphs Planning with propositional logic
More informationcis32-ai lecture # 21 mon-24-apr-2006
cis32-ai lecture # 21 mon-24-apr-2006 today s topics: logic-based agents (see notes from last time) planning cis32-spring2006-sklar-lec21 1 What is Planning? Key problem facing agent is deciding what to
More informationPrimitive goal based ideas
Primitive goal based ideas Once you have the gold, your goal is to get back home s Holding( Gold, s) GoalLocation([1,1], s) How to work out actions to achieve the goal? Inference: Lots more axioms. Explodes.
More information1 What is Planning? automatic programming. cis716-spring2004-parsons-lect17 2
PLANNING 1 What is Planning? Key problem facing agent is deciding what to do. We want agents to be taskable: give them goals to achieve, have them decide for themselves how to achieve them. Basic idea
More informationCS 621 Artificial Intelligence. Lecture 31-25/10/05. Prof. Pushpak Bhattacharyya. Planning
CS 621 Artificial Intelligence Lecture 31-25/10/05 Prof. Pushpak Bhattacharyya Planning 1 Planning Definition : Planning is arranging a sequence of actions to achieve a goal. Uses core areas of AI like
More informationPlanning Algorithms Properties Soundness
Chapter MK:VI III. Planning Agent Systems Deductive Reasoning Agents Planning Language Planning Algorithms State-Space Planning Plan-Space Planning HTN Planning Complexity of Planning Problems Extensions
More informationICS 606. Intelligent Autonomous Agents 1
Intelligent utonomous gents ICS 606 / EE 606 Fall 2011 Nancy E. Reed nreed@hawaii.edu Lecture #4 Practical Reasoning gents Intentions Planning Means-ends reasoning The blocks world References Wooldridge
More informationPlanning in a Single Agent
What is Planning Planning in a Single gent Sattiraju Prabhakar Sources: Multi-agent Systems Michael Wooldridge I a modern approach, 2 nd Edition Stuart Russell and Peter Norvig Generate sequences of actions
More informationCOMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents. Dr Terry R. Payne Department of Computer Science
COMP310 Multi-Agent Systems Chapter 4 - Practical Reasoning Agents Dr Terry R. Payne Department of Computer Science Pro-Active Behaviour Previously we looked at: Characteristics of an Agent and its Environment
More informationLECTURE 4: PRACTICAL REASONING AGENTS. An Introduction to Multiagent Systems CIS 716.5, Spring 2010
LECTURE 4: PRACTICAL REASONING AGENTS CIS 716.5, Spring 2010 What is Practical Reasoning? Practical reasoning is reasoning directed towards actions the process of figuring out what to do: Practical reasoning
More informationIntelligent Systems. Planning. Copyright 2010 Dieter Fensel and Ioan Toma
Intelligent Systems Planning Copyright 2010 Dieter Fensel and Ioan Toma 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods 6 CommonKADS 7 Problem-Solving
More informationClassical Planning. CS 486/686: Introduction to Artificial Intelligence Winter 2016
Classical Planning CS 486/686: Introduction to Artificial Intelligence Winter 2016 1 Classical Planning A plan is a collection of actions for performing some task (reaching some goal) If we have a robot
More informationEMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY *
Iranian Journal of Science & Technology, Transaction B, Engineering, Vol. 29, No. B1 Printed in The Islamic Republic of Iran, 2005 Shiraz University EMPLOYING DOMAIN KNOWLEDGE TO IMPROVE AI PLANNING EFFICIENCY
More informationArtificial Intelligence
Artificial Intelligence CSC348 Unit 4: Reasoning, change and planning Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Artificial Intelligence: Lecture Notes
More informationPlanning. Some material taken from D. Lin, J-C Latombe
RN, Chapter 11 Planning Some material taken from D. Lin, J-C Latombe 1 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Inference [Ch 9] Implemented Systems
More informationBASIC PLAN-GENERATING SYSTEMS
CHAPTER 7 BASIC PLAN-GENERATING SYSTEMS In chapters 5 and 6 we saw that a wide class of deduction tasks could be solved by commutative production systems. For many other problems of interest in AI, however,
More informationComponents of a Planning System
Planning Components of a Planning System In any general problem solving systems, elementary techniques to perform following functions are required Choose the best rule (based on heuristics) to be applied
More informationScale-up Revolution in Automated Planning
Scale-up Revolution in Automated Planning (Or 1001 Ways to Skin a Planning Graph for Heuristic Fun & Profit) Subbarao Kambhampati http://rakaposhi.eas.asu.edu RIT; 2/17/06 With thanks to all the Yochan
More informationPlanning (What to do next?) (What to do next?)
Planning (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) (What to do next?) CSC3203 - AI in Games 2 Level 12: Planning YOUR MISSION learn about how to create
More informationCSE 3402: Intro to Artificial Intelligence Planning
CSE 3402: Intro to Artificial Intelligence Planning Readings: Russell & Norvig 3 rd edition Chapter 10 (in 2 nd edition, Sections 11.1, 11.2, and 11.4) 1 CWA Classical Planning. No incomplete or uncertain
More informationPlanning Chapter
Planning Chapter 11.1-11.3 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer Typical BW planning problem A C B A B C Blocks world The blocks world is a micro-world consisting of a
More informationCognitive Robotics 2016/2017
based on Manuela M. Veloso lectures on PLNNING, EXEUTION ND LERNING ognitive Robotics 2016/2017 Planning:, ctions and Goal Representation Matteo Matteucci matteo.matteucci@polimi.it rtificial Intelligence
More informationPlanning and Acting. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2
Planning and Acting CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2018, Semester 2 Summary We
More informationPlan Generation Classical Planning
Plan Generation Classical Planning Manuela Veloso Carnegie Mellon University School of Computer Science 15-887 Planning, Execution, and Learning Fall 2016 Outline What is a State and Goal What is an Action
More informationAutomated Planning. Plan-Space Planning / Partial Order Causal Link Planning
Automated Planning Plan-Space Planning / Partial Order Causal Link Planning Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University Partly adapted
More informationCreating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation
Creating Admissible Heuristic Functions: The General Relaxation Principle and Delete Relaxation Relaxed Planning Problems 74 A classical planning problem P has a set of solutions Solutions(P) = { π : π
More informationLECTURE 3: DEDUCTIVE REASONING AGENTS
Agent Architectures LECTURE 3: DEDUCTIVE REASONING AGENTS An Introduction to MultiAgent Systems http://www.csc.liv.ac.uk/~mjw/pubs/imas An agent is a computer system capable of flexible autonomous action
More informationPlanning (under complete Knowledge)
CSC384: Intro to Artificial Intelligence Planning (under complete Knowledge) We cover Sections11.1, 11.2, 11.4. Section 11.3 talks about partial-order planning, an interesting idea that hasn t really done
More information3. Knowledge Representation, Reasoning, and Planning
3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Planning vs.
More informationA deterministic action is a partial function from states to states. It is partial because not every action can be carried out in every state
CmSc310 Artificial Intelligence Classical Planning 1. Introduction Planning is about how an agent achieves its goals. To achieve anything but the simplest goals, an agent must reason about its future.
More informationCPS 270: Artificial Intelligence Planning
CPS 270: Artificial Intelligence http://www.cs.duke.edu/courses/fall08/cps270/ Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent
More information3. Knowledge Representation, Reasoning, and Planning
3. Knowledge Representation, Reasoning, and Planning 3.1 Common Sense Knowledge 3.2 Knowledge Representation Networks 3.3 Reasoning Propositional Logic Predicate Logic: PROLOG 3.4 Planning Introduction
More informationUsing Temporal Logics to Express Search Control Knowledge for Planning Λ
Using Temporal Logics to Express Search Control Knowledge for Planning Λ Fahiem Bacchus Dept. Of Computer Science University of Toronto Toronto, Ontario Canada, M5S 3G4 fbacchus@logos.uwaterloo.ca Froduald
More informationPlanning. Introduction
Introduction vs. Problem-Solving Representation in Systems Situation Calculus The Frame Problem STRIPS representation language Blocks World with State-Space Search Progression Algorithms Regression Algorithms
More informationArtificial Intelligence Sheet II
Artificial Intelligence Sheet II D W Murray Hilary 1993 Q1 (a) Write the following blocks world axioms into Conjunctive Normal Form: x y [ On(x,y) Above(x,y)] x y z [Above(x,y) Above(y,z) Above(x,z)] x
More informationArtificial Intelligence. Planning
Artificial Intelligence Planning Planning Planning agent Similar to previous problem solving agents Constructs plans that achieve its goals, then executes them Differs in way it represents and searches
More informationArtificial Intelligence 2004 Planning: Situation Calculus
74.419 Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations actions axioms Review Planning 1 STRIPS (Nils J. Nilsson)
More informationPlanning. Chapter 10 of the textbook. Acknowledgement: Thanks to Sheila McIlraith for the slides.
Planning Chapter 10 of the textbook. Acknowledgement: Thanks to Sheila McIlraith for the slides. 1 plan n. 1. A scheme, program, or method worked out beforehand for the accomplishment of an objective:
More informationIntelligent Agents. State-Space Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 14.
Intelligent Agents State-Space Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 14. April 2016 U. Schmid (CogSys) Intelligent Agents last change: 14. April
More informationArtificial Intelligence Planning
Artificial Intelligence Planning Instructor: Vincent Conitzer Planning We studied how to take actions in the world (search) We studied how to represent objects, relations, etc. (logic) Now we will combine
More informationArtificial Intelligence (Künstliche Intelligenz 1) Part IV: Planning & Acting
Kohlhase: KI 1: Planning & Acting 25 July 12, 2018 Artificial Intelligence (Künstliche Intelligenz 1) Part IV: Planning & Acting Michael Kohlhase Professur für Wissensrepräsentation und -verarbeitung Informatik,
More informationAssociate Professor Dr. Raed Ibraheem Hamed
Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 1 What this Lecture is about: Stack Structure Stack
More informationPlanning plan Synonyms: plan Synonyms:
Planning This material is covered in R&N 2 nd edition chapters 10.3, 11.1, 11.2, 11.4 This material is covered in R&N 3 rd edition chapter 10 plan n. 1. A scheme, program, or method worked out beforehand
More informationCognitive Robotics. Planning: Plan Domain Description Language. Matteo Matteucci
Cognitive Robotics Planning: Plan Domain Description Language Matteo Matteucci matteo.matteucci@polimi.it Artificial Intelligence and Robotics Lab - Politecnico di Milano Planning Problems in Artificial
More informationThe STRIPS Subset of PDDL for the Learning Track of IPC-08
The STRIPS Subset of PDDL for the Learning Track of IPC-08 Alan Fern School of Electrical Engineering and Computer Science Oregon State University April 9, 2008 This document defines two subsets of PDDL
More informationPlanning. Introduction to Planning. Failing to plan is planning to fail! Major Agent Types Agents with Goals. From Problem Solving to Planning
Introduction to Planning Planning Failing to plan is planning to fail! Plan: a sequence of steps to achieve a goal. Problem solving agent knows: actions, states, goals and plans. Planning is a special
More informationAUTOMATED PLANNING Automated Planning sequence of actions goal
AUTOMATED PLANNING Automated Planning is an important problem solving activity which consists in synthesizing a sequence of actions performed by an agent that leads from an initial state of the world to
More informationCognitive Robotics Introduction Matteo Matteucci
Cognitive Robotics Introduction About me and my lectures Lectures given by Matteo Matteucci +39 02 2399 3470 matteo.matteucci@polimi.it http://www.deib.polimi.it/people/matteucci Research Topics (several
More information1. Prolog [30] 2. Search [26] 3. Rule Based Systems [30] 4. Planning [35] 5. Natural Language Processing [23] 6. Machine Learning [36]
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wānanga o te Ūpoko o te Ika a Māui EXAMINATIONS 2004 END-YEAR COMP 307 ARTIFICIAL INTELLIGENCE Time Allowed: 3 Hours Instructions: There are a total of 180 marks
More informationPlanning, Execution & Learning 1. Heuristic Search Planning
Planning, Execution & Learning 1. Heuristic Search Planning Reid Simmons Planning, Execution & Learning: Heuristic 1 Simmons, Veloso : Fall 2001 Basic Idea Heuristic Search Planning Automatically Analyze
More informationWhere are we? Informatics 2D Reasoning and Agents Semester 2, Planning with state-space search. Planning with state-space search
Informatics 2D Reasoning and Agents Semester 2, 2018 2019 Alex Lascarides alex@inf.ed.ac.uk Where are we? Last time... we defined the planning problem discussed problem with using search and logic in planning
More informationAction-Model Acquisition from Noisy Plan Traces
Action-Model Acquisition from Noisy Plan Traces Hankz Hankui Zhuo and Subbarao Kambhampati Dept. of Computer Science, Sun Yat-sen University, Guangzhou, China zhuohank@mail.sysu.edu.cn Dept. of Computer
More informationPlanning. Outline. Planning. Planning
Planning Outline Jacky Baltes University of Manitoba jacky@cs.umanitoba.ca http://www4.cs.umanitoba.ca/~jacky/teaching/co urses/comp_4190-artificial-intelligence Reasoning about actions STRIPS representation
More informationSection 9: Planning CPSC Artificial Intelligence Michael M. Richter
Section 9: Planning Actions (1) An action changes a situation and their description has to describe this change. A situation description (or a state) sit is a set of ground atomic formulas (sometimes literals
More informationMonday, November 13, 2017
Monday, November 13, 2017 Topics for today ode generation nalysis lgorithm 1: evaluation of postfix lgorithm 2: infix to postfix lgorithm 3: evaluation of infix lgorithm 4: infix to tree nalysis We are
More informationCSC2542 Domain-Customized Planning
CSC2542 Domain-Customized Planning Sheila McIlraith Department of Computer Science University of Toronto Fall 2010 S. McIlraith Domain-Customized Planning 1 Administrative Notes The placement of this material
More informationSet 9: Planning Classical Planning Systems. ICS 271 Fall 2013
Set 9: Planning Classical Planning Systems ICS 271 Fall 2013 Outline: Planning Classical Planning: Situation calculus PDDL: Planning domain definition language STRIPS Planning Planning graphs Readings:
More informationModel-Lite Case-Based Planning
Proceedings of the Twenty-Seventh AAAI Conference on Artificial Intelligence Model-Lite Case-Based Planning Hankz Hankui Zhuo a, Tuan Nguyen b, and Subbarao Kambhampati b a Dept. of Computer Science, Sun
More informationEfficient Planning with State Trajectory Constraints
Efficient Planning with State Trajectory Constraints Stefan Edelkamp Baroper Straße 301 University of Dortmund email: stefan.edelkamp@cs.uni-dortmund.de Abstract. This paper introduces a general planning
More informationOn the Extraction, Ordering, and Usage of Landmarks in Planning
Proceedings of the Sixth European Conference on Planning On the Extraction, Ordering, and Usage of Landmarks in Planning Julie Porteous Department of Computer Science The University of Durham Durham, UK
More informationDomain-Configurable Planning: Hierarchical Task Networks
Automated Planning Domain-Configurable Planning: Hierarchical Task Networks Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University jonas.kvarnstrom@liu.se
More informationOutline. Stacks. 1 Chapter 5: Stacks and Queues. favicon. CSI33 Data Structures
Outline Chapter 5: and Queues 1 Chapter 5: and Queues Chapter 5: and Queues The Stack ADT A Container Class for Last-In-First-Out Access A stack is a last in, first out (LIFO) structure, i.e. a list-like
More informationPlanning. Planning. What is Planning. Why not standard search?
Based on slides prepared by Tom Lenaerts SWITCH, Vlaams Interuniversitair Instituut voor Biotechnologie Modifications by Jacek.Malec@cs.lth.se Original slides can be found at http://aima.cs.berkeley.edu
More informationSilvia Rossi! Planning. Lezione n.! Corso di Laurea:! Informatica! Insegnamento:! Sistemi! multi-agente! ! A.A !
Silvia Rossi! Planning 4 Lezione n.! Corso di Laurea:! Informatica! Insegnamento:! Sistemi! multi-agente! Email:! silrossi@unina.it! A.A. 2014-2015! Agent Planning! (R&N:11.1,11.2) Additional reading:
More informationRegister Allocation. Global Register Allocation Webs and Graph Coloring Node Splitting and Other Transformations
Register Allocation Global Register Allocation Webs and Graph Coloring Node Splitting and Other Transformations Copyright 2015, Pedro C. Diniz, all rights reserved. Students enrolled in the Compilers class
More informationSTACKS. A stack is defined in terms of its behavior. The common operations associated with a stack are as follows:
STACKS A stack is a linear data structure for collection of items, with the restriction that items can be added one at a time and can only be removed in the reverse order in which they were added. The
More informationSolving Complex Planning Tasks Through Extraction of Subproblems
From: AIPS 1998 Proceedings. Copyright 1998, AAAI (www.aaai.org). All rights reserved. Solving Complex Planning Tasks Through Extraction of Subproblems Jana Koehler Institute for Computer Science Albert
More informationCS 171: Introduction to Computer Science II. Stacks. Li Xiong
CS 171: Introduction to Computer Science II Stacks Li Xiong Today Stacks operations and implementations Applications using stacks Application 1: Reverse a list of integers Application 2: Delimiter matching
More informationA Correct Algorithm for Efficient Planning with Preprocessed Domain Axioms
In Bramer, M., Preece, A.& Coenen, F. (eds.), Research and Development in Intelligent Systems XVII (Proc. of ES-2000), pp.363-374. Springer-Verlag, 2001. A Correct Algorithm for Efficient Planning with
More informationA Unified Framework for Explanation-Based Generalization of Partially Ordered and Partially Instantiated Plans
A Unified Framework for Explanation-Based Generalization of Partially Ordered and Partially Instantiated Plans Subbarao Kambhampati y Department of Computer Science and Engineering Arizona State University
More informationLecture 10: Planning and Acting in the Real World
Lecture 10: Planning and Acting in the Real World CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA Apr 11, 2018 Amarda Shehu (580) 1 1 Outline
More informationArtificial Intelligence II
Artificial Intelligence II 2013/2014 - Prof: Daniele Nardi, Joachim Hertzberg Exercitation 3 - Roberto Capobianco Planning: STRIPS, Partial Order Plans, Planning Graphs 1 STRIPS (Recap-1) Start situation;
More informationCommitment Least you haven't decided where to go shopping. Or...suppose You can get milk at the convenience store, at the dairy, or at the supermarket
Planning as Search-based Problem Solving? Imagine a supermarket shopping scenario using search-based problem solving: Goal: buy milk and bananas Operator: buy Heuristic function: does = milk
More informationCS24 Week 8 Lecture 1
CS24 Week 8 Lecture 1 Kyle Dewey Overview Tree terminology Tree traversals Implementation (if time) Terminology Node The most basic component of a tree - the squares Edge The connections between nodes
More informationLL(k) Parsing. Predictive Parsers. LL(k) Parser Structure. Sample Parse Table. LL(1) Parsing Algorithm. Push RHS in Reverse Order 10/17/2012
Predictive Parsers LL(k) Parsing Can we avoid backtracking? es, if for a given input symbol and given nonterminal, we can choose the alternative appropriately. his is possible if the first terminal of
More informationFormal Languages and Automata Theory, SS Project (due Week 14)
Formal Languages and Automata Theory, SS 2018. Project (due Week 14) 1 Preliminaries The objective is to implement an algorithm for the evaluation of an arithmetic expression. As input, we have a string
More informationLECTURE 17 GRAPH TRAVERSALS
DATA STRUCTURES AND ALGORITHMS LECTURE 17 GRAPH TRAVERSALS IMRAN IHSAN ASSISTANT PROFESSOR AIR UNIVERSITY, ISLAMABAD STRATEGIES Traversals of graphs are also called searches We can use either breadth-first
More informationBenchmarking of Automated Planners: which Planner suits you best?
Benchmarking of Automated Planners: which Planner suits you best? Wim Florijn University of Twente P.O. Box 217, 7500AE Enschede The Netherlands w.j.florijn@student.utwente.nl ABSTRACT Benchmarking provides
More informationTransition-based dependency parsing
Transition-based dependency parsing Syntactic analysis (5LN455) 2014-12-18 Sara Stymne Department of Linguistics and Philology Based on slides from Marco Kuhlmann Overview Arc-factored dependency parsing
More informationThesis Proposal: Logical Interactive Programming for Narrative Worlds
Thesis Proposal: Logical Interactive Programming for Narrative Worlds Chris Martens November 11, 2013 Abstract We present a logical theory of specifying interactive and reactive systems, particularly as
More informationCSI33 Data Structures
Outline Department of Mathematics and Computer Science Bronx Community College October 25, 2017 Outline Outline 1 Chapter 8: A C++ Introduction For Python Programmers Function Details Assert Statements
More informationLevel 0. Level 1. Goal level
Fast Planning through Greedy Action Graphs Alfonso Gerevini and Ivan Serina Dipartimento di Elettronica per l'automazione Universita di Brescia, Via Branze 38, 25123 Brescia, Italy fgerevini,serinag@ing.unibs.it
More informationSterling Federal Systems and Dept. of Computer Science
Subbarao Karnbhampati* Center for Design Research Sterling Federal Systems and Dept. of Computer Science AI Research Branch Stanford University NASA AMES Research Center Bldg 530, Duena Street, Stanford
More informationA Parametric Hierarchical Planner for Experimenting Abstraction Techniques
A Parametric Hierarchical Planner for Experimenting Abstraction Techniques Giuliano Armano, Giancarlo Cherchi, Eloisa Vargiu Department of Electrical and Electronical Engineering University of Cagliari
More informationApplying Search Based Probabilistic Inference Algorithms to Probabilistic Conformant Planning: Preliminary Results
Applying Search Based Probabilistic Inference Algorithms to Probabilistic Conformant Planning: Preliminary Results Junkyu Lee *, Radu Marinescu ** and Rina Dechter * * University of California, Irvine
More informationToday's Topics. Last Time Modelling Scopes and Visibility The Run Stack, the Dynamic Pointer Stack, the Display (LL,ON) addressing
Today's Topics Last Time Modelling Scopes and Visibility The Run Stack, the Dynamic Pointer Stack, the (LL,ON) addressing Today Maintaining the Kinds of parameters and parameter passing (LL,ON) Address
More informationDoes Representation Matter in the Planning Competition?
Does Representation Matter in the Planning Competition? Patricia J. Riddle Department of Computer Science University of Auckland Auckland, New Zealand (pat@cs.auckland.ac.nz) Robert C. Holte Computing
More informationStack -- Memory which holds register contents. Will keep the EIP of the next address after the call
Call without Parameter Value Transfer What are involved? ESP Stack Pointer Register Grows by 4 for EIP (return address) storage Stack -- Memory which holds register contents Will keep the EIP of the next
More informationSegmentation in Assembly Language Programming
1 2 Segmentation in General Segmentation in Assembly Language Programming UNIX programs have 3 segments Text segment Executable machine instructions Data segment Initialized data BSS segment (Block Started
More informationFrom Bing.com on Nov
Functions From Bing.com on Nov 8. 017 We re going to look at some common patterns / algorithms for using an array The idea is that you first understand these Then you can apply them elsewhere And modify
More informationregister allocation saves energy register allocation reduces memory accesses.
Lesson 10 Register Allocation Full Compiler Structure Embedded systems need highly optimized code. This part of the course will focus on Back end code generation. Back end: generation of assembly instructions
More informationCMPT 225. Lecture 9 Stack
CMPT 225 Lecture 9 Stack 1 Last Lecture We did an activity about Stack 2 Learning Outcomes 3 At the end of this lecture (and the activity), a student will be able to: Describe Stack Define public interface
More informationGPS: The general problem solver. developed in 1957 by Alan Newel and Herbert Simon. (H. Simon, 1957)
GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon (H. Simon, 1957) GPS: The general problem solver developed in 1957 by Alan Newel and Herbert Simon - Was the first program
More informationLECTURE 11 TREE TRAVERSALS
DATA STRUCTURES AND ALGORITHMS LECTURE 11 TREE TRAVERSALS IMRAN IHSAN ASSISTANT PROFESSOR AIR UNIVERSITY, ISLAMABAD BACKGROUND All the objects stored in an array or linked list can be accessed sequentially
More informationCMPSCI 250: Introduction to Computation. Lecture #14: Induction and Recursion (Still More Induction) David Mix Barrington 14 March 2013
CMPSCI 250: Introduction to Computation Lecture #14: Induction and Recursion (Still More Induction) David Mix Barrington 14 March 2013 Induction and Recursion Three Rules for Recursive Algorithms Proving
More informationMonday, November 9, 2015
Monday, November 9, 2015 Topics for today Grammars and Languages (Chapter 7) Finite State Machines Semantic actions Code generation - Overview nalysis lgorithm 1: evaluation of postfix lgorithm 2: infix
More informationLL(1) predictive parsing
LL(1) predictive parsing Informatics 2A: Lecture 11 John Longley School of Informatics University of Edinburgh jrl@staffmail.ed.ac.uk 13 October, 2011 1 / 12 1 LL(1) grammars and parse tables 2 3 2 / 12
More informationRecursive Definitions
Recursion Objectives Explain the underlying concepts of recursion Examine recursive methods and unravel their processing steps Explain when recursion should and should not be used Demonstrate the use of
More information(defvar *state* nil "The current state: a list of conditions.")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; GPS engine for blocks world ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defvar *dbg-ids* nil "Identifiers used by dbg") (defvar *state* nil "The current state: a list of conditions.")
More informationSTACKS AND QUEUES. Problem Solving with Computers-II
STACKS AND QUEUES Problem Solving with Computers-II 2 Stacks container class available in the C++ STL Container class that uses the Last In First Out (LIFO) principle Methods i. push() ii. iii. iv. pop()
More information