Advanced Search Hill climbing

Similar documents
Optimization and Search. Jim Tørresen Optimization and Search

Uninformed Search (Ch )

Uninformed Search (Ch )

Real World Search Problems. CS 331: Artificial Intelligence Uninformed Search. Simpler Search Problems. Example: Oregon. Search Problem Formulation

1.1 The size of the search space Modeling the problem Change over time Constraints... 21

Problem Solving as Search - I

CS 4649/7649 Robot Intelligence: Planning

Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) Computer Science Department

Uninformed search methods

CENG 466 Artificial Intelligence. Lecture 4 Solving Problems by Searching (II)

Problem Solving Agents

Uninformed search methods II.

Uninformed search methods

2 When Some or All Labels are Missing: The EM Algorithm

Search I. Tuomas Sandholm Carnegie Mellon University Computer Science Department. [Read Russell & Norvig Chapter 3]

Representation. Representation. Representation. Representation. 8 puzzle.

SEARCH SEARCH TREE. Node: State in state tree. Root node: Top of state tree

SEARCH TREE. Generating the children of a node

Solving Problems by Searching chap3 1. Problem-Solving Agents

Depth-bounded Discrepancy Search

G53CLP Constraint Logic Programming

Introduction. AI and Searching. Simple Example. Simple Example. Now a Bit Harder. From Hammersmith to King s Cross

Uninformed search methods II.

Better Search Improved Uninformed Search CIS 32

Transposition Table, History Heuristic, and other Search Enhancements

COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Overview. Depth Limited Search. Depth Limited Search. COMP219: Artificial Intelligence. Lecture 8: Combining Search Strategies and Speeding Up

Allocation of referees, hours and pistes User manual of Engarde - August, 2013

SOLUTIONS TO TUTORIAL EXAMPLES CHAPTER 13

CSE 3401: Intro to AI & LP Uninformed Search II

The Traveling NET Trainer Problem

Aryeh Rappaport Avinoam Meir. Schedule automation

Week 7 One-way ANOVA

CSE 3402: Intro to Artificial Intelligence Uninformed Search II

Uninformed Search Strategies

Artificial Intelligence. Uninformed Search Strategies

Tokyo: Simulating Hyperpath-Based Vehicle Navigations and its Impact on Travel Time Reliability

Identifier GEN 200. Effective Date October Changed ID #, revised LP, overheads. Reviewed for minor changes and eayso information update

Which compressed air system design is right for you?

Uninformed search strategies

COMP 406 Lecture 05. Artificial. Fiona Yan Liu Department of Computing The Hong Kong Polytechnic University

/435 Artificial Intelligence Fall 2015

Name: Class: Date: (First Page) Name: Class: Date: (Subsequent Pages) 1. {Exercise 5.07}

MA PM: Memetic algorithms with population management

Three New Methods to Find Initial Basic Feasible. Solution of Transportation Problems

If you need to reinstall FastBreak Pro you will need to do a complete reinstallation and then install the update.

The Project The project involved developing a simulation model that determines outcome probabilities in professional golf tournaments.

SAFE EGRESS FROM DEEP STATIONS Flawed Criteria in NFPA 130

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning

Mathematics of Pari-Mutuel Wagering

$ 12" $#&%$ 86.) *1! *1 /3 )00, , (1* Neighborhood Traffic Calming Part 3 Solutions Bradley William Yarger, P.E.

MATH 118 Chapter 5 Sample Exam By: Maan Omran

EVOLVING HEXAPOD GAITS USING A CYCLIC GENETIC ALGORITHM

ORF 201 Computer Methods in Problem Solving. Final Project: Dynamic Programming Optimal Sailing Strategies

Estimating a Toronto Pedestrian Route Choice Model using Smartphone GPS Data. Gregory Lue

A Proof-Producing CSP Solver 1

Supplementary Figures

Hydraulic Modeling to Aid TDG Abatement at Boundary and Cabinet Gorge Dams

by Robert Gifford and Jorge Aranda University of Victoria, British Columbia, Canada

Planning and Acting in Partially Observable Stochastic Domains

The Incremental Evolution of Gaits for Hexapod Robots

CS472 Foundations of Artificial Intelligence. Final Exam December 19, :30pm

CSC384: Introduction to Artificial Intelligence. Search

Algorithms and Data Structures

A V C A - B A D G E R R E G I O N E D U C A T I O N A L T I P O F T H E W E E K

Learning Control Cycles for Area Coverage with Cyclic Genetic Algorithms

The next criteria will apply to partial tournaments. Consider the following example:

RATE OF CHANGE AND INSTANTANEOUS VELOCITY

Pressure and Density Altitude

CFD Analysis of Giromill Type Vertical Axis Wind Turbine

ANNEX A. (Normative) Tank Calibration Frequency and Re-computation of Calibration Tables

