CSCI 5582 Artificial Intelligence. Today: 9/5. Review. Lecture 3 Jim Martin

Similar documents
Multimedia Application Effective Support of Education

Introduction to Simulation

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

Reinforcement Learning by Comparing Immediate Reward

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

GACE Computer Science Assessment Test at a Glance

MYCIN. The MYCIN Task

Learning goal-oriented strategies in problem solving

IMGD Technical Game Development I: Iterative Development Techniques. by Robert W. Lindeman

Seminar - Organic Computing

Planning with External Events

Lecture 1: Basic Concepts of Machine Learning

University of Groningen. Systemen, planning, netwerken Bosman, Aart

POLA: a student modeling framework for Probabilistic On-Line Assessment of problem solving performance

Ricochet Robots - A Case Study for Human Complex Problem Solving

Ericsson Wallet Platform (EWP) 3.0 Training Programs. Catalog of Course Descriptions

An Investigation into Team-Based Planning

Knowledge based expert systems D H A N A N J A Y K A L B A N D E

Executive Guide to Simulation for Health

Testing A Moving Target: How Do We Test Machine Learning Systems? Peter Varhol Technology Strategy Research, USA

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Exploration. CS : Deep Reinforcement Learning Sergey Levine

Generating Test Cases From Use Cases

Lecture 10: Reinforcement Learning

Writing Research Articles

Given a directed graph G =(N A), where N is a set of m nodes and A. destination node, implying a direction for ow to follow. Arcs have limitations

Math 181, Calculus I

Multiagent Simulation of Learning Environments

Decision Analysis. Decision-Making Problem. Decision Analysis. Part 1 Decision Analysis and Decision Tables. Decision Analysis, Part 1

Rover Races Grades: 3-5 Prep Time: ~45 Minutes Lesson Time: ~105 minutes

How to analyze visual narratives: A tutorial in Visual Narrative Grammar

Lecture 1: Machine Learning Basics

Discriminative Learning of Beam-Search Heuristics for Planning

Learning and Transferring Relational Instance-Based Policies

The Good Judgment Project: A large scale test of different methods of combining expert predictions

Probability and Game Theory Course Syllabus

BMBF Project ROBUKOM: Robust Communication Networks

WORK OF LEADERS GROUP REPORT

Thesis-Proposal Outline/Template

TUESDAYS/THURSDAYS, NOV. 11, 2014-FEB. 12, 2015 x COURSE NUMBER 6520 (1)

TABLE OF CONTENTS TABLE OF CONTENTS COVER PAGE HALAMAN PENGESAHAN PERNYATAAN NASKAH SOAL TUGAS AKHIR ACKNOWLEDGEMENT FOREWORD

Day 1 Note Catcher. Use this page to capture anything you d like to remember. May Public Consulting Group. All rights reserved.

Visual CP Representation of Knowledge

CSC200: Lecture 4. Allan Borodin

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

Self Study Report Computer Science

Modeling user preferences and norms in context-aware systems

OFFICE OF ENROLLMENT MANAGEMENT. Annual Report

A Study of the Effectiveness of Using PER-Based Reforms in a Summer Setting

a) analyse sentences, so you know what s going on and how to use that information to help you find the answer.

Telekooperation Seminar

Georgia Tech College of Management Project Management Leadership Program Eight Day Certificate Program: October 8-11 and November 12-15, 2007

Knowledge-Based - Systems

Using dialogue context to improve parsing performance in dialogue systems

A Genetic Irrational Belief System

RETURNING TEACHER REQUIRED TRAINING MODULE YE TRANSCRIPT

Learning Methods in Multilingual Speech Recognition

EECS 571 PRINCIPLES OF REAL-TIME COMPUTING Fall 10. Instructor: Kang G. Shin, 4605 CSE, ;

Language properties and Grammar of Parallel and Series Parallel Languages

Emergency Management Games and Test Case Utility:

Rule Learning With Negation: Issues Regarding Effectiveness

Axiom 2013 Team Description Paper

