Optimistic Shortest Paths On Uncertain Terrains: 16th Canadian Conference On Computational Geometry, 2004
Optimistic Shortest Paths On Uncertain Terrains: 16th Canadian Conference On Computational Geometry, 2004
Optimistic Shortest Paths On Uncertain Terrains: 16th Canadian Conference On Computational Geometry, 2004
William Evans
Department of Computer Science
University of British Columbia
Chris Gray
Department of Computer Science
University of British Columbia
X
@W
X
cW
XY
UeW
XY
UeW
T C w&c vC trQq C T C p i
u s P
f
hg@
9
Given an uncertain terrain and two points and in the plane, we want to nd a path from to that has the shortest
length among all paths from to where the path length is
measured on the consistent terrain that minimizes the length.
Cast as a decision problem, this becomes, Is there a path
from to on some consistent terrain of length at most ?
We call this the optimistic shortest path since we are measuring a path on the consistent terrain that minimizes its length.
X
cW
C
p (C F
h@
9
($ "
)'&%#!
7 5 31
86420
T R P
VU C SQI H)( GFDB
( EC
A@
9
X
@W
XY
`GW
68
A terrain is a two-dimensional surface in three-dimensional
space obtained by triangulating the projection into the plane of a set of vertices in 3D (no two of which share
the same
coordinates) and using linear interpolation to
obtain the surface within each triangle.
X
cW
We show that nding the optimistic shortest path on an uncertain terrain is NP-hard using a reduction similar to Canny
and Reifs reduction of 3SAT to 3D Euclidean shortest path.
q
cl p
p
8o
box is to lengthen each path class that does not have a setting
that satises the clause. After the clause boxes, the paths are
directed through another cascade of path splitters, this time
reversed. After the last one, there is only one path class left.
We place in this path class, and by measuring the shortest
path length from to , we can determine if any one of the
shortest routes have not been lengthened. If so, then we
know that our formula is satisable.
q
jo
7eY Y e
8t6p1 p
Input Vertex
Front View
Reversed
splitters
7 Y Y
`6&1
7 Y Y
o`6&1
7k e Y i Y Y e
4j& j&nFU1
Output Edge
Back View
Clause boxes
Splitters
A#g
9
" s
C @ C R g
h 7tt& j68FU1
keY iY Ye
7p`Y@`Yp1
e
h
7 Y Y
p`@`@d1
e
r
C n)H(w Gi tp u
m s
h#g
9
hg#g
9
C @s i tp u
s$ s
g 8t6p1
7eY Y e
l
7 Y Y
`@`&1
Back View
Front View
GF
Input Edge
Output Vertex
69
3
r 3
$
p C &)w
H#g
9
A clause box consists of two cascaded splitter / rotator combinations that have the effect of splitting each path into four
copies. These are followed by a literal lter for each literal
in the clause put in parallel so that each of the copies of a
given path goes through exactly one literal lter. Finally, we
add two reversed splitter / rotator combinations.
A short path exists through this gadget if and only if
belongs to a path class that corresponds to a truth assignment
that satises at least one literal in the clause.
zvu w v
8Fyx'e
gh
f
g
Qf
Splitters
7
3
6
2
5
1
4
0
Literal filters
7 } w {5 1
Y Y
f
h
7F8FF8tc8Fu r F8e g r j6'SnFU1
kzvu w veY zv v iY w Ye
7YeY
pnFj1
7 Y Y
p`@`&1
s
tp u C !&s i ) T Q !F C R
( ( ( m P C " s
7
4k w { `Y qr W ijY68Y41
W
w
82
7 Y Y WY i
pn&`k { U#W `1
7Y W
pn&nY 41
d
cW
7 WY Y
U6841
7 Y W
``Y 41
7 Y Y
pn&`@d1
g
U`
Proof. In order to nd the locally optimal path across a rotator, rst we consider the unfolding of the rotator when the
output vertex is at its lowest possible elevation and
.
The shortest path from the point
is clearly the
straight line across to
. If we refold the rotator,
this point goes to
. Since points can only exit via
the output vertex, the output vertex must move to that point.
7 Y eY
`pt&1
7 YeYe
`FjFU1
C )Hwc! C (
( w
H#g
9
The literal lter is a meta-gadget. It consists of path shufers and one barrier. We use the literal lter in order to
stretch out paths that have a truth value that is opposite the
truth value asked for in a clause. For example, if we want to
express , we stretch all paths in those path classes whose
7 ~r |r &n@d1
} { 5 Y Y
0 1 2 3
4 5 6 7
Input Edge
Figure 4: The shufer viewed from above. The circled regions contain rotators, shown projected into the
plane
above the shufer at the correct relative heights. The vertex marked is the output vertex.
#W
70
Splitters
representing one truth assignment to a path class that represents another by making the initial wall very wide. Since the
width of a path class only grows by
for each gadget, the
path classes are never close enough that changing from one
to the other is a locally optimal motion. Thus we have
5 w 5
C C C P
C
[1] Tetsuo Asano, David Kirkpatrick, and Chee K. Yap. d optimal motion for a rod. In Proceedings of the Twelfth
Annual Symposium On Computational Geometry (ISG
96), pages 252263, New York, May 1996. ACM Press.
[2] Chanderjit Bajaj. The algebraic degree of geometric optimization problems. Discrete Comput. Geom.,
3(2):177191, 1988.
[3] John Canny and John Reif. New lower bound techniques
for robot motion planning problems. In Ashok K. Chandra, editor, Proceedings of the 28th Annual Symposium
on Foundations of Computer Science, pages 4960, Los
Angeles, CA, October 1987. IEEE Computer Society
Press.
[4] Sanjiv Kapoor. Efcient computation of geodesic shortest paths. In ACM, editor, Proceedings of the thirty-rst
annual ACM Symposium on Theory of Computing: Atlanta, Georgia, May 14, 1999, pages 770779, New
York, NY, USA, 1999. ACM Press.
[5] Joseph S. B. Mitchell, David M. Mount, and Christos H.
Papadimitriou. The discrete geodesic problem. SIAM J.
Comput., 16(4):647668, 1987.
5 w 5
7 w 1
4
l
8
w
8
Un
k { `Y iW
W
5 w 5
ghf
k w { `Y r iW
W
'
w
'
7 Y Y W i
p`@`k { UY W `1
W
e { W
7
4k w'vFwFw { WUY |r 8FuwecW nd1
z u v
zv v w iY w Y
7k e8vFu r v r { UY r z8Fu r r cW V|nd1
w z
W
v v iY w Y
7 z v u w v 1
8w 5 'FyqF4w 5
Proof. The locally optimal motion for a path entering a shufer is for the path to travel in a straight line to the rotator
across from it. Once it is at the rotator, Lemma 1 applies.
From Lemma 1 and Lemma 2, we can deduce the maximum distance possible for any locally optimal path that corresponds to a truth assignment that satises the formula .
This distance will always be less than the minimum distance
of any path that is either not locally optimal or that corresponds to a truth assignment that does not satisfy the formula . We ensure that no path crosses from a path class
71