CALCULATING MERGE POWERS
▶ For run lengths L0, . . . , Lr−1, first set li
= Li
n
, then:
• Define ai
, the normalized centre of the (i − 1)st run:
ai
=
i−1
j=0
lj
−
1
2
li−1,
• Define bi
, the normalized centre of ith run:
bi
=
i−1
j=0
lj
+
1
2
li
• Hence, define the power of the boundary between these runs, Pk
i
:
Pk
i
= min{p ∈ N : ⌊ai
· kp⌋ < ⌊bi
· kp⌋}
BEN SMITH WILLIAM CAWLEY GELLING, MARKUS E. NEBEL, AND SEBASTIAN WILD 5 / 16