evans_pt01.qxd 7/30/2003 3:57 PM Page 1 Putting the Domain Model to Work

Notetaking Directions

Tutoring First-Year Writing Students at UNM

CS 100: Principles of Computing

(Sub)Gradient Descent

Evaluation of Usage Patterns for Web-based Educational Systems using Web Mining

Evaluation of Usage Patterns for Web-based Educational Systems using Web Mining

Teaching a Laboratory Section

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming.

Liquid Narrative Group Technical Report Number

Proof Theory for Syntacticians

Artificial Neural Networks written examination

Using the Attribute Hierarchy Method to Make Diagnostic Inferences about Examinees Cognitive Skills in Algebra on the SAT

How to make an A in Physics 101/102. Submitted by students who earned an A in PHYS 101 and PHYS 102.

Go fishing! Responsibility judgments when cooperation breaks down

A NEW ALGORITHM FOR GENERATION OF DECISION TREES

Welcome to ACT Brain Boot Camp

Evolutive Neural Net Fuzzy Filtering: Basic Description

THE ROLE OF TOOL AND TEACHER MEDIATIONS IN THE CONSTRUCTION OF MEANINGS FOR REFLECTION

Major Milestones, Team Activities, and Individual Deliverables

Designing A Computer Opponent for Wargames: Integrating Planning, Knowledge Acquisition and Learning in WARGLES

The lab is designed to remind you how to work with scientific data (including dealing with uncertainty) and to review experimental design.

Common Core State Standards

Learning Methods for Fuzzy Systems

Designing Autonomous Robot Systems - Evaluation of the R3-COP Decision Support System Approach

The 9 th International Scientific Conference elearning and software for Education Bucharest, April 25-26, / X

E C C. American Heart Association. Basic Life Support Instructor Course. Updated Written Exams. February 2016

EVOLVING POLICIES TO SOLVE THE RUBIK S CUBE: EXPERIMENTS WITH IDEAL AND APPROXIMATE PERFORMANCE FUNCTIONS

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

The Enterprise Knowledge Portal: The Concept

Laboratorio di Intelligenza Artificiale e Robotica

AQUA: An Ontology-Driven Question Answering System

Clouds = Heavy Sidewalk = Wet. davinci V2.1 alpha3

Laboratorio di Intelligenza Artificiale e Robotica

General Information about NMLS and Requirements of the ROC

ECE-492 SENIOR ADVANCED DESIGN PROJECT

Action Models and their Induction

Evidence for Reliability, Validity and Learning Effectiveness

Transcription:

CSCI 5582 Artificial Intelligence Lecture 3 Jim Martin CSCI 5582 Fall 2006 Page 1 Today: 9/5 Achieving goals as searching Some simple uninformed algorithms Issues and analysis Better uninformed methods CSCI 5582 Fall 2006 Page 2 Review What s a goal-based agent? CSCI 5582 Fall 2006 Page 3 1

Goal-based Agents What should a goal-based agent do when none of the actions it can currently perform results in a goal state? Choose an action that at least leads to a state that is closer to a goal than the current one is. CSCI 5582 Fall 2006 Page 4 Goal-based Agents Making that work can be tricky: What if one or more of the choices you make turn out not to lead to a goal? What if you re concerned with the best way to achieve some goal? What if you re under some kind of resource constraint? CSCI 5582 Fall 2006 Page 5 Problem Solving as Search One way to address these issues in a uniform framework is to view goalattainment as problem solving, and viewing that as a search through the space of possible solutions. CSCI 5582 Fall 2006 Page 6 2

Problem Solving A problem is characterized as: An initial state A set of actions (functions that map states to other states) A goal test A cost function (optional) CSCI 5582 Fall 2006 Page 7 What is a Solution? A sequence of actions that when performed will transform the initial state into a goal state Or sometimes just the goal state itself CSCI 5582 Fall 2006 Page 8 Framework We re going to cover three kinds of search in the next few weeks: Backtracking state-space search Optimization search Constraint-based search CSCI 5582 Fall 2006 Page 9 3

