Iterative improvement algorithms Prof. Tuomas Sandholm Carnegie Mellon University Computer Science Department.

Slides:



Advertisements
Similar presentations
Local Search Algorithms
Advertisements

1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Local search algorithms
Local search algorithms
Two types of search problems
CPSC 322, Lecture 15Slide 1 Stochastic Local Search Computer Science cpsc322, Lecture 15 (Textbook Chpt 4.8) February, 6, 2009.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Introduction to Artificial Intelligence Heuristic Search Ruth Bergman Fall 2004.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
CS 4700: Foundations of Artificial Intelligence
Imagine that I am in a good mood Imagine that I am going to give you some money ! In particular I am going to give you z dollars, after you tell me the.
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.
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
Constraint Satisfaction Problems
Local Search and Optimization
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 CPSC 322 – CSP 5 Textbook §4.8 February 7, 2011.
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
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
1 Shanghai Jiao Tong University Informed Search and Exploration.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Informed search algorithms Chapter 4. Best-first search Idea: use an evaluation function f(n) for each node –estimate of "desirability"  Expand most.
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.
Local Search Algorithms
Local Search Pat Riddle 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell,
1 Chapter 5 Constraint Satisfaction Problems. 2 Outlines  Constraint Satisfaction Problems  Backtracking Search for CSPs  Local Search for CSP  The.
G5BAIM Artificial Intelligence Methods Graham Kendall Hill Climbing.
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.
Course Outline 4.2 Searching with Problem-specific Knowledge Presented by: Wing Hang Cheung Paul Anh Tri Huynh Mei-Ki Maggie Yang Lu Ye CPSC 533 January.
4/11/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 4, 4/11/2005 University of Washington, Department of Electrical Engineering Spring 2005.
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.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
Chapter 4 (Section 4.3, …) 2 nd Edition or Chapter 4 (3 rd Edition) Local Search and Optimization.
Chapter 5. Advanced Search Fall 2011 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Lecture 6 – Local Search Dr. Muhammad Adnan Hashmi 1 24 February 2016.
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.
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"
Department of Computer Science
Computer Science cpsc322, Lecture 14
Course Outline 4.2 Searching with Problem-specific Knowledge
ALGORITHMS.
Chapter 5. Advanced Search
Artificial Intelligence
First Exam 18/10/2010.
CSC 380: Design and Analysis of Algorithms
Presentation transcript:

Iterative improvement algorithms Prof. Tuomas Sandholm Carnegie Mellon University Computer Science Department

Iterative improvement algorithms = iterative refinement = local search Usable when the solution are states, not paths. Start with a complete configuration and make modifications to improve its quality.

Hill-climbing Search Iterative improvement algorithms try to find peaks on a surface of states where height is defined by the evaluation function

Hill-climbing Search… function HILL-CLIMBING(problem) returns a solution state inputs: problem, a problem static: current, a node next, a node current  MAKE-NODE(INITIAL-STATE[problem]) loop do next  a highest-valued successor of current if VALUE[next] < VALUE[current] then return current current  next end Best-swap vs. first-swap

Hill-climbing Search… Problems: 1.Local maxima No progress 2.Plateaux (essentially flat evaluation fn) Random walk 3.Ridges Search may oscillate from side to side, making little progress Potential solutions: random restarts Eventually finds the optimal solution On NP-complete problems it is likely that there are exponentially many local optima Usually good solutions can be found quickly. Performance depends on the “state-space surface”. How to find feasible neighbors?

E.g. 2-swap in TSP 3-swaps…

Simulated Annealing

Simulated Annealing… function SIMULATED-ANNEALING(problem,schedule) returns a solution state inputs: problem, a problem schedule, a mapping from time to “temperature” static: 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 Does not always find an optimal solution, and does not know whether it has found an optimal solution. [Theoretical results show that if T is lowered slowly enough (extremely slowly), the optimum will be found]

Heuristic Repair Iterative improvement in CSPs called heuristic repair. Min-conflicts heuristic: choose a value that results in a minimum number of conflicts with other variables.

Heuristic Repair (cont.) A two-step solution for an 8-queen problem using min-conflicts. At each stage, a queen is chosen for reassignment in its column. The number of conflicts (in this case, the number of attacking queens) is shown in each square. The algorithm moves the queen to the min- conflict square, breaking ties randomly. Surprisingly effective queens in 50 steps on average - Hubble space telescope scheduling (3 weeks  10 minutes for scheduling a week of observations)