• Keine Ergebnisse gefunden

Rep.: Funnel situation!

N/A
N/A
Protected

Academic year: 2022

Aktie "Rep.: Funnel situation!"

Copied!
30
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Online Motion Planning MA-INF 1314 Alternative cost measures!

Elmar Langetepe University of Bonn

(2)

Rep: Searching for target of a street

πOpt PL s

PR t

(3)

Rep: Lower Bound

Theorem No strategy can achieve a path length smaller than

√2 × πOpt.

Proof:

m t?

s

π 2

1 1

1

2

2 t?

t` tr

Detour with ratio√ 2

(4)

Rep.: Funnel situation!

• It is sufficient to consider special streets only!

• Combine them piecewise!

• Def. A polygon that start with a convex vertex s and consists of two opening convex chains ending at t` and tr respectively and which are finally connected by a line segment t`tr is called a funnel (polygon).

t`

v`

φ

vr

s φ0

tr

(5)

Rep.: Generalized Lower Bound

Lemma For a funnel with opening angle φ ≤ π no strategy can guarantee a path length smaller than Kφ · |Opt| where

Kφ := √

1 + sin φ. Proof:

`· sin φ2

`

`· cos φ2 m

φ s

t` tr

Detour at least: S|

Opt| = `cos

φ

2+` sin φ2

` = √

1 + sin φ.

(6)

Rep.: Opening angle π ≥ ϕ

0

≥ π/2!

• Backward analysis!

|w|+Kl φ2·`2

1 ≤ Kφ1 and |w|+Kr φ2·r2

1 ≤ Kφ1

• Combine to one condition for w

• |w| ≤ min{Kφ1`1 − Kφ2`2 , Kφ1r1 − Kφ2r2 }

v`

φ2

p1

`1

pn rn

p2 φ1 w

`n

r1

`2 r2

vr

(7)

Rep.: Opening angle π ≥ ϕ

0

≥ π/2!

• Change of the reflex vertices! Sufficient!

• Change left side! Condition:

|w| ≤ min{Kφ1`1 − Kφ2`2 , Kφ1r1 − Kφ2r2 }

• And also: |w|+Kφ2·(`2+`

0 2)

(l1+`02) ≤ Kφ1

vl

φ2 p2

l2 r2

l1 l02

vl0 tr

pend W

r1

rend lend

vr tl

PL

l0

r0

PR

φ0 p1 φ1

(8)

Rep.: Opening angle π ≥ ϕ

0

≥ π/2!

Lemma: Let S be a strategy, that searches for the target in a funnel with opening angle φ2 for φ2π2 with competitive ratio Kφ2. This strategy can be extended to a strategy of ratio Kφ1 and opening angle φ1 for φ2 > φ1π2, if we guarantee

|w| ≤ min{ Kφ1`1 − Kφ2`2 , Kφ1r1 − Kφ2r2 } for the corresponding connecting path.

vl

φ2 p2

l2 r2

l1 l20

vl0 tr

pend W

r1

rend lend

vr

s tl

PL

l0

r0

PR

φ0 p1 φ1

w

(9)

Rep.: Opening angle π ≥ ϕ

0

≥ π/2!

• Equality: Kφ2(`2 − r2) = Kφ1(`1 − r1), A := Kφ0(`0 − r0)

• Hyperbola: X2

A 2

2Y 2

(12)2

A 2

2 = 1

• Circle: X2 +

Y + cot2 φ 2

= 1

4 sin2 φ

(0,0)

1 2

z x

l(p)

vr

vl

φ p

r(p)

φ 2

πφ

(10)

Rep.: Opening angle π ≥ ϕ

0

≥ π/2!

Intersection Hyp. Circle: Curve!!

X(φ) = A

2 · cot φ2

1 + sin φ · s

1 + tan φ 2

2

− A2 Y (φ) = 1

2 · cot φ 2 ·

A2

1 + sin φ − 1

where A = Kφ0(`0 − r0)

-0.5 0

Y

-0.5 X 0.5

(11)

Opt. strat. for opening angle π ≥ ϕ

0

≥ π/2!

X(φ) = A

2 · cot φ2

1 + sin φ · s

1 + tan φ 2

