Vorlesung Grundlagen der Künstlichen Intelligenz

Similar documents
Vorlesung Grundlagen der Künstlichen Intelligenz

Vorlesung Grundlagen der Künstlichen Intelligenz

Contents. Foundations of Artificial Intelligence. General Algorithm. Best-First Search

Artificial Intelligence

Foundations of Artificial Intelligence

Artificial Intelligence

Foundations of Artificial Intelligence

Beyond Classical Search

ARTIFICIAL INTELLIGENCE. Informed search

3.6.2 Generating admissible heuristics from relaxed problems

Artificial Intelligence

Informed search algorithms. Chapter 4

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Searching. Assume goal- or utilitybased. Next task to achieve is to determine the best path to the goal

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Informed search algorithms. (Based on slides by Oren Etzioni, Stuart Russell)

TDDC17. Intuitions behind heuristic search. Recall Uniform-Cost Search. Best-First Search. f(n) =... + h(n) g(n) = cost of path from root node to n

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Artificial Intelligence

Informed Search. Best-first search. Greedy best-first search. Intelligent Systems and HCI D7023E. Romania with step costs in km

Beyond Classical Search

Gradient Descent. 1) S! initial state 2) Repeat: Similar to: - hill climbing with h - gradient descent over continuous space

Foundations of AI. 4. Informed Search Methods. Heuristics, Local Search Methods, Genetic Algorithms. Wolfram Burgard & Bernhard Nebel

2006/2007 Intelligent Systems 1. Intelligent Systems. Prof. dr. Paul De Bra Technische Universiteit Eindhoven

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018

Informed Search and Exploration

TDDC17. Intuitions behind heuristic search. Best-First Search. Recall Uniform-Cost Search. f(n) =... + h(n) g(n) = cost of path from root node to n

Foundations of AI. 4. Informed Search Methods. Heuristics, Local Search Methods, Genetic Algorithms

Informed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1

BEYOND CLASSICAL SEARCH

Informed search algorithms. Chapter 4

4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies

Informed Search and Exploration

Introduction to Computer Science and Programming for Astronomers

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

Informed Search and Exploration

CS 380: Artificial Intelligence Lecture #4

Last time: Problem-Solving

Problem Solving and Search

ARTIFICIAL INTELLIGENCE LECTURE 3. Ph. D. Lect. Horia Popa Andreescu rd year, semester 5

Artificial Intelligence p.1/49. n-queens. Artificial Intelligence p.2/49. Initial state: the empty board or a board with n random

Informed Search. Topics. Review: Tree Search. What is Informed Search? Best-First Search

Artificial Intelligence

Beyond Classical Search: Local Search. CMPSCI 383 September 23, 2011

Lecture 9. Heuristic search, continued. CS-424 Gregory Dudek

Chapters 3-5 Problem Solving using Search

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit

University of Waterloo Department of Electrical and Computer Engineering ECE 457A: Cooperative and Adaptive Algorithms Midterm Examination

Lecture Plan. Best-first search Greedy search A* search Designing heuristics. Hill-climbing. 1 Informed search strategies. Informed strategies

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

Midterm Examination CS540-2: Introduction to Artificial Intelligence

TDT4136 Logic and Reasoning Systems

Informed Search Algorithms. Chapter 4

SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY REPRESENTATION OF KNOWLEDGE PART A

Advanced A* Improvements

CS:4420 Artificial Intelligence

Robot Programming with Lisp

Heuristic Search. Heuristic Search. Heuristic Search. CSE 3401: Intro to AI & LP Informed Search

Downloaded from ioenotes.edu.np

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit

Hill Climbing. Assume a heuristic value for each assignment of values to all variables. Maintain an assignment of a value to each variable.

Heuristic (Informed) Search

Artificial Intelligence. 2. Informed Search

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on Artificial Intelligence,

DFS. Depth-limited Search

Solving Problems: Intelligent Search

Administrative. Local Search!

Spezielle Themen der Künstlichen Intelligenz

Set 3: Informed Heuristic Search. ICS 271 Fall 2017 Kalev Kask

CS 4700: Artificial Intelligence

Outline. Best-first search. Greedy best-first search A* search Heuristics Local search algorithms

