Constructing small tree grammars and small circuits for formulas

Abstract

It is shown that every tree of size n over a fixed set of σ different ranked symbols can be decomposed (in linear time as well as in logspace) into O(nσ n) = O(n σ n) many hierarchically defined pieces. Formally, such a hierarchical decomposition has the form of a straight-line linear context-free tree grammar of size O(nσ n), which can be used as a compressed representation of the input tree. This generalizes an analogous result for strings. Previous grammar-based tree compressors were not analyzed for the worst-case size of the computed grammar, except for the top dag of Bille et al., for which only the weaker upper bound of O(nσ0.19 n) (which was very recently improved to O(n · σ nσ n) by H\"ubschle-Schneider and Raman) for unranked and unlabelled trees has been derived. The main result is used to show that every arithmetical formula of size n, in which only m ≤ n different variables occur, can be transformed (in linear time as well as in logspace) into an arithmetical circuit of size O(n · m n) and depth O( n). This refines a classical result of Brent from 1974, according to which an arithmetical formula of size n can be transformed into a logarithmic depth circuit of size O(n).

0

Discussion (0)

Sign in to join the discussion.

Loading comments…