the touring polygons problem tpp
play

The Touring Polygons Problem (TPP) [Dror-Efrat-Lubiw-M]: Given a - PowerPoint PPT Presentation

The Touring Polygons Problem (TPP) [Dror-Efrat-Lubiw-M]: Given a sequence of k polygons in the plane, a start point s , and a target point, t , we seek a shortest path that starts at s , visits in order each of the polygons, and ends at t . s P


  1. The Touring Polygons Problem (TPP) [Dror-Efrat-Lubiw-M]: Given a sequence of k polygons in the plane, a start point s , and a target point, t , we seek a shortest path that starts at s , visits in order each of the polygons, and ends at t . s P P 4 3 P 1 t P 2

  2. Related Problem: TSPN: If the order to visit { P 1 , P 2 , . . . , P k } is not specified, we get the NP-hard TSP with Neighborhoods problem. TSPN: O (log n ) -approx in general O (1) -approx, PTAS in special cases

  3. The Fenced Problem: Here that part of the path connecting P i to P i +1 must lie inside a a simple polygon F i , called the fence . F 1 s P 1

  4. The Fenced Problem: F 1 s P 1

  5. The Fenced Problem: F 1 s P 1 F 2 P 2

  6. The Fenced Problem: F 1 s P P 3 1 F 2 P 2 F 3

  7. The Fenced Problem: F 1 s F 4 P 4 P P 3 1 F 2 P 2 F 3

  8. The Fenced Problem: F 1 s F 4 P 4 P P 3 1 F 5 F 2 t P 2 F 3

  9. Applications: Parts Cutting Problem: 3 2 1 4 7 5 8 s 6

  10. Applications: Safari Problem: s

  11. Applications: Zookeeper Problem: s

  12. Applications: Watchman Route Problem: Essential cut s Fact: The optimal path visits the essential cuts in the order they appear along ∂P .

  13. Summary of TPP Results: • Disjoint convex polygons: O ( kn log( n/k )) time, O ( n ) space (For fixed s, { P 1 , P 2 , . . . , P k } , O ( k log( n/k )) shortest path queries to t .) O ( nk 2 log n ) time, O ( nk ) space • Arbitrary convex polygons: worst-case size Θ(( n − k )2 k ) • Full combinatorial map: Output-sensitive algorithm; O ( k + log n ) -time shortest path queries. • TPP for nonconvex polygons: NP-hard FPTAS, as special case of 3D shortest paths

  14. • Applications: – Safari: O ( n 2 log n ) vs. O ( n 3 ) – Watchman: O ( n 3 log n ) vs. O ( n 4 ) floating watchman: O ( n 4 log n ) vs. O ( n 5 ) We avoid use of complicated path “adjustments” arguments, DP – Parts cutting: O ( kn log( n/k ))

  15. Relationship to 3D Shortest Paths:

  16. Relationship to 3D Shortest Paths:

  17. Relationship to 3D Shortest Paths: We show: • Holes are convex: poly-time last-step SPM • Non-convex holes: NP-hard

  18. Unconstrained TPP: Disjoint Convex Polygons: s , t , sequence of disjoint convex polygons ( P 1 , . . . , P k ) Given: Find a shortest k -path from s = P 0 to t . Goal: Local Optimality Conditions:

  19. Unconstrained TPP: Disjoint Convex Polygons: For any t ∈ ℜ 2 and any i ∈ { 0 , . . . , k } , ∃ unique shortest Lemma: i -path, π i ( p ) , from s = P 0 to t . Thus, local optimality is equivalent to global optimality. In the TPP for disjoint convex polygons ( P 1 , . . . , P k ) , each Lemma: first contact set T i is a (connected) chain on ∂P i . For any p ∈ ℜ 2 and any i , there is a unique point p ′ ∈ T i such Lemma: that π i ( p ) = π i − 1 ( p ′ ) ∪ p ′ p .

  20. General Approach: Build a Shortest Path Map: SPM k ( s ) : a decomposition of the plane into cells according to the combinatorial type of a shortest k -path to t t r t r s s Bad news: worst-case size can be huge : The worst-case complexity of SPM k ( s ) is Ω(( n − k )2 k ) Theorem:

  21. s

  22. s

  23. 2i s 2i+1

  24. Good news: worst-case size cannot be bigger than “huge”: The worst-case complexity of SPM k ( s ) is O (( n − k )2 k ) Theorem: Size m i satisfies m i ≤ 2 m i − 1 + O ( | P i | ) . Output-sensitive algorithm to build SPM: One can compute SPM k ( s ) in time O ( k · | SPM k ( s ) | ) , after Theorem: which a shortest k -path from s to a query point t can be computed in time O ( k + log n ) .

  25. Last Step Shortest Path Map: T i = first contact set of P i : points where a shortest ( i − 1) -path first enters P i after visiting P 1 , . . . , P i − 1 For p ∈ T i : r s i ( p ) = set of rays of locally shortest i -paths going straight through p : a single ray r b i ( p ) = set of rays of locally shortest i -paths properly reflecting at p a single ray ( p interior to an edge of T i ), or a cone ( p a vertex of T i ) r i ( p ) = r s i ( p ) ∪ r b i ( p ) R i = ∪ p ∈ T i r i ( p ) (an infinite family of rays) is the starburst with source T i

  26. The Last Step Shortest Path Map: S i = the last step shortest path map, subdivision according to the combinatorial type of the rays of R i passing through points p ∈ ℜ 2 S i decomposes the plane into cells σ of two types: (1) cones with an apex at a vertex v of T i , whose bounding rays are reflection rays r ′ 1 ( v ) and r ′ 2 ( v ) v is the source of cell σ (2) unbounded 3-sided regions associated with edge e of T i , classified as • reflection cells or • pass-through cells e is the source of cell σ The pass-through region is the union of all pass-through cells

  27. Last Step Shortest Path Map: v Pass−through Region 1 v e v 6 1 5 P v 1 1 v 2 v v v v 2 4 3 4 e 3 s e v 2 3

  28. P 1 v 8 e e 8 7 v s 7 v v 7 8 P v 2 9 v v 11 10 v Pass−through region 9

  29. Using the Last Step Shortest Path Map: Find a shortest i -path to query point q : Locate q in S i [ O (log | P i | ) ] • cell σ rooted at vertex v of T i − → last segment of π i ( q ) is vq recursively compute π i − 1 ( v ) (locate v in S i − 1 , etc) • cell σ rooted at edge e of T i – σ is pass-through: π i ( q ) = π i − 1 ( q ) , so recursively compute shortest ( i − 1) -path to q – σ is a reflection cell: recursively compute shortest ( i − 1) - path to q ′ , the reflection of q wrt e Given S 1 , . . . , S i , π i ( q ) can be determined in time O ( k log( n/k )) Lemma :

  30. Algorithm: Construct each of the subdivisions S 1 , S 2 , . . . , S k iteratively: For each vertex v j of P i +1 , we compute π i ( v j ) . If this path arrives at v j from the inside of P i +1 , then v j is not a vertex of T i +1 . Otherwise it is, and the last segment of π i ( v j ) determines the rays r b i ( v j ) and r s i ( v j ) that define the subdivision S i +1 . For a given sequence ( P 1 , . . . , P k ) of k disjoint convex poly- Theorem : gons having a total of n vertices, a data structure of size O ( n ) can be constructed in time O ( kn log( n/k )) that enables shortest i -path queries to any query point q to be answered in time O ( i log( n/k )) .

  31. TPP for Fenced, Arbitrary Convex Polygons: Use Last Step Shortest Path Maps, but combinatorics and algorithm are substantially more complex. Needed for Safari, Watchman Route, Zookeeper.

  32. TPP on Nonconvex Polygons: The TPP in the L 1 metric is polynomially solvable (in Proposition: O ( n 2 ) time and space) for arbitrary rectilinear polygons P i and arbitrary fences F i . The result lifts to any fixed dimension d if the regions P i and the constraining regions F i are orthohedral. P P P 2 4 1 t s P 3

  33. TPP on Nonconvex Polygons: The touring polygons problem is NP-hard, for any L p metric Theorem: ( p ≥ 1 ), in the case of nonconvex polygons P i , even in the unconstrained ( F i = ℜ 2 ) case with obstacles bounded by edges having angles 0, 45, or 90 degrees with respect to the x -axis. Proof: from 3-SAT based on a careful adaptation of Canny-Reif proof

  34. Open Problem: What is the complexity of the TPP for disjoint non-convex simple polygons?

  35. 3D Shortest Paths: Background: • NP-hard in general [CR] • FPTAS [Pa],[Cl],[CSY],[H-P] (1 + ǫ ) -approx in time poly( n, 1 /ǫ ) • Special cases: surfaces, k convex polytopes, buildings of k heights (time O ( n O ( k ) ) )

  36. Shortest Paths Among Stacked (Flat) Obstacles: If obstacles are complements of convex polygons: TPP solves (case includes halfplanes)

  37. Shortest Paths Among Stacked (Flat) Obstacles: If obstacles are complements of convex polygons: TPP solves (case includes halfplanes) What if obstacles are convex polygons?

  38. Shortest Paths Among Stacked (Flat) Obstacles: If obstacles are complements of convex polygons: TPP solves (case includes halfplanes) What if obstacles are convex polygons? Canny-Reif: NP-hard for stacked 45-45-90 triangles

  39. Shortest Paths Among Stacked (Flat) Obstacles: If obstacles are complements of convex polygons: TPP solves (case includes halfplanes) What if obstacles are convex polygons? Canny-Reif: NP-hard for stacked 45-45-90 triangles What about axis-aligned rectangular obstacles?

  40. Shortest Paths Among Stacked (Flat) Obstacles: If obstacles are complements of convex polygons: TPP solves (case includes halfplanes) What if obstacles are convex polygons? Canny-Reif: NP-hard for stacked 45-45-90 triangles What about axis-aligned rectangular obstacles? New result: Still NP-hard [M-Sharir]

  41. Hardness Proof: Theorem: The Euclidean shortest path problem is NP-hard for a stack of axis-parallel rectangles as obstacles. Proof: from 3-SAT, based on modified Canny-Reif proof • Use a cascade of path splitter gadgets to get 2 n combinatorially distinct path classes Paths encode an assignment of the n variables: path # i encodes assignment given by the ( n -bit) binary representation of i . • Use path shuffle gadgets to rearrange paths within a class • Use shuffle gadgets to construct a literal filter: the only path classes that pass through unobstructed are those having bit b i set accordingly

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend