Understandig the Search Behaviour of Greedy Best-First Search - - PowerPoint PPT Presentation

understandig the search behaviour of greedy best first
SMART_READER_LITE
LIVE PREVIEW

Understandig the Search Behaviour of Greedy Best-First Search - - PowerPoint PPT Presentation

Understandig the Search Behaviour of Greedy Best-First Search Manuel Heusner Thomas Keller Malte Helmert University of Basel June 16th, 2017 Introduction High-Water Marks Benches Craters Conclusion Introduction M. Heusner , T. Keller, M.


slide-1
SLIDE 1

Understandig the Search Behaviour of Greedy Best-First Search

Manuel Heusner Thomas Keller Malte Helmert

University of Basel

June 16th, 2017

slide-2
SLIDE 2

Introduction High-Water Marks Benches Craters Conclusion

Introduction

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 2/34

slide-3
SLIDE 3

Introduction High-Water Marks Benches Craters Conclusion

Open Questions

  • Which states is GBFS guaranteed to expand?
  • Which states is GBFS guaranteed not to expand?
  • Which states may GBFS potentially expand?

Note: Partly answered for A∗ (based on f-value) and for GBFS (based on high-water mark).

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 3/34

slide-4
SLIDE 4

Introduction High-Water Marks Benches Craters Conclusion

State Space Topology

  • state space: generative model with initial state, goal states

and successor function

  • heuristic: assigns non-negative values to states
  • state space topology: state space + heuristic
  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 4/34

slide-5
SLIDE 5

Introduction High-Water Marks Benches Craters Conclusion

State Space Topology

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 5/34

slide-6
SLIDE 6

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

  • expansion : generates successors of a state
  • greedy best-first search: iteratively expands states with lowest

heuristic value

  • tie-breaking: selects a state among states with equal heuristic

values

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 6/34

slide-7
SLIDE 7

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-8
SLIDE 8

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B C D

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-9
SLIDE 9

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-10
SLIDE 10

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-11
SLIDE 11

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G J P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-12
SLIDE 12

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-13
SLIDE 13

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G I J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-14
SLIDE 14

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G I J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-15
SLIDE 15

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G I J K U N P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-16
SLIDE 16

Introduction High-Water Marks Benches Craters Conclusion

Greedy Best-First Search

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B E C D F G I J K U N P T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 7/34

slide-17
SLIDE 17

Introduction High-Water Marks Benches Craters Conclusion

High-Water Marks

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 8/34

slide-18
SLIDE 18

Introduction High-Water Marks Benches Craters Conclusion

High-Water Marks

Definition (high-water mark) The high-water mark is the largest heuristic value of a state that GBFS starting from a state (or a set of states) must expand before reaching a goal state.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 9/34

slide-19
SLIDE 19

Introduction High-Water Marks Benches Craters Conclusion

High-Water Mark of State

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

high-water mark of state P: 4

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 10/34

slide-20
SLIDE 20

Introduction High-Water Marks Benches Craters Conclusion

High-Water Mark of State Set

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

high-water mark of state set {J, P}: 3

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 11/34

slide-21
SLIDE 21

Introduction High-Water Marks Benches Craters Conclusion

Earlier Result

Theorem (Wilt & Ruml, SoCS 2014) GBFS is guaranteed to not expand a state whose heuristic value is larger than high-water mark of initial state.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 12/34

slide-22
SLIDE 22

Introduction High-Water Marks Benches Craters Conclusion

Earlier Result

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

never expanded states: {X}

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 13/34

slide-23
SLIDE 23

Introduction High-Water Marks Benches Craters Conclusion

Benches

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 14/34

slide-24
SLIDE 24

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit States

Definition (bench exit state) Bench exit state is a state which has a successor that has lower high-water mark or that is a goal state.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 15/34

slide-25
SLIDE 25

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit States

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 16/34

slide-26
SLIDE 26

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit States

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 16/34

slide-27
SLIDE 27

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Theorem (bench exit property) Whenever GBFS expands a bench exit state, all previously generated states will never be expanded for the rest of the algorithm run. Note: GBFS makes progress when bench exit state is expanded.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 17/34

