blocks = []
h = H
for s = S,S-1,...,1:
if table[h,s] != table[h,s-1]:
blocks.append(s)
h = h - height of block s
Algorithms and Data Structures by
François Pitt is licensed under a
Creative
Commons Attribution-ShareAlike 4.0 International License.