CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 5 Jim Martin.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Local Search Algorithms
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 4 Jim Martin.
1 Lecture 3: 18/4/1435 Uninformed search strategies Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
CSC344: AI for Games Lecture 5 Advanced heuristic search Patrick Olivier
Local search algorithms
Local search algorithms
Two types of search problems
Iterative improvement algorithms Prof. Tuomas Sandholm Carnegie Mellon University Computer Science Department.
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
Informed Search CSE 473 University of Washington.
Introduction to Artificial Intelligence Heuristic Search Ruth Bergman Fall 2002.
Review Best-first search uses an evaluation function f(n) to select the next node for expansion. Greedy best-first search uses f(n) = h(n). Greedy best.
CSC344: AI for Games Lecture 4: Informed search
Beyond Classical Search (Local Search) R&N III: Chapter 4
Informed Search Next time: Search Application Reading: Machine Translation paper under Links Username and password will be mailed to class.
Introduction to Simulated Annealing 22c:145 Simulated Annealing  Motivated by the physical annealing process  Material is heated and slowly cooled.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
1 CS 2710, ISSP 2610 R&N Chapter 4.1 Local Search and Optimization.
Informed Search Methods
Local Search and Optimization
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
INTRODUÇÃO AOS SISTEMAS INTELIGENTES Prof. Dr. Celso A.A. Kaestner PPGEE-CP / UTFPR Agosto de 2011.
An Introduction to Artificial Life Lecture 4b: Informed Search and Exploration Ramin Halavati In which we see how information.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
CS 484 – Artificial Intelligence1 Announcements Homework 2 due today Lab 1 due Thursday, 9/20 Homework 3 has been posted Autumn – Current Event Tuesday.
Informed search algorithms
Informed search algorithms
1 Shanghai Jiao Tong University Informed Search and Exploration.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
ISC 4322/6300 – GAM 4322 Artificial Intelligence Lecture 3 Informed Search and Exploration Instructor: Alireza Tavakkoli September 10, 2009 University.
1 CS 2710, ISSP 2610 Chapter 4, Part 2 Heuristic Search.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Artificial Intelligence for Games Online and local search
Local Search Algorithms
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
When A* doesn’t work CIS 391 – Intro to Artificial Intelligence A few slides adapted from CS 471, Fall 2004, UBMC (which were adapted from notes by Charles.
4/11/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005.
A General Introduction to Artificial Intelligence.
Feng Zhiyong Tianjin University Fall  Best-first search  Greedy best-first search  A * search  Heuristics  Local search algorithms  Hill-climbing.
Local search algorithms In many optimization problems, the state space is the space of all possible complete solutions We have an objective function that.
Announcement "A note taker is being recruited for this class. No extra time outside of class is required. If you take clear, well-organized notes, this.
Chapter 4 (Section 4.3, …) 2 nd Edition or Chapter 4 (3 rd Edition) Local Search and Optimization.
Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016.
Local Search Algorithms and Optimization Problems
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 5 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
Local Search and Optimization Chapter 4 Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld…) 1.
Local Search Algorithms CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
Constraints Satisfaction Edmondo Trentin, DIISM. Constraint Satisfaction Problems: Local Search In many optimization problems, the path to the goal is.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Local Search Algorithms
Artificial Intelligence (CS 370D)
ALGORITHMS.
More on Search: A* and Optimization
Artificial Intelligence
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
More on HW 2 (due Jan 26) Again, it must be in Python 2.7.
Local Search Algorithms
CSC 380: Design and Analysis of Algorithms
Local Search Algorithms
Presentation transcript:

CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 5 Jim Martin

CSCI 5582 Fall 2006 Today 9/12 Review informed searches Start on local, iterative improvement search

CSCI 5582 Fall 2006 Review How is the agenda ordered in the following searches? –Uniform Cost –Best First –A* –IDA*

CSCI 5582 Fall 2006 Review: A * search Idea: avoid expanding paths that are already expensive Evaluation function f(n) = g(n) + h(n) g(n) = cost so far to reach n h(n) = estimated cost from n to goal f(n) = estimated total cost of path through n to goal

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 A * search example

CSCI 5582 Fall 2006 Remaining Search Types Recall we have… –Backtracking state-space search –Optimization search –Constraint satisfaction search

