English

Approximation of smallest linear tree grammar

Data Structures and Algorithms 2018-10-09 v4 Formal Languages and Automata Theory

Abstract

A simple linear-time algorithm for constructing a linear context-free tree grammar of size O(rg + r g log (n/r g))for a given input tree T of size n is presented, where g is the size of a minimal linear context-free tree grammar for T, and r is the maximal rank of symbols in T (which is a constant in many applications). This is the first example of a grammar-based tree compression algorithm with a good, i.e. logarithmic in terms of the size of the input tree, approximation ratio. The analysis of the algorithm uses an extension of the recompression technique from strings to trees.

Keywords

Cite

@article{arxiv.1309.4958,
  title  = {Approximation of smallest linear tree grammar},
  author = {Artur Jeż and Markus Lohrey},
  journal= {arXiv preprint arXiv:1309.4958},
  year   = {2018}
}

Comments

45 pages, published in Information and Computation. Approximation ratio improved since the first version, figures improved, some examples added. A small calculation error corrected since the previous version (all claims hold as previously)

R2 v1 2026-06-22T01:30:14.224Z