Elsevier

Information and Computation

Volume 251, December 2016, Pages 215-251
Information and Computation

Approximation of smallest linear tree grammar

https://doi.org/10.1016/j.ic.2016.09.007Get rights and content
Under an Elsevier user license
open archive

Abstract

A simple linear-time algorithm for constructing a linear context-free tree grammar of size O(rg+rglog(n/rg)) 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

Grammar-based compression
Tree compression
Tree grammars

Cited by (0)

1

The first author was supported by the National Science Centre, Poland project number 2014/15/B/ST6/00615. The second author was supported by the German Research Foundation, project number LO 748/10-1.