2

− A2 Y (φ) = 1

2 · cot φ 2 ·

A2

1 + sin φ − 1

Change of the boundary points. A also changes, new piece of curve!

vl

φ2 p2

l2 r2

l1 l02

vl0 tr

pend

r1

rend lend

vr

s PL

l0

r0

PR

φ0 p1

w1 tl

w2 w3

φ1

(12)

Opt. strat. for opening angle π ≥ ϕ

0

≥ π/2!

Theorem: The goal of a funnel with opening angle φ0 > π2 can be found with ratio Kφ0.

Proof: Show that the curves fulfil:

|w| ≤ min{ Kφ1`1 − Kφ2`2 , Kφ1r1 − Kφ2r2 }

For any small piece w of the curve. Analytically, lengthy proof!

Experimentally!

(13)

Opt. strat. opening angle 0 ≤ ϕ

0

≤ π/2!

• The same approach

• But independent from the angle

• Dominated by factor Kπ/2 = √ 2

• Require: w ≤ min{ √

2(`1 − `2) , √

2(r1 − r2) }.

• Equality: `1 − `2 = r1 − r2

• Current angular bisector: Hyberbola!

φ2

r1 p2 w

`2

r2 v`

vr

φ1

`1

(14)

Opt. strat. opening angle 0 ≤ ϕ

0

≤ π !

Combine strategy 1 and strategy 2

t

s

Theorem: In an unknown street-polygon beginning from the source s we can find the target t with an optimal online strategy with

competitive ratio √ 2.

(15)

Optimal strategy “Worst-Case-Aware”

As long as target t is not visible:

Compute current v` and vr.

If only one exists: Move directly toward the other.

Otherwise. Repeat:

New reflex vertex v`0 or vr0 is detected:

Use v`0 or vr0 instead of v` or vr.

Let φ be the angle between v`, the current poyition and vr. If φ ≤ π2: Follow the current angular bisctor!

If φ > π2: Follow the curve (X(φ), Y (φ)).