slide-28
SLIDE 28

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-29
SLIDE 29

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X A B C D

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-30
SLIDE 30

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X B C D

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-31
SLIDE 31

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X B E C D

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-32
SLIDE 32

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X B E C D F G

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-33
SLIDE 33

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X B E C D F G J P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-34
SLIDE 34

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 J P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-35
SLIDE 35

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-36
SLIDE 36

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 I J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-37
SLIDE 37

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 G I J K P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-38
SLIDE 38

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 G I J K U N P

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-39
SLIDE 39

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 U N

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-40
SLIDE 40

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 U N T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-41
SLIDE 41

Introduction High-Water Marks Benches Craters Conclusion

Bench Exit Property

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 18/34

slide-42
SLIDE 42

Introduction High-Water Marks Benches Craters Conclusion

Benches

Definition (bench) A bench contains all states that GBFS starting with a given set of states can expand until expansion of a bench exit state. It is empty if the given set of states contains a goal state. It is associated with high-water mark of the given set of states.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 19/34

slide-43
SLIDE 43

Introduction High-Water Marks Benches Craters Conclusion

Benches

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

states on bench defined by {J, P}: {I, J, P, K}

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 20/34

slide-44
SLIDE 44

Introduction High-Water Marks Benches Craters Conclusion

Bench Transition Systems

Definition (bench transition system) A bench transition system contains all benches which are reachable from the bench that starts with the initial state. A successor bench is defined by the successor states of a bench exit state.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 21/34

slide-45
SLIDE 45

Introduction High-Water Marks Benches Craters Conclusion

Bench Transition Systems

Example

h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A C D F G I J K I J L Q R S M N P T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 22/34

slide-46
SLIDE 46

Introduction High-Water Marks Benches Craters Conclusion

Results

Theorem GBFS potentially expands a state if it is on at least one bench from bench transition system. Theorem GBFS is guaranteed to not expand a state that is not on a bench

  • f the bench transition system.
  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 23/34

slide-47
SLIDE 47

Introduction High-Water Marks Benches Craters Conclusion

Results

Example

h = 6 h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 X Y Z A B E C D F G H I J K L M U N P Q R S T

never expanded states: {B, E, H, T, U, X, Y, Z}

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 24/34

slide-48
SLIDE 48

Introduction High-Water Marks Benches Craters Conclusion

Craters

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 25/34

slide-49
SLIDE 49

Introduction High-Water Marks Benches Craters Conclusion

Surfaces

Definition (surface) A state is on the surface of a bench if its heuristic value is the high-water mark of the bench. Note: Is often called heuristic plateau or uninformed heuristic region.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 26/34

slide-50
SLIDE 50

Introduction High-Water Marks Benches Craters Conclusion

Surfaces

Example

h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A C D F G I J K I J L Q R S M N P T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 27/34

slide-51
SLIDE 51

Introduction High-Water Marks Benches Craters Conclusion

Crater Entry States

Definition (crater entry state) A crater entry state is a state that is on the surface of a bench and that has a successor which is on a bench but not on a surface.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 28/34

slide-52
SLIDE 52

Introduction High-Water Marks Benches Craters Conclusion

Crater Entry States

Example

h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A C D F G I J K I J L Q R S M N P T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 29/34

slide-53
SLIDE 53

Introduction High-Water Marks Benches Craters Conclusion

Craters

Definition (crater) A crater contains all states that GBFS starting with a given crater entry state expands until expansion of a state from the surface. Note: Is often called local minimum or uninformed heuristic region.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 30/34

slide-54
SLIDE 54

Introduction High-Water Marks Benches Craters Conclusion

Craters

Example

h = 5 h = 4 h = 3 h = 2 h = 1 h = 0 A C D F G I J K I J L Q R S M N P T

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 31/34

slide-55
SLIDE 55

Introduction High-Water Marks Benches Craters Conclusion

Result

Theorem Whenever GBFS expands a crater entry state s, then GBFS is guaranteed to expand all states in the crater defined by s.

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 32/34

slide-56
SLIDE 56

Introduction High-Water Marks Benches Craters Conclusion

Conclusion

  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 33/34

slide-57
SLIDE 57

Introduction High-Water Marks Benches Craters Conclusion

Conclusion

  • exact characterization of potentially expanded and never

expanded states

  • characterization of surely expanded states given some

conditions

  • better understanding of search behaviour and search progress
  • M. Heusner, T. Keller, M. Helmert (Basel)

Understandig the Search Behaviour of Greedy Best-First Search 34/34