Skip to main content

Optimization of rewriting and complexity of rewriting

  • Conference paper
  • First Online:
Algebraic and Logic Programming (ALP 1990)

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

Included in the following conference series:

  • 127 Accesses

Abstract

Term rewriting technique is one of basic deduction tools in algebraic and logic programming. Computing the normal forms of terms is the fundamental step. In this paper, we design several strategies for term rewriting systems. We divide non-ambiguous and left-linear term rewriting systems into three subclasses: variable-more, variable-equal, and variable-fewer, and propose optimal strategies for the two former subclasses and an approximate strategy for the last one. Optimal strategies are the strategies that are guaranteed to generate the shortest rewriting derivations. Finally, we prove that in general, optimal rewriting strategies do not exist unless P = N P even if we assume that we are given canonical term rewriting systems.

This research was supported in part by the Office of Naval Research under contract number N00014-85-0046 and by the National Science Foundation under grant number CCR-89-6949.

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.

References

  1. D. Benanav, D. Kapur and P. Narendran, “Complexity of matching problems,” J. Symbolic Computation, Vol. 3, pp.203–216, 1987.

    Google Scholar 

  2. C.Choppy, S.Kaplan and M.Soria, “Algorithmic complexity of term rewriting systems,” 2nd Int. Conf. on Rewriting Techniques and Applications, pp.256–270, 1987.

    Google Scholar 

  3. N. Dershowitz, “Termination of rewriting,” J. Symbolic Computation, Vol. 3, pp.69–116, 1987.

    Google Scholar 

  4. N. Dershowitz and J.-P. Jouannaud, “Rewriting systems,” Draft, 1988.

    Google Scholar 

  5. M.R. Garey and D.S. Johnson, Computers and intractability: A guide to the theory of NP-completeness, W.H. Freeman and Company, New York, 1979.

    Google Scholar 

  6. G. Huet and J.-J. Levy, “Computations in nonambiguous linear rewriting systems,” Tech Rep. #359, INRIA, 1979.

    Google Scholar 

  7. G. Huet and D.C. Oppen, “Equations and rewrite rules: A survey,” in Formal Languages: Perspective and Open Problems, R. Book, Ed., Academic Press, pp.349–405, 1980.

    Google Scholar 

  8. J.M. Hullot, “Canonical forms and unification,” 5th Conf. on Automated Deduction 1980, available as LNCS 87, pp.318–334, 1980.

    Google Scholar 

  9. J.-P. Jouannaud, P. Lescanne and F. Reing, “Recursive Decomposition Ordering,” Proc. of the Second IFIP Workshop on Formal Description of Programming Concepts, Garmishch-Partenkirchen, West Germany, pp.331–348, 1982.

    Google Scholar 

  10. J.-P. Jouannaud and H. Kirchner, “Complete of a set of ruls modulo a set of equations,” SIAM J. Comput., Vol. 15, No. 4, Nov. 1986.

    Google Scholar 

  11. D.E. Knuth and P.B. Bendix, “Simple word problems in universal algebras,” in Computational Problems in Abstract Algebra, J. Leech, Ed., Pergamon Press, pp.263–297, 1970.

    Google Scholar 

  12. D. Kapur, P. Narendran and G. Sivakumar, “A path ordering for proving termination of term rewriting systems,” CAAP'85, LNCS 185, pp.173–187, 1985.

    Google Scholar 

  13. J.W. Klop, “Term rewriting systems: A tutorial,” Bulletin of the European Asso. for Theoretical Comp. Sci., Vol. 32, pp.143–183, 1987.

    Google Scholar 

  14. Ke Li, “Complexity of term rewriting”, Technical Report #474, Dept. of Computer Science, New York University, 1989.

    Google Scholar 

  15. Ke Li, “Approximate and optimal strategies for non-ambiguous and left linear term rewriting systems”, Technical Report #475, Dept. of Computer Science, New York University, 1989.

    Google Scholar 

  16. S. Narain, “Optimization by non-deterministic, lazy rewriting,” 3rd Conf. on Rewriting Techniques and Applications, LNCS 355, pp.326–342, 1989.

    Google Scholar 

  17. P. Rety, C. Kirchner, H. Kirchner and P. Lescanne, “NARROWER: a new algorithm for unification and its application to logic programming,” RTA'85, LNCS 202, pp.141–157, 1985.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Hélène Kirchner Wolfgang Wechler

Rights and permissions

Reprints and permissions

Copyright information

© 1990 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Li, K. (1990). Optimization of rewriting and complexity of rewriting. In: Kirchner, H., Wechler, W. (eds) Algebraic and Logic Programming. ALP 1990. Lecture Notes in Computer Science, vol 463. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-53162-9_51

Download citation

  • DOI: https://doi.org/10.1007/3-540-53162-9_51

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-53162-3

  • Online ISBN: 978-3-540-46738-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics