Some reduction strategies for algebraic term rewriting
- 1 November 1982
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGSAM Bulletin
- Vol. 16 (4) , 13-23
- https://doi.org/10.1145/1089310.1089315
Abstract
A general algorithm for reduction with algebraic term rewriting systems is presented and several aspects of rewriting are discussed.It turns out that the well known strategies of innermost and outermost rewriting, which are special cases of the general algorithm, exhibit good performance under different aspects. The general rewriting algorithm suggests improvements for naive reduction algorithms with specific strategies, which in some cases give them better asymptotic behaviour. Empirical results with an algebraic axiomatization of natural numbers show considerably faster runtimes for the improved algorithms.The algorithms presented here do not impose any restrictions on the rewriting systems. They are currently used both within an implementation of the Knuth-Bendix completion algorithm and in a separate term reduction system, whenever sufficiently large terms are involved.Keywords
This publication has 6 references indexed in Scilit:
- Programming with EquationsACM Transactions on Programming Languages and Systems, 1982
- Pattern Matching in TreesJournal of the ACM, 1982
- Confluent Reductions: Abstract Properties and Applications to Term Rewriting SystemsJournal of the ACM, 1980
- An interpreter generator using tree pattern matchingPublished by Association for Computing Machinery (ACM) ,1979
- Computing in systems described by equationsLecture Notes in Computer Science, 1977
- The algorithm description language ALDES (report)ACM SIGSAM Bulletin, 1976