route planning for bicycles - exact constrained shortest...
TRANSCRIPT
![Page 1: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/1.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
Sabine Storandt
Route Planning for Bicycles – Exact Constrained Shortest Pathsmade Practical via Contraction Hierarchy
ICAPS 2012
![Page 2: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/2.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
MOTIVATION
Bicycle route from A to B
• should be short• but bear not too much
hard climbs
RED:
BLACK:
PURPLE:
length height difference
7.5km
19.1km
7.7km
517m
324m
410m
Optimization ProblemFind the shortest path fromA to B with a (positive)height difference smallerthan H.
![Page 3: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/3.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
MOTIVATION
Bicycle route from A to B
• should be short• but bear not too much
hard climbs
RED:
BLACK:
PURPLE:
length height difference
7.5km
19.1km
7.7km
517m
324m
410m
Optimization ProblemFind the shortest path fromA to B with a (positive)height difference smallerthan H.
Constrained Shortest Path(CSP)NP-hard
![Page 4: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/4.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
FORMAL PROBLEM DEFINITION
GivenG(V,E) (street) graphc : E → R+
0 costr : E → R+
0 resource consumption
Goalfor s, t ∈ V , R ∈ R+
0 compute minimal cost path p froms to t whose resource consumption does not exceed R
min c(p) =∑
e∈p c(e)
s.t. r(p) =∑
e∈p r(e) ≤ R
![Page 5: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/5.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
FORMAL PROBLEM DEFINITION
Bicycle Route Planning
costs: euclidean distance [OSM]resource: positive height difference
h : V → Z elevation [SRTM]r(e) = max(h(w)− h(v), 0) ∀e = (v, w)
126m
120m
132m
128m 128m
130m
0
120
0 2
![Page 6: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/6.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRIBUTION
Adaption of speed-up techniques for the shortestpath problem to reduce
• query time
• space consumption
for exact CSP computation in large street networks.
Focus Contraction Hierarchy
![Page 7: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/7.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 8: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/8.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
PQ = (0,0,s)
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 9: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/9.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
PQ =
(3,2)
(5,11)
(4,5)
(3,2,a), (4,5,d), (5,11,c)
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 10: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/10.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(5,11)
(3,2)
(4,5)
(4,5,d), (5,11,c), (9,4,b)PQ =
(9,4)ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 11: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/11.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(3,2) (9,4)
(4,5)
PQ = (5,6,c), (9,4,b)
(5,6)
(11,13)
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 12: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/12.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(3,2) (9,4)
(5,6)
(11,13)
(4,5)
PQ = (8,10,b),(9,4,b)
(8,10)
(15,9)
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 13: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/13.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(3,2)(8,10)(9,4)
(5,6)
(4,5)
(11,13)
(15,9)
PQ = (9,4,b)
(12,11)
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 14: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/14.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(3,2)(8,10)(9,4)
(5,6)
(4,5)
(11,13)(12,11)(13,5)
PQ = ∅
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
![Page 15: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/15.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
LABEL SETTING ALGORITHM[Aggarwal, Aneja, and Nair 1982]
s t
(6,2)
(4,1)(3,2)
(5,11)
(3,4)
(10,3)
(7,8)(4,5)(1,1)
a b
c
d
(0,0)
(3,2)(8,10)(9,4)
(5,6)
(4,5)
(11,13)(12,11)(13,5)
PQ = ∅
ApproachAssign to each node thelist of pareto-optimaltuples.
Pareto-optimal =̂ nodominating path exists
p′ dominates p ifc(p′) ≤ c(p) andr(p′) ≤ r(p)
Similarities to Dijkstra• operates directly on
the graph• PQ and edge
relaxation• bidirectional version
exists
![Page 16: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/16.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
SIMPLE PRUNING[Aneja, Aggarwal, and Nair 1983]
s
t
5
4
6
1 2 4
15
53
7
IdeaConsider only resourceconsumption
∀v ∈ V computeminimal resourceconsumption rmin for apath s, · · · , v, · · · , t(via two Dijkstra runs)
Prune all nodes withrmin(v) > R
![Page 17: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/17.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
SIMPLE PRUNING[Aneja, Aggarwal, and Nair 1983]
s
t
5
4
6
1 2 4
15
53
R = 7
4+87+3
7+0
∞+5
0+7
4+5
3+41+6
7
IdeaConsider only resourceconsumption
∀v ∈ V computeminimal resourceconsumption rmin for apath s, · · · , v, · · · , t(via two Dijkstra runs)
Prune all nodes withrmin(v) > R
![Page 18: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/18.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
SIMPLE PRUNING[Aneja, Aggarwal, and Nair 1983]
s
t
5
4
6
1 2 4
15
53
R = 7
4+87+3
7+0
∞+5
0+7
4+5
3+41+6
7
IdeaConsider only resourceconsumption
∀v ∈ V computeminimal resourceconsumption rmin for apath s, · · · , v, · · · , t(via two Dijkstra runs)
Prune all nodes withrmin(v) > R
R = 10
7+3
4+5
![Page 19: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/19.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
SIMPLE PRUNING[Aneja, Aggarwal, and Nair 1983]
s
t
5
4
6
1 2 4
15
53
R = 7
4+87+3
7+0
∞+5
0+7
4+5
3+41+6
7
IdeaConsider only resourceconsumption
∀v ∈ V computeminimal resourceconsumption rmin for apath s, · · · , v, · · · , t(via two Dijkstra runs)
Prune all nodes withrmin(v) > R
R = 10 R = 15
7+3
4+5
4+8
ProblemImpact low if• R is large• r(e) small for many e ∈ E
![Page 20: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/20.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
12
44
3
6
![Page 21: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/21.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
1. Assign distinct importance values to the nodes
12
44
3
6
37 64
12
4
![Page 22: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/22.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
1. Assign distinct importance values to the nodes
2. Remove nodes one by one in order of importance(’contraction’)
Task: maintain all shortest path distances inremaining graphAdd shortcut if no witness foundWitness: path shorter than reference path
12
44
3
6
37 64
12
4
![Page 23: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/23.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
1. Assign distinct importance values to the nodes
2. Remove nodes one by one in order of importance(’contraction’)
Task: maintain all shortest path distances inremaining graphAdd shortcut if no witness foundWitness: path shorter than reference path
12
4
3
4
3
6
37 64
12
4
![Page 24: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/24.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
1. Assign distinct importance values to the nodes
2. Remove nodes one by one in order of importance(’contraction’)
Task: maintain all shortest path distances inremaining graphAdd shortcut if no witness foundWitness: path shorter than reference path
3. Add all shortcuts to original graph
12
4
3
4
3
6
37 64
12
4
Every SP can be divided into s ↑ and ↓ t
![Page 25: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/25.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONTRACTION HIERARCHY[Geisberger et al. 2008]
Graph preprocessing method
1. Assign distinct importance values to the nodes
2. Remove nodes one by one in order of importance(’contraction’)
Task: maintain all shortest path distances inremaining graphAdd shortcut if no witness foundWitness: path shorter than reference path
Query Answeringbidirectional: only relax edges to nodes withhigher importance
3. Add all shortcuts to original graph
importance
12
4
3
4
3
6
37 64
12
4
Every SP can be divided into s ↑ and ↓ t
![Page 26: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/26.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Task maintain all pareto-optimal paths
Witness must dominate reference path
![Page 27: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/27.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Task maintain all pareto-optimal paths
Witness must dominate reference path
(6,5)(4,2)
(1,1)
(2,1)
(2,1)
(4,3)(3,6)
(10,7)
(7,9)
(5,3)
reference path
witness path
NO witnessuw
v
![Page 28: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/28.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Task maintain all pareto-optimal paths
Witness must dominate reference path
Naive Witness Searchreference path p = uvw
• start label setting computation(LSC) in u with R = r(p)
• if w receives label with c ≤ c(p), r ≤ r(p), break→ witness path found
• insert shortcut if no witness was found
(6,5)
(4,2)
(1,1)
(2,1)
(2,1)
(4,3)
(3,6)
(10,7)
(7,9)
(5,3)
reference path
witness path
NO witnessuw
v
![Page 29: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/29.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Task maintain all pareto-optimal paths
Witness must dominate reference path
Naive Witness Searchreference path p = uvw
• start label setting computation(LSC) in u with R = r(p)
• if w receives label with c ≤ c(p), r ≤ r(p), break→ witness path found
• insert shortcut if no witness was found
ProblemLSC might bevery time andspace consuming
(6,5)
(4,2)
(1,1)
(2,1)
(2,1)
(4,3)
(3,6)
(10,7)
(7,9)
(5,3)
reference path
witness path
NO witnessuw
v
![Page 30: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/30.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Basic IdeaRestrict witness search first to paths on the lower convex hull.
Lower Convex Hull(LCH)for every v-w-path p:represent (c(p), r(p)) as linesegment λc(p) + (1− λ)r(p),λ ∈ [0, 1]
p ∈ LCH(v, w)⇔ ∃λ ∈ [0, 1] forwhich line segment of p is minimal
p1 : (11, 2)
p2 : (6, 3)
p3 : (1, 8)
p4 : (5, 7)
p5 : (4, 8)
r c
0 1 λ
![Page 31: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/31.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Basic IdeaRestrict witness search first to paths on the lower convex hull.
Advantagepaths on the LCH can be found by a Dijkstra run in Gλ
Gλ: edges have single weight w(e) = λc(e) + (1− λ)r(e)
![Page 32: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/32.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
Basic IdeaRestrict witness search first to paths on the lower convex hull.
Advantagepaths on the LCH can be found by a Dijkstra run in Gλ
Gλ: edges have single weight w(e) = λc(e) + (1− λ)r(e)
In which cases does exploring the LCH help?
What if LCH check procedure is inconclusive?
![Page 33: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/33.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
In which cases does exploring the LCH help?
![Page 34: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/34.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
(6,5)(4,2)
(1,1)
(2,1)
(2,1)
(4,3)(3,6)
(10,7)
(7,9)
(5,3)
reference path
witness path
NO witnessuw
v
In which cases does exploring the LCH help?
1. If dominating path is part of the LCH.witness path found, shortcut can be omitted
r c
0 λ1
![Page 35: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/35.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
In which cases does exploring the LCH help?
1. If dominating path is part of the LCH.witness path found, shortcut can be omitted
2. If reference path is part of the LCH.
(7,2)
(3,2)(1,1)
r c
0 λ1
r c
0 λ1
r c
0 λ1
no dominating path exists, shortcut must be inserted
(7,2)
(4,3) reference path
![Page 36: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/36.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
WITNESS SEARCH FOR CSP
What if LCH check procedure is inconclusive?
Reasons
1. Neither p nor a possible witness are part of the LCH.2. Number of λ support points too small.
Possibilities
• Apply LSC on top.or• Add shortcut without further care.
![Page 37: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/37.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
EXPERIMENTAL RESULTS
Preprocessing
• t = 3 support points led to a conclusive result of theLCH-checker in 62% of the cases
• number of edges in CH-graph about twice the number oforiginal edges (comparable to the conventional case)
Query Answering
• speed-up about two orders of magnitude
• remarkably less space consumption (8GB laptop sufficient,before some queries failed even on a 96GB server)
Test Graphs 10k - 5.5m nodes
![Page 38: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/38.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
CONCLUSIONS
Also in the paper...• speed-up via CH for dynamic programming CSP solution• CSP-variant of arc-flags
Future Work• combination with other techniques/heuristics (e.g. A∗)• consider other metric combinations and more
complicated scenarios, e.g. edge cost functions
Can answer exact CSP queries in graphs with up to 500knodes in time less than one second!
![Page 39: Route Planning for Bicycles - Exact Constrained Shortest ...icaps12.icaps-conference.org/technicalprogram/presentations/csp.pdf · 7+0 1+5 0+7 4+5 1+6 3+4 7 Idea Consider only resource](https://reader035.vdocuments.us/reader035/viewer/2022071004/5fc0ceb04790ff1030030e16/html5/thumbnails/39.jpg)
Sabine Storandt
Route Planning for Bicycles - Exact Constrained Shortest Path made Practical via Contraction Hierarchy
THANK YOU...
... for your attention!
Questions?