View Related Documents

Abstract

The unification problem for terms containing associative and commutative functions is of importance in theorem provers based on term rewriting and resolution methods as well as in logic programming. The complexity of determining whether two such terms are unifiable was known to be NP-hard. It is proved that the problem is NP-complete by describing a nondeterministic polynomial time algorithm for it. The case where the terms are linear and have no common variables is shown to be in P. The NP-completeness of other similar unification problems, in particular, when a function symbol is also idempotent and/or has a unit (identity), is also discussed. Finally, a table of the complexity of E-matching and E-unification problems is given.

Key words  Unification - matching - associative - commutative - idempotent - identity - unit - equational theories - set matching - complexity - word equations - NP-complete

Partially supported by the National Science Foundation grant nos. DCR-8408461 and CCR-8906678. A preliminary version of this paper appeared earlier as a technical report of General Electric Corporate Research and Development, Dec. 1986.

Fulltext Preview

Image of the first page of the fulltext document