Parameter Reduction in Grammar-Compressed Trees

Trees can be conveniently compressed with linear straight-line context-free tree grammars. Such grammars generalize straight-line context-free string grammars which are widely used in the development of algorithms that execute directly on compressed structures (without prior decompression). It is shown that every linear straight-line context-free tree grammar can be transformed in polynomial time into a monadic (and linear) one. A tree grammar is monadic if each nonterminal uses at most one context parameter. Based on this result, a polynomial time algorithm is presented for testing whether a given nondeterministic tree automaton with sibling constraints accepts a tree given by a linear straight-line context-free tree grammar. It is shown that if tree grammars are nondeterministic or non-linear, then reducing their numbers of parameters cannot be done without an exponential blow-up in grammar size.

[1]  Florent Jacquemard,et al.  Tree Automata with Memory, Visibility and Structural Constraints , 2007, FoSSaCS.

[2]  Peter Buneman,et al.  Edinburgh Research Explorer Path Queries on Compressed XML , 2022 .

[3]  Sebastian Maneth,et al.  The complexity of tree automata and XPath on grammar-compressed trees , 2006, Theor. Comput. Sci..

[4]  Ian Stark,et al.  Free-Algebra Models for the pi-Calculus , 2005, FoSSaCS.

[5]  Manfred Schmidt-Schauß,et al.  Polynomial Equality Testing for Terms with Shared Substructures , 2005 .

[6]  Jan van Leeuwen,et al.  Algorithms — ESA '94 , 1994, Lecture Notes in Computer Science.

[7]  Wojciech Plandowski,et al.  Testing Equivalence of Morphisms on Context-Free Languages , 1994, ESA.

[8]  Michael J. Fischer,et al.  Grammars with Macro-Like Productions , 1968, SWAT.

[9]  Philip Wadler Call-by-Value Is Dual to Call-by-Name - Reloaded , 2005, RTA.

[10]  Joost Engelfriet,et al.  Tree transducers, L systems and two-way machines (Extended Abstract) , 1978, J. Comput. Syst. Sci..

[11]  Robin Milner,et al.  On Observing Nondeterminism and Concurrency , 1980, ICALP.

[12]  Wojciech Rytter,et al.  Grammar Compression, LZ-Encodings, and String Algorithms with Implicit Input , 2004, ICALP.

[13]  Jordi Levy,et al.  Bounded Second-Order Unification Is NP-Complete , 2006, RTA.

[14]  Akio Fujiyoshi,et al.  Spinal-Formed Context-Free Tree Grammars , 2000, Theory of Computing Systems.

[15]  Sophie Tison,et al.  Equality and Disequality Constraints on Direct Subterms in Tree Automata , 1992, STACS.

[16]  Hubert Comon,et al.  Tree automata techniques and applications , 1997 .

[17]  Guillem Godoy,et al.  Context Matching for Compressed Terms , 2008, 2008 23rd Annual IEEE Symposium on Logic in Computer Science.

[18]  Sebastian Maneth,et al.  Efficient memory representation of XML document trees , 2008, Inf. Syst..