Unification and matching on compressed terms

  • Authors:
  • Adrià/ Gascó/n;Guillem Godoy;Manfred Schmidt-Schauss

  • Affiliations:
  • Universitat Politè/cnica de Catalunya, Barcelona, Spain;Universitat Politè/cnica de Catalunya, Barcelona, Spain;Goethe-Universit&atuml/, Frankfurt, Germany

  • Venue:
  • ACM Transactions on Computational Logic (TOCL)
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Term unification plays an important role in many areas of computer science, especially in those related to logic. The universal mechanism of grammar-based compression for terms, in particular the so-called singleton tree grammars (STGAs), have recently drawn considerable attention. Using STGs, terms of exponential size and height can be represented in linear space. Furthermore, the term representation by directed acyclic graphs (dags) can be efficiently simulated. The present article is the result of an investigation on term unification and matching when the terms given as input are represented using different compression mechanisms for terms such as dags and singleton tree grammars. We describe a polynomial time algorithm for context matching with dags, when the number of different context variables is fixed for the problem. For the same problem, NP-completeness is obtained when the terms are represented using the more general formalism of singleton tree grammars. For first-order unification and matching polynomial time algorithms are presented, each of them improving previous results for those problems.