Department of Computer Science

Slides:



Advertisements
Similar presentations
Local Search and Optimization
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.
For Friday Finish chapter 5 Program 1, Milestone 1 due.
Local search algorithms
Local search algorithms
Heuristic Optimization Athens 2004 Department of Architecture and Technology Universidad Politécnica de Madrid Víctor Robles
Iterative improvement algorithms Prof. Tuomas Sandholm Carnegie Mellon University Computer Science Department.
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.
MAE 552 – Heuristic Optimization Lecture 10 February 13, 2002.
Informed Search Chapter 4 Adapted from materials by Tim Finin, Marie desJardins, and Charles R. Dyer CS 63.
Informed Search Next time: Search Application Reading: Machine Translation paper under Links Username and password will be mailed to class.
1 CS 2710, ISSP 2610 R&N Chapter 4.1 Local Search and Optimization.
Local Search and Optimization
Informed Search Chapter 4 (b)
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.
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.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
Local Search Algorithms
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
CHAPTER 4, Part II Oliver Schulte Summer 2011 Local Search.
For Friday Finish chapter 6 Program 1, Milestone 1 due.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
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.
Local search algorithms In many optimization problems, the state space is the space of all possible complete solutions We have an objective function that.
Optimization Problems
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
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.
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.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Informed Search Chapter 4 (b)
Optimization Problems
Optimization via Search
Informed Search Chapter 4 (b)
CSCI 4310 Lecture 10: Local Search Algorithms
Informed Search Chapter 4 (b)
Heuristic Optimization Methods
For Monday Chapter 6 Homework: Chapter 3, exercise 7.
Department of Computer Science
Local Search Algorithms
Computer Science cpsc322, Lecture 14
Artificial Intelligence (CS 370D)
Heuristic search INT 404.
Local Search and Optimization
Optimization Problems
CSE 4705 Artificial Intelligence
CS Fall 2016 (Shavlik©), Lecture 9, Week 5
Informed Search Chapter 4 (b)
School of Computer Science & Engineering
Informed search algorithms
More on Search: A* and Optimization
Artificial Intelligence
Lecture 9 Administration Heuristic search, continued
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.
First Exam 18/10/2010.
Local Search Algorithms
Local Search Algorithms
Presentation transcript:

Department of Computer Science Lecture 5 Local Search Yaohang Li Department of Computer Science ODU Reading for Next Class: Chapter 3, Russell and Norvig

Review Last Class This Class Next Class Informed Search Heuristic Functions A* Search This Class Local Search Hill-Climbing Next Class Evolutionary Computing

Local Search and Optimization Problems The search algorithms we discussed before Goal Find the path to the goal that constitutes a solution to the problem Many problems The path to the goal is irrelevant Another category of search problem Local Search Problem Never worry about the path Just want the goal Examples VLSI Design Factory-floor layout Automatic programming Telecommunications network optimization Protein folding

Local Search Algorithm Objective (Fitness) Function f(x) All local search problems have an objective function to specify how “good” a state is Strategy Keep only a single (complete) state in memory Generate only the neighbours of that state Keep one of the neighbours and discard others Two key advantages Very little memory required Often find reasonable solutions in large or infinite state spaces Usage Pure optimization problem Find the best state according to an objective function

State Space Landscape Global minimum Global maximum The lowest valley The highest peak

2-D State Space

Hill Climbing Algorithm Moves Only permit to move to neighbors that improve f(xnow) Choice Choose xnextNeighbor(xnow) that f(xnow)<f(xnext) Termination If no xnext can be found

Hill-climbing: 8-Queens problem Complete state formulation: All 8 queens on the board, one per column Neighbourhood: move one queen to a different place in the same column Fitness function: number of pairs of queens that are attacking each other

8-Queens problem: fitness values of neighbourhood

8-Queens problem: Local minimum

Hill-Climbing continually moves uphill increasing value of the evaluation function gradient descent search is a variation that moves downhill very simple strategy with low space requirements stores only the state and its evaluation, no search tree problems local maxima the peak is higher than all its neighbors, but not the global maximum algorithm can’t go higher, but is not at a satisfactory solution plateau area where the evaluation function is flat ridges search may oscillate slowly almost like a plateau

Performance of 8-Queens Problem From randomly generated start state Success rate: 86% - gets stuck 14% - solves problem

Further Variants of Hill Climbing Stochastic hill-climbing: Choose at random from among uphill moves First-choice hill-climbing: Generate neighbourhood in random order Move to first generated that represents an uphill move

Failing on neighbourhood search Simulated annealing Failing on neighbourhood search Propensity to deliver solutions which are only local optima Solutions depend on the initial solution Reduce the chance of getting stuck in a local optimum by allowing moves to inferior solutions Developed by Kirkpatrick 1983: Simulation of the cooling of material in a heat bath could be used to search the feasible solutions of an optimization problem Definir local optima Mirar qué son Hill-climbing y Greedy

Simulated annealing If a move from one solution to another neighbouring but inferior solution results in a change in value , the move to is still accepted if T (temperature) – control parameter – uniform random number

Simulated annealing: Intuition Minimization problem; imagine a state space landscape on table Let ping-pong ball from random point  local minimum Shake table ball tends to find different minimum Shake hard at first (high temperature) but gradually reduce intensity (lower temperature)

Simulated annealing: Algorithm current = problem.initialState for t=1 to T = schedule(t) if T=0 then return = a random neighbour of if then else with probability

Ball on terrain example – SA vs Greedy Algorithms

Summary Optimization Local Search

What I want you to do Review Chapter 3 Work on your assignment Organize your project team