Backtracking State-Space Search CSCI 5582 Fall 2006 Page 10 Optimization Search CSCI 5582 Fall 2006 Page 11 Constraint Satisfaction Search Place N queens down on a chess board such that No queen attacks any other queen The goal state is the answer (the solution) The action sequence is irrelevant CSCI 5582 Fall 2006 Page 12 4

Really Most practical applications are a messy combination of all three types. Constraints need to be violated At some cost CU course/room scheduling Satellite experiment scheduling CSCI 5582 Fall 2006 Page 13 Abstractions States within a problem solver are abstractions of states of the world in which the agent is situated Actions in the search space are abstractions of the agents real actions Solutions map to sequences of real actions CSCI 5582 Fall 2006 Page 14 State Spaces The representation of states combined with the actions allowed to generate states defines the State Space Warning: Many of the examples we ll look at make it appear that the state space is a static data structure in the form of a graph. In reality, spaces are dynamically generated and potentially infinite CSCI 5582 Fall 2006 Page 15 5

Initial Assumptions The agent knows its current state Only the actions of the agent will change the world The effects of the agent s actions are known and deterministic All of these are defeasible That is they re likely to be wrong in real settings. CSCI 5582 Fall 2006 Page 16 Another Assumption Searching/problem-solving and acting are distinct activities First you search for a solution (in your head) then you execute it CSCI 5582 Fall 2006 Page 17 A Tip One major goal of this course is to make sure you grasp a set of algorithms closely associated with AI (so you can talk about them intelligently at parties) Most of the major sections of the course (and the book) introduce at least one such algorithm, along with some variants But they aren t labeled as such CSCI 5582 Fall 2006 Page 18 6

Some Algorithms Search Best-first A* Hill climbing Annealing MiniMax Logic Resolution Forward and backward chaining SAT algorithms Uncertainty Bayesian updating Viterbi search Learning DT learning Maximum Entropy SVM learning EM CSCI 5582 Fall 2006 Page 19 HW Notes There are three places you should check for Python info online: The tutorial The language reference The index Most of the problems people have are environment problems, not language problems. CSCI 5582 Fall 2006 Page 20 Email I sent mail to the course list It goes to your colorado.edu address If you didn t get it let me know. CSCI 5582 Fall 2006 Page 21 7

CAETE Students Hardcopy is not required for remote CAETE students Participation points will be based on email/phone communication Assignments/Quizzes are due 1 week after the in-class due date CSCI 5582 Fall 2006 Page 22 Generalized (Tree) Search Start by adding the initial state to an Agenda Loop If there are no states left then fail Otherwise choose a state to examine If it is a goal state return it Otherwise expand it and add the resulting states to the agenda CSCI 5582 Fall 2006 Page 23 Uninformed Techniques Breadth First Search Uniform Cost Search Depth First Search Depth-limiting searches CSCI 5582 Fall 2006 Page 24 8

Differences The only difference among BFS, DFS, and Uniform Cost searches is in the the management of the agenda The method for inserting elements into a queue But the method has huge implications in terms of performance CSCI 5582 Fall 2006 Page 25 Example Problem CSCI 5582 Fall 2006 Page 26 Example Problem You re in Arad (initial state) You want to be in Bucharest (goal) You can drive to adjacent cities (actions) Sequence of cities is the solution (where Arad is the first and Bucharest is the last) CSCI 5582 Fall 2006 Page 27 9

Search Criteria Completeness Does a method always find a solution when one exists? Time The time needed to find a solution in terms of some internal metric CSCI 5582 Fall 2006 Page 28 Search Criteria Space Memory needed to find a solution in terms of some internal metric Typically in terms of nodes stored Typically what we care about is the maximum or peak memory use Optimality When there is a cost function does the technique guarantee an optimal solution? CSCI 5582 Fall 2006 Page 29 Hints Completeness and optimality are attributes that an algorithm satisfies or it doesn t. Don t say things like more optimal or less optimal, or sort of complete. CSCI 5582 Fall 2006 Page 30 10

