CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 4, 2009.

Slides:



Advertisements
Similar presentations
Local Search Jim Little UBC CS 322 – CSP October 3, 2014 Textbook §4.8
Advertisements

CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) Oct, 5, 2012.
Constraint Satisfaction Problems Russell and Norvig: Parts of Chapter 5 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) Sept, 11, 2013.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
Department of Computer Science Undergraduate Events More
CPSC 322, Lecture 10Slide 1 Finish Search Computer Science cpsc322, Lecture 10 (Textbook Chpt 3.6) January, 28, 2008.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Decision Theory: Single Stage Decisions Computer Science cpsc322, Lecture 33 (Textbook Chpt 9.2) March, 30, 2009.
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 3, 2010.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
Local search algorithms
Local search algorithms
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.6) February, 01, 2010.
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.
CPSC 322, Lecture 11Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Computer Science cpsc322, Lecture 11 (Textbook Chpt 4.0 – 4.2) January,
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Introduction to Artificial Intelligence Local Search (updated 4/30/2006) Henry Kautz.
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 17Slide 1 Planning: Representation and Forward Search Computer Science cpsc322, Lecture 17 (Textbook Chpt 8.1 (Skip )- 8.2) February,
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
CPSC 322, Lecture 35Slide 1 Value of Information and Control Computer Science cpsc322, Lecture 35 (Textbook Chpt 9.4) April, 14, 2010.
CPSC 322, Lecture 24Slide 1 Reasoning under Uncertainty: Intro to Probability Computer Science cpsc322, Lecture 24 (Textbook Chpt 6.1, 6.1.1) March, 15,
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
Slide 1 Constraint Satisfaction Problems (CSPs) Introduction Jim Little UBC CS 322 – CSP 1 September 27, 2014 Textbook §
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
Local Search CPSC 322 – CSP 5 Textbook §4.8 February 7, 2011.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
Department of Computer Science Undergraduate Events More
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
CS 484 – Artificial Intelligence1 Announcements Homework 2 due today Lab 1 due Thursday, 9/20 Homework 3 has been posted Autumn – Current Event Tuesday.
Computer Science CPSC 322 Lecture 13 Arc Consistency (4.5, 4.6 ) Slide 1.
Computer Science CPSC 322 Lecture 16 CSP: wrap-up Planning: Intro (Ch 8.1) Slide 1.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
Local Search Algorithms
CHAPTER 4, Part II Oliver Schulte Summer 2011 Local Search.
Local search algorithms In many optimization problems, the state space is the space of all possible complete solutions We have an objective function that.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
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.
Arc Consistency and Domain Splitting in CSPs CPSC 322 – CSP 3 Textbook Poole and Mackworth: § 4.5 and 4.6 Lecturer: Alan Mackworth October 3, 2012.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraint Propagation Artificial Intelligence CMSC January 22, 2002.
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.
Domain Splitting, Local Search CPSC 322 – CSP 4 Textbook §4.6, §4.8 February 4, 2011.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 13, 2013.
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.
CPSC 322, Lecture 15Slide 1 Stochastic Local Search Computer Science cpsc322, Lecture 15 (Textbook Chpt 4.8) Oct, 9, 2013.
Stochastic Local Search Computer Science cpsc322, Lecture 15
Department of Computer Science
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computer Science cpsc322, Lecture 13
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computer Science cpsc322, Lecture 14
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computer Science cpsc322, Lecture 13
Computer Science cpsc322, Lecture 14
Stochastic Local Search Variants Computer Science cpsc322, Lecture 16
Domain Splitting CPSC 322 – CSP 4 Textbook §4.6 February 4, 2011.
Constraint Satisfaction
Local Search Algorithms
Presentation transcript:

CPSC 322, Lecture 14Slide 1 Local Search Computer Science cpsc322, Lecture 14 (Textbook Chpt 4.8) February, 4, 2009

CPSC 322, Lecture 14Slide 2 Lecture Overview Recap Local search Greedy Descent / Hill Climbing: Problems

CPSC 322, Lecture 13Slide 3 Systematically solving CSPs: Summary Build Constraint Network Apply Arc Consistency One domain is empty  Each domain has a single value  Some domains have more than one value  Apply Depth-First Search with Pruning Split the problem in a number of disjoint cases Apply Arc Consistency to each case

CPSC 322, Lecture 14Slide 4 Lecture Overview Recap Local search Greedy Descent / Hill Climbing: Problems

CPSC 322, Lecture 14Slide 5 Local Search motivation: Scale Many CSPs (scheduling, DNA computing, more later) are simply too big for systematic approaches If you have 10 5 vars with dom(var i ) = 10 4 but if solutions are densely distributed……. Systematic SearchConstraint Network

CPSC 322, Lecture 14Slide 6 Local Search: General Method Start from a possible world Generate some neighbors ( “similar” possible worlds) Move from the current node to a neighbor, selected according to a particular strategy Example: A,B,C same domain {1,2,3}

CPSC 322, Lecture 14Slide 7 Local Search: Selecting Neighbors How do we determine the neighbors? Usually this is simple: some small incremental change to the variable assignment a) assignments that differ in one variable's value, by a value difference of +1 b) assignments that differ in one variable's value c) assignments that differ in two variables' values, etc. Example: A,B,C same domain {1,2,3}

CPSC 322, Lecture 14Slide 8 Selecting the best neighbor A common component of the scoring function (heuristic) => select the neighbor that results in the …… - the min conflicts heuristics Example: A,B,C same domain {1,2,3}, (A=B, A>1, C≠3)

CPSC 322, Lecture 14Slide 9 Example: n-queens Put n queens on an n × n board with no two queens on the same row, column, or diagonal

CPSC 322, Lecture 14Slide 10 n-queens, Why? Why this problem? Lots of research in the 90’ on local search for CSP was generated by the observation that the run- time of local search on n-queens problems is independent of problem size!

CPSC 322, Lecture 14Slide 11 Solutions might have different values Greedy Descent means selecting the neighbor which minimizes a scoring function. Hill Climbing means selecting the neighbor which best improves a scoring function. The scoring function we’d like to maximize might be: (C + A) - #-of-conflicts Example: A,B,C same domain {1,2,3}, (A=B, A>1, C≠3) Value = (C+A) and we want a solution that maximize that

CPSC 322, Lecture 14Slide 12 Lecture Overview Recap Local search Greedy Descent / Hill Climbing: Problems

CPSC 322, Lecture 14Slide 13 Hill Climbing NOTE: Everything that will be said for Hill Climbing is also true for Greedy Descent

CPSC 322, Lecture 14Slide 14 Problems with Hill Climbing Local Maxima. Plateau - Shoulders (Plateau)

CPSC 322, Lecture 15Slide 15 Corresponding problem for GreedyDescent Local minimum example: 8-queens problem A local minimum with h = 1

CPSC 322, Lecture 14Slide 16 Even more Problems in higher dimensions E.g., Ridges – sequence of local maxima not directly connected to each other From each local maximum you can only go downhill

CPSC 322, Lecture 4Slide 17 Learning Goals for today’s class You can: Implement local search for a CSP. Implement different ways to generate neighbors Implement scoring functions to solve a CSP by local search through either greedy descent or hill-climbing.

CPSC 322, Lecture 13Slide 18 Next Class How to address problems with Greedy Descent / Hill Climbing? Stochastic Local Search (SLS)

CPSC 322, Lecture 12Slide Feedback or  Lectures Slides Practice Exercises Assignments AIspace …… Textbook Course Topics / Objectives TAs Learning Goals ……