Skip to main content

Complexity of matching problems

  • Conference paper
  • First Online:
Rewriting Techniques and Applications (RTA 1985)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 202))

Included in the following conference series:

Abstract

We show that the associative-commutative matching problem is NP-complete; more precisely, the matching problem for terms in which some function symbols are uninterpreted and others are both associative and commutative, is NP-complete. It turns out that the similar problems of associative-matching and commutative-matching are also NP-complete. However, if every variable appears at most once in a term being matched, then the associative-commutative matching problem is shown to have an upper-bound of O (|s| * |t|3), where |s| and |t| are respectively the sizes of the pattern s and the subject t.

Partially supported by the National Science Foundation grant MCS-82-11621.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

8. References

  1. Garey, M.R. and Johnson, D.S., Computers and Intractability, W.H. Freeman, 1979.

    Google Scholar 

  2. Hullot, J.M., „Associative-Commutative Pattern Matching,” Fifth International Joint Conference on Artificial Intelligence, Tokyo, Japan, 1979.

    Google Scholar 

  3. Iwama, K., „On Equations Including String Variables,” Proc. 23rd Ann. Symp. on Foundations of Computer Science, 1982, pp. 226–235.

    Google Scholar 

  4. Kanellakis, P., private communication.

    Google Scholar 

  5. Kapur, D. and Sivakumar, G., „Architecture of and Experiments with RRL, a Rewrite Rule Laboratory,” Proceedings of a NSF Workshop on the Rewrite Rule Laboratory, September 6–9, 1983, General Electric CRD Report, 84GEN004, April, 1984, pp. 33–56.

    Google Scholar 

  6. Knuth, D.E. and Bendix, P.B., „Simple Word Problems in Universal Algebras,” in Computational Problems in Abstract Algebras (ed. J. Leech), Pergamon Press, 1970, pp. 263–297.

    Google Scholar 

  7. Lankford, D.S., „Canonical Inference,” Report ATP-32 Dept. of Mathematics and Computer Sciences, Univ. of Texas, Austin, TX (1975).

    Google Scholar 

  8. Lankford, D.S., and Ballantyne A.M., „Decision Procedures for Simple Equational Theories with Commutative-Associative Axioms: Complete Sets of Commutative-Associative Reductions,” Memo ATP-39, Dept. of Mathematics and Computer Sciences, Univ. of Texas, Austin, TX (1977).

    Google Scholar 

  9. Lankford, D.S., and Ballantyne, A.M., „The Refutation Completeness of Blocked Permutative Narrowing and Resolution,” Fourth Conference on Automated Deduction, 1979.

    Google Scholar 

  10. Papadimitriou, C.H., and Steiglitz, K., Combinatorial Optimization: Algorithms and Complezity, Prentice-Hall, 1982.

    Google Scholar 

  11. Peterson, G.E., and Stickel, M.E., „Complete Sets of Reductions for Some Equational Theories,” Journal of the ACM, Vol. 28, No. 2, pp. 233–264.

    Google Scholar 

  12. Plotkin, G., „Building in Equational Theories,” Machine Intelligence 7 (eds. Meltzer and Michie), pp. 73–90.

    Google Scholar 

  13. Slagle, J., „Automated Theorem Proving with Simplifiers, Commutativity and Associativity,” JACM Vol. 21, 1974, pp. 622–642.

    Google Scholar 

  14. Stickel, M.E., „A Unification Algorithm for Associative-Commutative Functions,” JACM 28 (1980), pp. 423–434.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Jean-Pierre Jouannaud

Rights and permissions

Reprints and permissions

Copyright information

© 1985 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Benanav, D., Kapur, D., Narendran, P. (1985). Complexity of matching problems. In: Jouannaud, JP. (eds) Rewriting Techniques and Applications. RTA 1985. Lecture Notes in Computer Science, vol 202. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-15976-2_22

Download citation

  • DOI: https://doi.org/10.1007/3-540-15976-2_22

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-15976-6

  • Online ISBN: 978-3-540-39679-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics