Problem with Heuristic Search YOSSI COHEN P R O F . A R I E L F E - - PowerPoint PPT Presentation

β–Ά
problem with heuristic search
SMART_READER_LITE
LIVE PREVIEW

Problem with Heuristic Search YOSSI COHEN P R O F . A R I E L F E - - PowerPoint PPT Presentation

Solving the Longest Simple Path Problem with Heuristic Search YOSSI COHEN P R O F . A R I E L F E L N E R , D R . R O N I S T E R N 1 LSP - Definition s # # # # # #


slide-1
SLIDE 1

YOSSI COHEN

P R O F . A R I E L F E L N E R , D R . R O N I S T E R N

Solving the Longest Simple Path Problem with Heuristic Search

1

slide-2
SLIDE 2

2

LSP - Definition

ο‚— Find the longest simple path from Start to Target (𝑑 β†’ 𝑒). ο‚— NP Hard problem - even hard to estimate by a constant factor s # # # # # # # # # # # # # # # # # # # # t ↓ β†’ β†’ ↓ # # β†’ β†’ β†’ ↓ ↓ ↑ # β†’ β†’ ↓ ↑ ↓ ← ↓ ↑ ← ← # β†’ ↑ # β†’ ↓ β†’ β†’ β†’ ↑ # # ↓ ← ↓ # # ↓ ← # ↓ ↑ ← ↓ ← ← ← ↑ ← ↓ ← # ↓ # # # ↑ ← # # β†’ β†’ ↓ β†’ β†’ ↓ β†’ ↓ # # ↓ ↑ ← β†’ ↑ ↓ β†’ ↓ # β†’ β†’ ↑ # β†’ ↑ t

Background

slide-3
SLIDE 3

3

Motivation

Real world application:

ο‚— VLSI design (integrated circuit design) ο‚— Gray code - error correction ο‚— Robot patrolling

Background

slide-4
SLIDE 4

4

ο‚— Unlike many problems that are solved by finding a

solution with minimal cost, LSP solution requires maximal reward.

ο‚— Simple Path from 1 to 2 ο‚— MIN vs MAX ο‚— Shortest Path ο‚— Longest Simple Path (LPP)

Maximum vs. Minimum

Background

slide-5
SLIDE 5

5

What’s the problem? Lets just use Best First Search!

ο‚— [s:0] ο‚— [a:1, b:2] ο‚— [a:1,g:3]

MIN vs. MAX

s g a b 2 1 1 3

Background

slide-6
SLIDE 6

6

Search Space is Bigger

Both nodes are same place - but they not the same valid operators: [S,W] [N,S] Moreover one is part of MAX solution and the other is not. We must keep the entire path in every search node. Due to this the search space is much bigger.

t s t s

Background

slide-7
SLIDE 7

7

ο‚— f(Β·) = g(Β·) + h(Β·) ο‚— A*

ο‚‘ MAX problems: the first state in the open list is the maximal

  • state. (denote maxf)

ο‚‘ Stops when open-list is empty or when:

maxf ≀ BestGoalFound

ο‚— DFBnB

ο‚‘ If F < best candidate – prune

ο‚— Better heuristics are heuristics that tightly upper

bounds the remaining path

A* and DFBnB Adaptations

Background

slide-8
SLIDE 8

8

Heuristics Shortest path heuristics just won't work here

Heuristics

slide-9
SLIDE 9

9

Reachable Biconnected components

Existing heuristics

Heuristics

s t f Cut point Block s t t s

slide-10
SLIDE 10

10

Works on bipartite graph. 4 connected grid for instance. Count the groups separately, |Ξ”| ≀ 1

Alternate Steps

Heuristics

S # # # T S # # # T S # # # T

slide-11
SLIDE 11

11

Run Alternate step (Alt.) on each block of the BCT separately. h(BCC alt.) = 33 h(BCC s. alt.) = 31

BCC + Separate Alternate Steps

Heuristics

S # # # # # # # T

slide-12
SLIDE 12

12

Pruning

How to prune nodes during the search and still guarantee to find the longest simple path?

Pruning

slide-13
SLIDE 13

13

Search Tree Example

t s t s t s t s t s t s t s t s t s t s

Pruning

slide-14
SLIDE 14

14

Search Tree Example

t s t s t s t s t s t s t s t s t s t s

When using heuristic search to solve LSP A* traverse over many similar states

s t t s f f

Pruning

slide-15
SLIDE 15

15

Basic Symmetry Detection

Same frontier location & same path coverage On open list: Generated node:

ο‚— How to efficiently compare states?

s s t t f f

Pruning

slide-16
SLIDE 16

16

Reachable Dominance Detection

Same frontier & contained (subset or equal) reachable coverage On open list: Generated node:

ο‚— Can prune retroactively! ο‚— How to efficiently compare states?

s t s t f f

Pruning

slide-17
SLIDE 17

17

Reachable Dominance Detection

s t s t f f

Pruning

Pruning Conditions:

  • 1. N.head = Nβ€˜.head

2.|N.Ο€|β‰₯|Nβ€˜.Ο€| 3.Nβ€˜.RβŠ† N.R N Nβ€˜

slide-18
SLIDE 18

18

Experimental Results

Experimental Results

slide-19
SLIDE 19

19

Experimental Results

ο‚— Grid maps with random blocked cells - 360 maps

with variety of blocked percentile

ο‚— 10Minutes, solved by all permutations

slide-20
SLIDE 20

20

Experimental Results

ο‚— Grid maps with rooms - 400 maps with variety of

number of rooms, room size and blocked percentile

ο‚— 10Minutes, solved by all permutations

A* DFBnB Runtime

(BCC Based only)

slide-21
SLIDE 21

21

Experimental Results

Success rate – Bigger grids and non-uniform reward 1Hr.

Uniform reward Life Grid (non-uniform)

slide-22
SLIDE 22

22

Conclusion

Contributions

ο‚— Novel heuristic for the longest simple path problem ο‚— Several state space pruning techniques

Results

ο‚— All proposed pruning techniques reduce # searched nodes. ο‚— Pruning effectiveness: None ≀ BSD ≀ RDP ο‚— Heuristic effectiveness: R ≀ R+ALT ≀ BCC ≀ BCC+ALT ≀ BCC+Sep. ALT

Challenge for Future Work

ο‚— BSD has the fastest runtime and RDD has the strongest pruning ability ο‚— Challenge: How to get RDD faster?

slide-23
SLIDE 23

Thanks!

23

https://github.com/YossiCohen/Heuristic-Search-Max