Breadth First Search Expand the shallowest unexpanded state That means older states are expanded before younger states I.e. A FIFO queue CSCI 5582 Fall 2006 Page 31 BFS Bucharest CSCI 5582 Fall 2006 Page 32 Terminology Branching factor (b) Average number of options at any given point in time Depth (d) (Partial) solution/path length CSCI 5582 Fall 2006 Page 33 11

BFS Analysis Completeness Does it always find a solution if one exists? YES If shallowest goal node is at some finite depth d Condition: If b is finite CSCI 5582 Fall 2006 Page 34 BFS Analysis Completeness: YES (if b is finite) Time complexity: Assume a state space where every state has b successors. root has b successors, each node at the next level has again b successors (total b 2 ), Assume solution is at depth d Worst case; expand all but the last node at depth d Total number of nodes generated: CSCI 5582 Fall 2006 Page 35 BFS Analysis Completeness: YES (if b is finite) Time complexity: Total numb. of nodes generated: Space complexity: Same as time if each node is retained in memory CSCI 5582 Fall 2006 Page 36 12

BFS Analysis Completeness YES (if b is finite) Time complexity Total numb. of nodes generated: Space complexity Same if each node is retained in memory Optimality Does it always find the least-cost solution? Only if all actions have same cost CSCI 5582 Fall 2006 Page 37 Uniform Cost Search How can we find the best path when we have actions with differing costs Expand nodes based on minimum cost options Maintain agenda as a priority queue based on cost CSCI 5582 Fall 2006 Page 38 Uniform-Cost Bucharest CSCI 5582 Fall 2006 Page 39 13

DFS Examine deeper nodes first That means nodes that have been more recently generated Manage queue with a LIFO strategy CSCI 5582 Fall 2006 Page 40 DFS Bucharest CSCI 5582 Fall 2006 Page 41 DFS Analysis Completeness; Does it always find a solution if one exists? NO unless search space is finite and no loops are possible CSCI 5582 Fall 2006 Page 42 14

DFS Analysis Completeness NO unless search space is finite. Time complexity Let s call m the maximum depth of the space Terrible if m is much larger than d (depth of optimal solution) CSCI 5582 Fall 2006 Page 43 DFS Analysis Completeness NO unless search space is finite. Time complexity Space complexity Stores the current path and the unexplored options generated along it. CSCI 5582 Fall 2006 Page 44 DFS Analysis Completeness NO unless search space is finite. Time complexity Space complexity Optimality No - Same issues as completeness CSCI 5582 Fall 2006 Page 45 15

Depth Limiting Methods Best of both DFS and BFS BFS is complete but has bad memory usage; DFS has nice memory behavior but doesn t guarantee completeness. So Start with some depth limit (say 0) Search for a solution using DFS If none found increment depth limit Search again CSCI 5582 Fall 2006 Page 46 ID-search, example Limit=0 CSCI 5582 Fall 2006 Page 47 ID-search, example Limit=1 CSCI 5582 Fall 2006 Page 48 16

ID-search, example Limit=2 CSCI 5582 Fall 2006 Page 49 ID-search, example Limit=3 CSCI 5582 Fall 2006 Page 50 Iterative Deepening Analysis Looks bad Does lots of work at a given level and then throws it all away and starts over. Is it really a problem? The work done in then end (the iteration where a solution is found) is the SUM of the work done on all proceeding levels. But how does the work change from level to level? CSCI 5582 Fall 2006 Page 51 17

Iterative Deepening If you Don t know the depth of likely solutions And the search space is large And you re uninformed Then an iterative deepening method is the way to go CSCI 5582 Fall 2006 Page 52 Uninformed? What is it that uninformed methods are uninformed about? CSCI 5582 Fall 2006 Page 53 Review Attaining goals involves reasoning about how to get to hypothetical states This can be formalized as a search All searches can be viewed as variations on a theme In practical applications, memory becomes a problem long before time does CSCI 5582 Fall 2006 Page 54 18

Next Time Start on Chapter 4 First assignment is due Thursday CSCI 5582 Fall 2006 Page 55 19