CSCI 5582 Fall 2006 Optimization Sometimes referred to as iterative improvement or local search. We’ll talk about three simple but effective techniques: –Hillclimbing –Random Restart Hillclimbing –Simulated Annealing

CSCI 5582 Fall 2006 Optimization Framework Working with 1 state in memory –No agenda/queue/fringe… Usually Usually generating new states from this 1 state in an attempt to improve things Goal notion is slightly different –Normally solutions are easy to find –We can compare solutions and say one is better than another –Goal is usually an optimization of some function of the “solution” (cost).

CSCI 5582 Fall 2006 Numerical Optimization We’re not going to consider numerical optimization approaches… The approaches we’re considering here don’t have well-defined objective functions that can be used to do traditional optimization. But the techniques used are related

CSCI 5582 Fall 2006 Hill-climbing Search Generate nearby successor states to the current state based on some knowledge of the problem. Pick the best of the bunch and replace the current state with that one. Loop (until?)

CSCI 5582 Fall 2006 Hill-Climbing Search function HILL-CLIMBING(problem) return a state that is a local maximum input: problem, a problem local variables: current, a node. neighbor, a node. current  MAKE-NODE(INITIAL-STATE[problem]) loop do neighbor  a highest valued successor of current if VALUE [neighbor] ≤ VALUE[current] then return STATE[current] current  neighbor

CSCI 5582 Fall 2006 Hill-climbing Implicit in this scheme is the notion of a neighborhood that in some way preserves the cost behavior of the solution space… –Think about the TSP problem again –If I have a current tour what would a neighboring tour look like? This is a way of asking for a successor function.

CSCI 5582 Fall 2006 Hill-climbing Search The successor function is where the intelligence lies in hill-climbing search It has to be conservative enough to preserve significant “good” portions of the current solution And liberal enough to allow the state space to be preserved without degenerating into a random walk

CSCI 5582 Fall 2006 Hill-climbing search Problem: depending on initial state, can get stuck in various ways

CSCI 5582 Fall 2006 Break Questions? Python problems? My office hours are now –Tuesday 2 to 3:30 –Thursday 12:30 to 2 Go to cua.colorado.edu to view lectures (Windows and IE only)

CSCI 5582 Fall 2006 Quiz Alert The first quiz is on 9/21 (A week from Thursday) It will cover Chapters 3 to 6 –I’ll post a list of sections to pay close attention to I’ll post some past quizzes soon (remind me by )

CSCI 5582 Fall 2006 Local Maxima (Minima) Hill-climbing is subject to getting stuck in a variety of local conditions… Two solutions –Random restart hill-climbing –Simulated annealing

CSCI 5582 Fall 2006 Random Restart Hillclimbing Pretty obvious what this is…. –Generate a random start state –Run hill-climbing and store answer –Iterate, keeping the current best answer as you go –Stopping… when? Give me an optimality proof for it.

CSCI 5582 Fall 2006 Annealing Based on a metallurgical metaphor –Start with a temperature set very high and slowly reduce it. –Run hillclimbing with the twist that you can occasionally replace the current state with a worse state based on the current temperature and how much worse the new state is.

CSCI 5582 Fall 2006 Annealing More formally… –Generate a new neighbor from current state. –If it’s better take it. –If it’s worse then take it with some probability proportional to the temperature and the delta between the new and old states.

CSCI 5582 Fall 2006 Simulated annealing function SIMULATED-ANNEALING( problem, schedule) return a solution state input: problem, a problem schedule, a mapping from time to temperature local variables: current, a node. next, a node. T, a “temperature” controlling the probability of downward steps current  MAKE-NODE(INITIAL-STATE[problem]) for t  1 to ∞ do T  schedule[t] if T = 0 then return current next  a randomly selected successor of current ∆E  VALUE[next] - VALUE[current] if ∆E > 0 then current  next else current  next only with probability e ∆E /T

CSCI 5582 Fall 2006 Properties of simulated annealing search One can prove: If T decreases slowly enough, then simulated annealing search will find a global optimum with probability approaching 1 Widely used in VLSI layout, airline scheduling, etc

CSCI 5582 Fall 2006 Coming Up Thursday: Constraint satisfaction (Chapter 5) Tuesday: Game playing (Chapter 6) Thursday: Quiz