English

Constructing LZ78 Tries and Position Heaps in Linear Time for Large Alphabets

Data Structures and Algorithms 2015-02-02 v1

Abstract

We present the first worst-case linear-time algorithm to compute the Lempel-Ziv 78 factorization of a given string over an integer alphabet. Our algorithm is based on nearest marked ancestor queries on the suffix tree of the given string. We also show that the same technique can be used to construct the position heap of a set of strings in worst-case linear time, when the set of strings is given as a trie.

Keywords

Cite

@article{arxiv.1501.06619,
  title  = {Constructing LZ78 Tries and Position Heaps in Linear Time for Large Alphabets},
  author = {Yuto Nakashima and Tomohiro I and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:1501.06619},
  year   = {2015}
}
R2 v1 2026-06-22T08:13:33.999Z