1.5-side Boundary Labeling
Chun-Cheng Lin | National Chiao Tung University |
Sheung-Hung Poon | National Tsing Hua University |
Shigeo Takahashi | The University of Tokyo |
Hsiang-Yu Wu | The University of Tokyo |
Hsu-Chun Yen | National Taiwan University |
Boundary labeling (Bekos et al., GD 2004)
(Bekos & Symvonis, GD 2005)
Min (total leader length or
total bend number)
s.t. #(leader crossing) = 0
1-side, 2-side, 4-side
site
label
leader
Variants
1.5-side Boundary Labeling
#1
#2
#3
#4
#5
#6
indirect
leader
#1
#2
#3
#4
#5
#6
direct leader
Problem Setting
Nonuniform label
#1
#2
Uniform label
#1
#2
#3
Problem Setting
#1
#2
Fixed-position port (FP)
Fixed-ratio port (FR)
Sliding port
#1
#2
#1
#2
α
α
Problem Setting
Min (total bend num)
(TBM for short)
Min (total leader length)
(TLLM for short)
#1
#2
#3
#4
#4
#1
#2
#3
#1
#2
#3
#3
#1
#2
#(bends) = 6
#(bends) = 2
longer length
shorter length
Assumptions
pj
pi
map
label
Aleft
Aright
pi–1
j
i
pj+1
pj
pi
map
label
Aleft
Aright
pi–1
j
i
pj+1
#1
#2
#3
#4
#5
#6
Our Contributions
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
* Pseudo-polynomial time algorithms and fixed-parameter algorithms are� designed for those intractable problems.
Solved all the problems of all the combinations of (LabelSize, LabelPort, Objective).
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
(LabelSize, | LabelPort, | Objective) | time | reference |
(uniform, | FR/sliding, | TLLM) | O(n log n) | Thm 1 |
p
U
B
p
B
U
p
B
lh
B
lv
B
leader l
p
B
|U|
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
(LabelSize, | LabelPort, | Objective) | time | reference |
(uniform, | FP, | TLLM) | O(n5) | Thm 2 |
pb
pa
(c+b-a)-th
c-th
map
label
S(a, b, c) =
// all direct leaders
// downward indirect leader
// upward indirect leader
// the solution of the problem with pa, pa+1, …, pb connected to label positions c to c+(b-a)+1
# = (b+a)+1
(LabelSize, | LabelPort, | Objective) | time | reference |
(uniform, | FP, | TLLM) | O(n5) | Thm 2 |
S(a, b, c) =
// all direct leaders
// downward indirect leader
// upward indirect leader
// the solution of the problem with pa, pa+1, …, pb connected to label positions c to c+(b-a)+1
pb
pa
(c+b-a)-th
c-th
map
label
(LabelSize, | LabelPort, | Objective) | time | reference |
(uniform, | FP, | TLLM) | O(n5) | Thm 2 |
pb
pa+i+1
pa+i-1
pa+j
pa+j-1
pa
pa+i
(c+b-a)-th
(c+i)-th
(c+j-1)-th
c-th
(c+j+1)-th
(c+i+1)-th
map
label
S(a+i+1, b, c+i+1)
S(a+j, a+i-1, c+j+1)
S(a, a+j-1, c)
(c+j)-th
S(a, b, c) =
// all direct leaders
// downward indirect leader
// upward indirect leader
// the solution of the problem with pa, pa+1, …, pb connected to label positions c to c+(b-a)+1
(LabelSize, | LabelPort, | Objective) | time | reference |
(uniform, | FP, | TLLM) | O(n5) | Thm 2 |
pb
pa+j+1
pa+j
pa+i+1
pa+i-1
pa
pa+i
(c+b-a)-th
(c+i)-th
(c+j-1)-th
c-th
(c+i-1)-th
(c+j+1)-th
map
label
S(a+j+1, b, c+j+1)
S(a, a+i-1, c)
(c+j)-th
S(a+i+1, a+j, c+i)
pb
pa+i+1
pa+i-1
pa+j
pa+j-1
pa
pa+i
(c+b-a)-th
(c+i)-th
(c+j-1)-th
c-th
(c+j+1)-th
(c+i+1)-th
map
label
S(a+i+1, b, c+i+1)
S(a+j, a+i-1, c+j+1)
S(a, a+j-1, c)
(c+j)-th
S(a, b, c) =
// all direct leaders
// downward indirect leader
// upward indirect leader
// the solution of the problem with pa, pa+1, …, pb connected to label positions c to c+(b-a)+1
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
Total Discrepancy Problem is NP-complete
0
M
J0
J1
J2
J3
J4
J0
J1
J2
J3
J4
(LabelSize, | LabelPort, | Objective) | time | reference |
(nonuniform, | FR/FP/sliding, | TLLM) | NP-complete* | Thm 3 |
0
M
J0
J1
J2
J3
J4
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
(LabelSize, | LabelPort, | Objective) | time | reference |
(nonuniform, | FR/FP/sliding, | TBM) | NP-complete* | Thm 4 |
pn+1
pn+2
hmin
Subset Sum Problem
Input: A = {a1, …, an} and� a num B = (a1 + … + an)/2
Question: find a subset A’ ⊆ A
such that
sum(elements in A’) = B
< hmin
< hmin
h/2
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
* Pseudo-polynomial time algorithms and fixed-parameter algorithms are� designed for those intractable problems.
(LabelSize, | LabelPort, | Objective) | time | reference |
(nonuniform, | FR/FP/sliding, | TLLM) | NP-complete* | Thm 3 |
(nonuniform, | FR/FP/sliding, | TBM) | NP-complete* | Thm 4 |
S(a, b, t ) =
S(a, b, c) =
// all direct leaders
// downward indirect leader
// upward indirect leader
// the solution of the problem with pa, pa+1, …, pb connected to label positions c to c+(b-a)+1
// the solution of the problem with pa, pa+1, …, pb connected to y-coordinate t
(uniform label case)
pf.
(LabelSize, | LabelPort, | Objective) | time | reference |
(nonuniform, | FR/FP/sliding, | TLLM) | NP-complete* | Thm 3 |
(nonuniform, | FR/FP/sliding, | TBM) | NP-complete* | Thm 4 |
h = nk
type-k
type-1, …, type-(k-1)
(i –1) labels using
type-1, type-2, …, type-k
O(nk-1) positions
at most O(n)
Conclusion
Thm 4
NP-complete*
TBM)
FR/FP/sliding,
(nonuniform,
Thm 3
NP-complete*
TLLM)
FR/FP/sliding,
(nonuniform,
Thm 2
O(n5)
TBM)
FR/FP/sliding,
(uniform,
Thm 2
O(n5)
TLLM)
FP,
(uniform,
Thm 1
O(n log n)
TLLM)
FR/sliding,
(uniform,
reference
time
Objective)
LabelPort,
(LabelSize,
* Pseudo-polynomial algorithms and fixed-parameter algorithms are� designed for those intractable problems.
Solved all the problems of all the combinations of (LabelSize, LabelPort, Objective).