2 research outputs found
A Characterization of the Sets of Hypertrees Generated by Hyperedge-Replacement Graph Grammars
. A characterization of the sets of hypertrees generated by hyperedgereplacement graph grammars is given. The characterization says that these sets are exactly those which have the form val(T ), where T , a set of terms over hyperedgereplacement operations, is the output language of a finite-copying top-down tree transducer. Furthermore, the terms in T may be required to consist of hyperedgereplacement operations whose underlying hypergraphs are hypertrees. The result is closely related to a similar characterization that was obtained for the case of string graphs by Engelfriet and Heyker some years ago. In fact, the results of this paper also yield a new proof for the characterization by Engelfriet and Heyker. 1 Introduction Hyperedge-replacement graph grammars, also called context-free hypergraph grammars, are well-studied devices for the generation of graph and hypergraph languages (see, e.g., [Hab92, Eng97, DHK97]). Their basic operation is the replacement of a non-terminal hypered..
Graph compression using graph grammars
This thesis presents work done on compressed graph representations via hyperedge replacement
grammars. It comprises two main parts. Firstly the RePair compression scheme, known for
strings and trees, is generalized to graphs using graph grammars. Given an object, the scheme
produces a small context-free grammar generating the object (called a âstraight-line grammarâ).
The theoretical foundations of this generalization are presented, followed by a description of a
prototype implementation. This implementation is then evaluated on real-world and synthetic
graphs. The experiments show that several graphs can be compressed stronger by the new
method, than by current state-of-the-art approaches.
The second part considers algorithmic questions of straight-line graph grammars. Two algorithms
are presented to traverse the graph represented by such a grammar. Both algorithms have
advantages and disadvantages: the first one works with any grammar but its runtime per traversal
step is dependent on the input grammar. The second algorithm only needs constant time per
traversal step, but works for a restricted class of grammars and requires quadratic preprocessing
time and space. Finally speed-up algorithms are considered. These are algorithms that can
decide specific problems in time depending only on the size of the compressed representation,
and might thus be faster than a traditional algorithm would on the decompressed structure. The
idea of such algorithms is to reuse computation already done for the rules of the grammar. The
possible speed-ups achieved this way is proportional to the compression ratio of the grammar.
The main results here are a method to answer âregular path queriesâ, and to decide whether
two grammars generate isomorphic trees