arXiv:1902.03568

Paper record

W2928762345

Balancing Straight-Line Programs

Moses Ganardi, Artur Jeż, Markus Lohrey

Year
2019
Venue
Journal of the ACM
References
40
Cited by
79

Details and counts from OpenAlex.

Abstract

We show that a context-free grammar of size that produces a single string of length (such a grammar is also called a string straight-line program) can be transformed in linear time into a context-free grammar for of size, whose unique derivation tree has depth. This solves an open problem in the area of grammar-based compression, improves many results in this area, and greatly simplifies many existing constructions. Similar results are shown for two formalisms for grammar-based tree compression: top dags and forest straight-line programs. These balancing results can be all deduced from a single meta-theorem stating that the depth of an algebraic circuit over an algebra with a certain finite base property can be reduced to with the cost of a constant multiplicative size increase. Here, refers to the size of the unfolding (or unravelling) of the circuit. In particular, this results applies to standard arithmetic circuits over (noncommutative) semirings.