Until either v` or vr is explored.

Move toward the non-explored vertex.

Move toward the goal.

(16)

Opening angle π ≥ ϕ

0

≥ π/2!

Theorem: Searching for the target in a street polygon can be realized within a competitive ratio of √

2.

• From ϕ ≥ π/2 curve fulfils w condition, analysis/experiments!

• For smaller angles: √

2 substitute for all Kφ

t

s

(17)

Optimal searchpath

• We have seen:

Searching for a goal (polygon) in general not competitive

• Question: What is a good searchpath (for polygons)?

• Searching: Target point unknown!

• Offline-Searching: Environment is known

• Online-Searching: Environment unknown

(18)

Quality measures!

• Competitive ratio of search strategy A in polygons:

C := sup

P

sup

p∈P

|A(s, p)|

|sp(s, p)|

(19)

Optimal search path in polygons

• Competitive analysis:

• Agent with visibiltly

• Adversary forces any strategy to visit any corridor

• Optimal path is short

• ⇒ Any strategy fails

(not constant competitive)

goal goal

(20)

Optimal search path in polygons

• Strat1:

fully visit any corridor

• Strat2:

visit all corr. depth d = 1 visit all corr. depth d = 2

visit all corr. depth d = 4 etc.

• Strat2 seems to be better:

close targets s are visited earlier

• Can we give a measure?

(21)

Search ratio for polygons

π: Searchpath, quality for π: SR(π, P) = max

p∈P

sp0| + |p0p|

|sp(s, p)|

sp(s, p) s

π p0

p

(22)

Search ratio in general

Given: Environment E, Set of goals G ⊆ E Graphs G = (V, E): Vertices G = V

Geometric Search G = V ∪ E (Requirement: ∀p ∈ E : |sp(s, p)| = |sp(p, s)|)

Search ratio of a search strategy A for E: SR(A, E) := sup

p∈G

|A(s, p)|

|sp(s, p)|

Optimal search ratio:

SROPT(E) := inf

A SR(A, E)

(23)

Path with optimal search ratio

• Graphs (offline): NP-hard

• Polygons (offline): ???

• Online: Approximation is possible

⇒ Goal: Approximate the path with opt. search ratio

(24)

Search ratio approximation

• Competitive ratio : C := sup

E

sup

p∈G

|A(s, p)|

|sp(s, p)|

• Search ratio: SR(A, E) := sup

p∈G

|A(s, p)|

|sp(s, p)|

• Optimal search ratio: SROPT(E) := inf

A SR(A, E)

• Approximation: A search-competitiv Cs := sup

E

SR(A, E) SROPT(E)

• Comparison not against SP, but against best possible SR

(25)

Depth-restricted exploration

Def. Exploration-Strategy Expl for E is called depth-restrictable, if we can derive a strategy Expl (d) such that:

• Expl (d) explores E up to depth d ≥ 1

• return to s after the exploration

• Expl (d) is C-competitive, i.e.,∃C ≥ 1 : ∀E:

|Expl (d)| ≤ C · |ExplOPT(d)| .

P(d) d

(26)

Searchpath approximation

Algorithm

• Explore E by increasing depth: Expl (2i) f¨ur i = 1, 2, . . . Lemma:

• Agent without vision system

• Environment E

• ExplONL: C-competitive, depth-restrictable, online exploration strategy for E

(d. h. |Expl (d)| ≤ C · |ExplOPT(d)|)

⇒ Algorithm gives 4C-Approximation of optimal search path!

(27)

Searchpath approximation proof

Explopt(d)| ≤ d · (SR(Πopt) + 1) (1)

SR(Π) ≤

j+1

P

i=1

Expl(2i)| 2j + ε

(Ass.)

C 2j

j+1

X

i=1

Expl

opt(2i)| ≤(1) C 2j

j+1

X

i=1

2i · (SR(Πopt) + 1)

≤ C ·

2j+2 − 1 2j

· (SR(Πopt) + 1) ≤ 4C · (SR(Πopt) + 1)

(28)

Applications

• Corollay:

Trees: Exploration by DFS (C = 1) Online or Offline, depth restricted, simple

⇒ Searchpath approximation of factor 4

• Graphs: Online and Offline!

CFS (C = 4 + α8) depth-restrictable!!

• But: Factor depends on rope length (1 + α)r by depth r

• CFS sometimes explores more than d (precisely (1 + α)d)

⇒ Expl (d) not comparable to ExplOPT(d)

• Workaround: Compare Expl (d) with ExplOPT(β · d)

(29)

β -depth restricted exploration

Def. Exploration strategy Expl for E is denoted as β-depth restrictable, if we can derive a strategy Expl (d) such that:

• Expl (d) explores E only up to depth d ≥ 1

• returns to the start s

• Expl (d) is Cβ-competitiv, i.e., ∃Cβ ≥ 1, β > 0 : ∀E:

|Expl (d)| ≤ Cβ · |ExplOPT(β · d)| .

P(d) d

(30)

Searchpath approximation

Theorem:

• Agent without vision

• Environment E

• Expl : Cβ-competitive, β-depth restrictable, online exploration strategy for E, (i.e., |Expl (d)| ≤ Cβ · |ExplOPT(β · d)|)

⇒ Algorithm (exploration/double depth) gives a 4βCβ-approximation of the optimal searchpath

Corollary: Unknown graphs, Algorithm with CFS is 4(1 + α)(4 + α8)-approximation of optimal searchpath

Referenzen

ÄHNLICHE DOKUMENTE

Online Motion Planning MA-INF 1314 Smart DFS. Elmar Langetepe University

Lemma Asumme the agent does not leave the labyrinth by Pledge and let Π ◦ be the repeated path.. Moves

Online Motion Planning MA-INF 1314 General rays!. Elmar Langetepe University

Leave the area as soon as possible Lost in a forest Bellman 1956 Escape paths for known region R Single deterministic path.. Leave area from any starting point Adversary translates

Online Motion Planning MA-INF 1314 Restricted Graphexploration.. Elmar Langetepe University

Online Motion Planning MA-INF 1314 Searching Points/Rays.. Elmar Langetepe University

Online Motion Planning MA-INF 1314 General rays!. Elmar Langetepe University

Online Motion Planning MA-INF 1314 Alternative cost measures!. Elmar Langetepe University