Compression of Unordered XML Trees

Many XML documents are data-centric and do not make use of the inherent document order. Can we provide stronger compression for such documents through giving up order? We first consider compression via minimal dags (directed acyclic graphs) and study the worst case ratio of the size of the ordered dag divided by the size of the unordered dag, where the worst case is taken for all trees of size n. We prove that this worst case ratio is n / log n for the edge size and n log log n / log n for the node size. In experiments we compare several known compressors on the original document tree versus on a canonical version obtained by length-lexicographical sorting of subtrees. For some documents this difference is surprisingly large: reverse binary dags can be smaller by a factor of 3.7 and other compressors can be smaller by factors of up to 190.

[1]  Dan Suciu,et al.  XMill: an efficient compressor for XML data , 2000, SIGMOD '00.

[2]  Sebastian Maneth,et al.  XML tree structure compression using RePair , 2013, Inf. Syst..

[3]  N. S. Barnett,et al.  Private communication , 1969 .

[4]  Joachim Niehren,et al.  Logics for Unordered Trees with Data Constraints on Siblings , 2015, LATA.

[5]  A. Moffat,et al.  Offline dictionary-based compression , 2000, Proceedings DCC'99 Data Compression Conference (Cat. No. PR00096).

[6]  Markus Lohrey,et al.  Constructing small tree grammars and small circuits for formulas , 2014, J. Comput. Syst. Sci..

[7]  Sen Zhang,et al.  New Techniques for Mining Frequent Patterns in Unordered Trees , 2015, IEEE Transactions on Cybernetics.

[8]  Serge Abiteboul,et al.  Highly expressive query languages for unordered data trees , 2012, ICDT.

[9]  Thomas Schwentick,et al.  XML schemas without order , 1999 .

[10]  Donald E. Knuth,et al.  The art of computer programming: V.1.: Fundamental algorithms , 1997 .

[11]  Robert E. Tarjan,et al.  Variations on the Common Subexpression Problem , 1980, J. ACM.

[12]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .

[13]  Pierre Bourhis Highly Expressive Query Languages for Unordered Data , 2012, ICDT 2012.

[14]  Gabriel Valiente,et al.  Algorithms on Trees and Graphs , 2002, Springer Berlin Heidelberg.

[15]  Samuel R. Buss Alogtime Algorithms for Tree Isomorphism, Comparison, and Canonization , 1997, Kurt Gödel Colloquium.

[16]  Philippe Flajolet,et al.  Analytic Variations on the Common Subexpression Problem , 1990, ICALP.

[17]  Sanjay Kumar Madria,et al.  A change detection system for unordered XML data using a relational model , 2012, Data Knowl. Eng..

[18]  Iovka Boneva,et al.  Schemas for Unordered XML on a DIME , 2014, Theory of Computing Systems.

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

[20]  Mireille Bousquet-Mélou,et al.  XML Compression via Directed Acyclic Graphs , 2015, Theory of Computing Systems.