N-Queens problem. Administrative. Local Search

mywbut.com Informed Search Strategies-II

Problem Solving: Informed Search

Local Search. CS 486/686: Introduction to Artificial Intelligence Winter 2016

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 19 January, 2018

CS 520: Introduction to Artificial Intelligence. Review

Artificial Intelligence

ITCS 6150 Intelligent Systems. Lecture 6 Informed Searches

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents

Artificial Intelligence

CS 331: Artificial Intelligence Local Search 1. Tough real-world problems

Artificial Intelligence (Heuristic Search)

Artificial Intelligence Informed search. Peter Antal Tadeusz Dobrowiecki

Solving Problem by Searching. Chapter 3

Artificial Intelligence

Review Search. This material: Chapter 1 4 (3 rd ed.) Read Chapter 18 (Learning from Examples) for next week

Local Search. CS 486/686: Introduction to Artificial Intelligence

Outline for today s lecture. Informed Search. Informed Search II. Review: Properties of greedy best-first search. Review: Greedy best-first search:

Chapter4. Tree Search (Reviewed, Fig. 3.9) Best-First Search. Search Strategies. Best-First Search (cont.-2) Best-First Search (cont.

Artificial Intelligence

Chapter S:II. II. Search Space Representation

Expert Systems (Graz) Heuristic Search (Klagenfurt) - Search -

Chapter3. Problem-Solving Agents. Problem Solving Agents (cont.) Well-defined Problems and Solutions. Example Problems.

Uninformed Search Strategies

Chapter 3. A problem-solving agent is a kind of goal-based agent. It decide what to do by finding sequences of actions that lead to desirable states.

Informed Search and Exploration

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 9 February, 2018

Transcription:

Vorlesung Grundlagen der Künstlichen Intelligenz Reinhard Lafrenz / Prof. A. Knoll Robotics and Embedded Systems Department of Informatics I6 Technische Universität München www6.in.tum.de lafrenz@in.tum.de 089-289-18136 Room 03.07.055 Wintersemester 2012/13 5.11.2012

Grundlagen der Künstlichen Intelligenz Techniques in Artificial Intelligence Chapter 3 Solving Problems by Searching: Informed (Heuristic) Search (cont d) R. Lafrenz Wintersemester 2012/13 5.11.2012

Finding heuristic functions What is a good heuristic function? 3 h 1 = number of tiles at wrong location h 2 = sum of distances between tiles and their goal location (Manhattan distance)

Empirical evaluation of different heuristics d = distance to goal Average over 100 instances 4

Effect of heuristic precision Effective branching factor: Let N = number of expanded nodes d = depth of solution in search space then b* is the branching factor of the uniform search tree with depth d and N nodes N+1 = 1 + b* + (b*) 2 + + (b*) d Dominance of heuristics h 1 dominate h 2, if for all nodes n is true that: h 1 (n) h 2 (n) This also means that A* with h 1 expands less nodes than h 2 on average 5

Choice of heuristics If possible, choose heuristics with higher values Needs to be admissible/consistent Check for calculation time of heuristics Example: h 1 and h 2 are heuristics for the 8-puzzle They also describe the exact path length for relaxed problems Relaxed problem solved by h 1 : Arbitrary jump of each field to the empty one Relaxed problem solved by h 2 : Any move (one step horizontally or vertically) is possible, even if position occupied 6

Choice of heuristics What if there is no unambiguously best heuristic? Assume, several (admissible/consistent) heuristics h 1, h 2, h m exist. How to choose? Combine all! h(n) = max (h 1 (n), h 2 (n), h m (n)) This takes the most precise one for each node. Given that h 1, h 2, h m are admissible/consistent. Does this also hold true for h? 7

Grundlagen der Künstlichen Intelligenz Techniques in Artificial Intelligence Chapter 4 Beyond Classical Search R. Lafrenz Wintersemester 2012/13 5.11.2012

Local search and optimization Up to now: systematic exploration of search spaces Keep track of alteranatives for each node along the path The path is the solution What if only the final state is of interest for the solution? Local search Examples: 9 8-queens problem VLSI design, TSP

Local search and optimization Define an objective function that evaluates states Use this function to optimize the search for a solution Idea: start with a random configuration and increase the solution stepwise Hill climbing 10

Hill climbing Define an objective function that evaluates states Goal: maximizing the objective function function HILL-CLIMBING(problem) returns a state that is a local maximum inputs: problem, a problem local variables: current, a node neighbor, a node current MAKE-NODE(problem.INITIAL-STATE) loop do neighbor a highest-valued successor of current if neighbor. VALUE current. VALUE then return current.state current neighbor end 11

Hill climbing: Example 8-queen problem Cost function: number of attacks Next state: Only one vertical move (queens remain in column) h=17 h=1 (local minimum) 12

Problems of local search Local maxima: algorithm returns a sub-optimal solution. Plateaus: algorithm can only explore randomly. Edges: similar to plateaus. 13

Problems of local search Local maxima: algorithm returns a sub-optimal solution. Plateaus: algorithm can only explore randomly. Edges: similar to plateaus. Solutions: Re-start, if no increase in performance Noise, random walk Restricted search: the last n operators cannot be applied Strategies (and their parameters) that perform successfully (on a certain type of problem) can in most cases only be determined empirically. 14

Simulated annealing Introduction of noise Imagine rough surface, shake the system to overcome local minima 15

Local beam search Restrict the nodes in memory to constant k Initialize list with k random nodes Explore all successors of all k nodes Take the best k nodes out of this list, according to optimization function and use them for next step Problem: concentration on small area (promising?) of the search space Updated list not with best k nodes, but with randomly chosen ones, based on a distribution given by the objective function 16

Genetic algorithms Evolution seems to be successful Idea: Similar to evolution, solutions are searched by applying operators like cross-over, mutation and selection to already successful solutions. Components: Encoding of configurations as string or bit-string Fitness" function that evaluates the goodness of a configuration Populations of configurations, initially random choice Example: 8 queens problem encoded as string of 8 digits. Fitness function is computed based on the number of non-attacks (28=7+6+5+ +1 for a solution) Population consists of the set of queen configurations. 17

Genetic algorithms: 8-queen problem Compute fitness for each configuration in population Choose two pairs for crossover, probability based on fitness Randomly choose crossover position for each pair Choose mutation with low probability 18

Genetic algorithms: 8-queen problem 19

Search with non-deterministic action results Result of an action can be unobservable (or partially) observable Result of an action can be non-deterministic No clear sequence of actions possible contingency plan or strategy 20

Search with non-deterministic action results Reconsider vacuum world with additional properties of the suck action: Somtimes also the other field is cleaned In case of a clean field, dirt may be released No unique result of an action, but a set of possible outcomes 21

Search with non-deterministic action results Describe contingency plan in form of result-dependent action sequence [action, result-dependent successor actions] Example: [SUCK, if state=5 then [RIGHT, SUCK] else []] These resulting if-then-else cascades lead to decision trees Two types of branching out possible Agent s own decision (what is the next action?) Depending of the (non-deterministic) outcome of an action 22

Search with non-deterministic action results Search trees can be described as tree with two types of nodes OR-nodes describe actions chosen by the agent AND-nodes describe possbile outcomes Alternating layers of nodes (OR,AND) in the search tree A solution to a problem is a subtree with A goal node at each leave An action for each OR node All branches of an AND-node included Several search strategies can be applied, e.g. depth-frist, Finding heuristic functions is more complicated 23 Estimation of costs for a contingency plan instead of an action sequence

Search with non-deterministic action results Possbile outcomes (AND node) Agent s choice (OR node) 24

Search with non-deterministic action results What if move actions fail? E.g. Right No acyclic solution anymore, search fails Introduce labels for parts of plans [SUCK, L 1 : RIGHT, if state=5 then L 1 else SUCK] or simply while state=5 do right 25

Search with non-deterministic action results 26

Summary Criteria for choosing good heuristics Local search and optimization Useful if only the final state is of interest Problem: local minima, plateaus, etc. Several algorithms: hill-climbing, simulated annealing, local beam search, genetic algorithms, etc. Search with non-deterministic action results Contingency plan instead of action sequence AND-OR-trees 27

No class on Friday, 9 th November 2012! When? 9-17h Where? Immatrikulationshalle Campus Stadtmitte 28