On Balloon Drawings of Rooted Trees
Chun-Cheng Lin and Hsu-Chun Yen
Dept. of Electrical Engineering,
National Taiwan University
Balloon Drawing of Rooted Trees
The balloon drawing of a rooted tree is a drawing having the following constraints:
2
Two models of balloon drawing (I)
( Koike & Yoshihara, 1993 )
3
120o
120o
120o
r1
r2
r3
Two models of balloon drawing (II)
– Bottom-up method ( Carriere & Kazman, 1995 )
4
inner circle
outer circle
r1
r2
r4
r3
θ1
r
Comparison
5
Q. For an unordered rooted tree (i.e., changing the order of subtrees is allowed),
what is a good balloon drawing under the SNS model depend on?
the SNS model
the fractal model
A. Angular resolution and aspect ratio of angle.
Goal: optimize them.
Preliminaries
⇒ Larger AngResl is better.
6
αmin
αmax
AngResl =αmin
AspRatio = αmax / αmin
Reduction to star graphs
7
M1
M2
m1
m2
The balloon drawing
under the SNS model
(for the level zero)
(for the nozero level)
Balloon Drawing of Unordered Trees
8
Larger AngResl and smaller AspRatio.
swap M2 and m2
M1
M2
m1
m2
αmin
αmax
M1
M2
m1
m2
αmin
αmax
Independence
9
Optimizing AngResl and AspRatio on each level is Independent.
Swapping any two subtrees inside the outer circle doesn’t
affect the optimization on other levels.
10
slice 1
δ1
c2
co
θ 1
δ1’
θ 2
θ 3
θ 4
c1
c4
c3
slice 4
slice 3
slice 2
either m1, m2, …, mk-1, mk, Mk, Mk-1, …, M2, M1 if n is even,
or m1, m2, …, mk-1, mk, mid, Mk, Mk-1, …, M2, M1 if n is odd,
where mi (resp. Mi) is the i-th minimum (resp. maximum) among all, and mid is the median if n is odd.
e.g. (n = 10) (the drawing has 10 slices)
{θ1,…,θ10} ⇒ m1 < m2 < m3 < m4 < m5 < M5 < M4 < M3 < M2 < M1
11
M1
M3
m2
M2
m3
m1
M5
m4
m5
M4
Subindex difference = 1
(Mj-1 + mj)/2 for j ∈ {2,…,k}, which can be generated by Procedure 1.
12
An experimental result
13
Balloon drawing with uneven angles
14
(of even angle type)
(of uneven angle type)
The Aspect Ratio (resp. Angular resolution) problem
15
slice 2
slice 5
slice 4
slice 3
slice 1
Matching
16
Perfect!!
pf. Consider the Aspect Ratio Problem ; the other problem can be proved by a slight modification.
17
A1
A2
A3
A4
A1
A2
A3
A4
Take the following example for illustration:
18
Assume is the smallest angle.
The nodes with odd index are
placed on the upper level.
A bipartite graph G(x,y)
Perfect matching ⇔ a balloon drawing
Delete the edges (s,t) where s + t > r ϕ
b4
b’4
b1
b’1
Local magnetic spring model
19
Experimental results and applications
20
Thank you for your attention.