Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Local Search Algorithms
LOCAL SEARCH AND CONTINUOUS SEARCH. Local search algorithms  In many optimization problems, the path to the goal is irrelevant ; the goal state itself.
1 Lecture 3: 18/4/1435 Uninformed search strategies Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
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.
CS 460 Spring 2011 Lecture 3 Heuristic Search / Local Search.
CS 4700: Foundations of Artificial Intelligence
Trading optimality for speed…
Adapted by Doug Downey from Bryan Pardo Fall 2007 Machine Learning EECS 349 Machine Learning Lecture 4: Greedy Local Search (Hill Climbing)
Introduction to Artificial Intelligence Heuristic Search Ruth Bergman Fall 2002.
CSC344: AI for Games Lecture 4: Informed search
Beyond Classical Search (Local Search) R&N III: Chapter 4
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 5 Jim Martin.
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.
1 CS 2710, ISSP 2610 R&N Chapter 4.1 Local Search and Optimization.
Constraint Satisfaction Problems
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.
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.
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,
G5BAIM Artificial Intelligence Methods Graham Kendall Hill Climbing.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
Chapter 4 Informed Search and Exploration. Outline Informed (Heuristic) search strategies  (Greedy) Best-first search  A* search (Admissible) Heuristic.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
Local Search and Optimization Presented by Collin Kanaley.
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.
Local Search Algorithms and Optimization Problems
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.
Department of Computer Science Lecture 5: Local Search
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.
Department of Computer Science
Local Search Algorithms
Artificial Intelligence (CS 370D)
Local Search and Optimization
Informed search algorithms
Artificial Intelligence
First Exam 18/10/2010.
Local Search Algorithms
CSC 380: Design and Analysis of Algorithms
Local Search Algorithms
Presentation transcript:

Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016

 In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution  State space = set of configurations  Find a configuration satisfying your constraints, e.g., n-queens  In such cases, we can use local search algorithms  Keep a single "current" state, and then shift states, but don’t keep track of paths.  Use very limited memory  Find reasonable solutions in large state spaces. 24 February

 Local search algorithms are useful for solving optimization problems  Find the best possible state according to a given objective function  Optimize the number of products purchased by an E-Commerce user  State: Action taken by the user plus the resulting page-view  No track is kept of the path costs between the states  All that is seen is whether the user is buying more products (or not). 24 February

4

 "Like climbing Everest in thick fog with amnesia“  A loop that continually moves in the direction of increasing value, i.e., uphill  Terminates when it reaches a peak where no neighbor has a higher value  Fog with Amnesia: Doesn’t look ahead beyond the immediate neighbors of the current state. 24 February

6

Pick a random point in the search space 2.Consider all the neighbors of the current state 3.Choose the neighbor with the best quality and move to that state 4.Repeat 2 thru 4 until all the neighboring states are of lower quality 5.Return the current state as the solution state. 24 February

 Greedy Local Search: grabs a good neighbor state without thinking about where to go next  However, greedy algos do make good progress generally towards the solution  Unfortunately, hill-climbing  Can get stuck in local maxima  Can be stuck by ridges (a series of local maxima that occur close together)  Can be stuck by plateaux (a flat area in the state space landscape)  Shoulder: if the flat area rises uphill later on  Flat local maximum: no uphill rise exists. 24 February

 Stochastic Hill Climbing: Chooses at random from amongst the uphill moves, based on a probability distribution  First-choice Hill Climbing: Implements stochastic HC by generating successors randomly until one is generated that is better than the current state  Random-restart Hill Climbing: Selects a series of initial nodes randomly until the solution is found. 24 February

 Idea: escape local maxima by allowing some "bad" moves but gradually decrease their frequency

Simulated annealing search  If Value[Next] is close to Value[Current], the assignment is more likely to be accepted.  If the temperature is high, the exponent will be close to zero, and the probability will be close to 1.  As the temperature approaches zero, the exponent approaches -∞, and the probability approaches zero.

 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.

13 24 February 2016