Exercise 1 Dream BIG Congratulations Today you just won the imaginary lottery!

For a cantilever pile wall shown in Figure 1, assess the performance of the system and answer the following questions.

Contents. Chapter 1 Introduction Chapter 2 The Eiger Chapter 3 Mount Everest, Chapter 4 Mount Hood,

Attendees: Trey Mainwaring (CHAVC); Sherry Fadool (Triangle; Linda Osterman (Alamance Force); Doug Balser (Champion); James Marshall (Stanly County)

Lecture 22: Multiple Regression (Ordinary Least Squares -- OLS)

Poseidon Team Description Paper RoboCup 2016, Leipzig, Germany

AGL: BASIC RULES... 3 AGL: STANDARD TOURNAMENT RULES... 6 AGL: OPEN TOURNAMENT RULES... 9 AGL: STANDARD LEAGUE RULES... 11

Chapter # SCHEDULING THE FINNISH MAJOR ICE HOCKEY LEAGUE USING THE PEAST ALGORITHM

United States Freestyle Ski Team World Cup and Team Qualification Criteria

LIMITED ENTRY CLUSTER PERFORATING SYSTEM IMPROVES FRACTURING EFFICIENCY IN HORIZONTAL WELLS

Evaluating and Classifying NBA Free Agents

CALGARY KARATE CUP CALGARY KARATE CUP. Tournament Documents May 26rd 2018 Genesis Centre, Calgary Alberta. Shotokan Karate Association of Calgary

Incremental ARA*: An Anytime Incremental Search Algorithm For Moving Target Search. University of Southern California Singapore Management University

The Orienteering Problem

Optimizing positional scoring rules for rank aggregation

Chapter 1 Test B. 4. What are two advantages of using simulation techniques instead of actual situations?

A Cost Effective and Efficient Way to Assess Trail Conditions: A New Sampling Approach

PEW RESEARCH CENTER FOR THE PEOPLE & THE PRESS JULY 2009 POLITICAL SURVEY / MEDIA UPDATE FINAL TOPLINE July 22-26, 2009 N=1506

Online Companion to Using Simulation to Help Manage the Pace of Play in Golf

Enhancing Active Transportation Sensitivities of an Activity Based Model

The RSM Player Performance Study Findings

m v = 1.04 x 10-4 m 2 /kn, C v = 1.29 x 10-2 cm 2 /min

UNITED STATES MARINE CORPS WEAPONS TRAINING BATTALION MARINE CORPS COMBAT DEVELOPMENT COMMAND QUANTICO, VIRGINIA INSTRUCTOR GUIDE

Chapter 5 5. INTERSECTIONS 5.1. INTRODUCTION

Pokémon Organized Play Tournament Operation Procedures

Ocean Fishing Fleet Scheduling Path Optimization Model Research. Based On Improved Ant Colony Algorithm

COMP9414: Artificial Intelligence Uninformed Search

CONTENTS. Copyright 2018, American Poolplayers Association, Inc.

Transcription:

Advanced Search Hill climbing Yingyu Liang yliang@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [Based on slides from Jerry Zhu, Andrew Moore http://www.cs.cmu.edu/~awm/tutorials ] slide 1

Optimization problems Previously we want a path from start to goal Uninformed search: g(s): Iterative Deepening Informed search: g(s)+h(s): A* Now a different setting: Each state s has a score f(s) that we can compute The goal is to find the state with the highest score, or a reasonably high score Do not care about the path This is an optimization problem Enumerating the states is intractable Even previous search algorithms are too expensive slide 2

Examples N-queen: f(s) = number of conflicting queens in state s Note we want s with the lowest score f(s)=0. The techniques are the same. Low or high should be obvious from context. slide 3

Examples N-queen: f(s) = number of conflicting queens in state s Note we want s with the lowest score f(s)=0. The techniques are the same. Low or high should be obvious from context. Traveling salesperson problem (TSP) Visit each city once, return to first city State = order of cities, f(s) = total mileage slide 4

Examples N-queen: f(s) = number of conflicting queens in state s Note we want s with the lowest score f(s)=0. The techniques are the same. Low or high should be obvious from context. Traveling salesperson problem (TSP) Visit each city once, return to first city State = order of cities, f(s) = total mileage Boolean satisfiability (e.g., 3-SAT) State = assignment to variables f(s) = # satisfied clauses A B C A C D B D E C D E A C E slide 5

1. HILL CLIMBING slide 6

Hill climbing Very simple idea: Start from some state s, Move to a neighbor t with better score. Repeat. Question: what s a neighbor? You have to define that! The neighborhood of a state is the set of neighbors Also called move set Similar to successor function slide 7

Neighbors: N-queen Example: N-queen (one queen per column). One possibility: s f(s)=1 Neighborhood of s slide 8

Neighbors: N-queen Example: N-queen (one queen per column). One possibility: tie breaking more promising? Pick the right-most most-conflicting column; Move the queen in that column vertically to a different location. f=1 s f(s)=1 f=2 Neighborhood of s slide 9

Neighbors: TSP state: A-B-C-D-E-F-G-H-A f = length of tour slide 10

Neighbors: TSP state: A-B-C-D-E-F-G-H-A f = length of tour One possibility: 2-change A-B-C-D-E-F-G-H-A flip A-E-D-C-B-F-G-H-A slide 11

Neighbors: SAT State: (A=T, B=F, C=T, D=T, E=T) f = number of satisfied clauses Neighbor: A B C A C D B D E C D E A C E slide 12

Neighbors: SAT State: (A=T, B=F, C=T, D=T, E=T) f = number of satisfied clauses Neighbor: flip the assignment of one variable (A=F, B=F, C=T, D=T, E=T) (A=T, B=T, C=T, D=T, E=T) (A=T, B=F, C=F, D=T, E=T) (A=T, B=F, C=T, D=F, E=T) (A=T, B=F, C=T, D=T, E=F) A B C A C D B D E C D E A C E slide 13

Hill climbing Question: What s a neighbor? (vaguely) Problems tend to have structures. A small change produces a neighboring state. The neighborhood must be small enough for efficiency Designing the neighborhood is critical. This is the real ingenuity not the decision to use hill climbing. Question: Pick which neighbor? Question: What if no neighbor is better than the current state? slide 14

Hill climbing Question: What s a neighbor? (vaguely) Problems tend to have structures. A small change produces a neighboring state. The neighborhood must be small enough for efficiency Designing the neighborhood is critical. This is the real ingenuity not the decision to use hill climbing. Question: Pick which neighbor? The best one (greedy) Question: What if no neighbor is better than the current state? Stop. (Doh!) slide 15

Hill climbing algorithm 1. Pick initial state s 2. Pick t in neighbors(s) with the largest f(t) 3. IF f(t) f(s) THEN stop, return s 4. s = t. GOTO 2. Not the most sophisticated algorithm in the world. Very greedy. Easily stuck. slide 16

Hill climbing algorithm 1. Pick initial state s 2. Pick t in neighbors(s) with the largest f(t) 3. IF f(t) f(s) THEN stop, return s 4. s = t. GOTO 2. Not the most sophisticated algorithm in the world. Very greedy. Easily stuck. your enemy: local optima slide 17

Local optima in hill climbing Useful conceptual picture: f surface = hills in state space f Global optimum, where we want to be state But we can t see the landscape all at once. Only see the neighborhood. Climb in fog. f fog state slide 18

Local optima in hill climbing Local optima (there can be many!) Declare topof-the-world? f state Plateaux f Where shall I go? state slide 19

Local optima in hill climbing Local optima (there can be many!) Declare top of the world? Plateaus f fog The rest of the lecture is about state Escaping local f optima fog Where shall I go? state slide 20

Not every local minimum should be escaped slide 21

Repeated hill climbing with random restarts Very simple modification 1. When stuck, pick a random new start, run basic hill climbing from there. 2. Repeat this k times. 3. Return the best of the k local optima. Can be very effective Should be tried whenever hill climbing is used slide 22

Variations of hill climbing Question: How do we make hill climbing less greedy? slide 23

Variations of hill climbing Question: How do we make hill climbing less greedy? Stochastic hill climbing Randomly select among better neighbors The better, the more likely Pros / cons compared with basic hill climbing? slide 24

Variations of hill climbing Question: How do we make hill climbing less greedy? Stochastic hill climbing Randomly select among better neighbors The better, the more likely Pros / cons compared with basic hill climbing? Question: What if the neighborhood is too large to enumerate? (e.g. N-queen if we need to pick both the column and the move within it) slide 25

Variations of hill climbing Question: How do we make hill climbing less greedy? Stochastic hill climbing Randomly select among better neighbors The better, the more likely Pros / cons compared with basic hill climbing? Question: What if the neighborhood is too large to enumerate? (e.g. N-queen if we need to pick both the column and the move within it) First-choice hill climbing Randomly generate neighbors, one at a time If better, take the move Pros / cons compared with basic hill climbing? slide 26

Variations of hill climbing We are still greedy! Only willing to move upwards. Important observation in life: Sometimes one needs to temporarily step back in order to move forward. = Sometimes one needs to move to an inferior neighbor in order to escape a local optimum. slide 27

WALKSAT [Selman] Variations of hill climbing Pick a random unsatisfied clause Consider 3 neighbors: flip each variable If any improves f, accept the best If none improves f: 50% of the time pick the least bad neighbor 50% of the time pick a random neighbor This is the best known algorithm for satisfying Boolean formulae. A B C A C D B D E C D E A C E slide 28