An efficient parallel algorithm for term matching

  • Rakesh M. Verma
  • T. Krishnaprasad
  • I. V. Ramakrishnan
Session 8 Parallel Algorithms
Part of the Lecture Notes in Computer Science book series (LNCS, volume 241)


Term matching is a compute-intensive problem that often arises in symbolic manipulation systems like term rewriting, and in functional and equational programming. A parallel algorithm for term matching on the CREW PRAM model was recently described by Dwork, Kanellakis and Stockmeyer. This algorithm requires O(n2) processors and takes either O(logn) or O(log2n) time. In this paper we describe a new parallel algorithm that performs term matching in O(log2n) time using O(n) processors. In our algorithm, we represent the two terms as labeled directed trees. We then construct equivalence classes of nodes in these two trees such that two nodes are in the same class iff they have the same sequence of edge-labels on the path to their respective roots. This is the basis of our parallel algorithm for term matching.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

6. References

  1. [DKM84]
    C. Dwork, P. Kanellakis and J. C. Mitchell, “On The Sequential Nature Of Unification”, J. Logic Programming, 1, (1984), 35–50.Google Scholar
  2. [DKS86]
    C. Dwork, P. Kanellakis and L. Stockmeyer, “Parallel Algorithms for Term Matching”, 8th Intl. Conf. on Automatic Deduction; Springer Verlag LNCS 230, July 1986, 416–430.Google Scholar
  3. [FoW78]
    S. Fortune and J. Wyllie, “Parallelism In Random Access Machines”, Proc 10th ACM Annual ACM Symp. on Theory of Computing, 1978, 114–118.Google Scholar
  4. [Hir78]
    D. S. Hirschberg, “Fast Parallel Sorting Algorithms”, Comm. ACM, 21, 8 (Aug. 1978), 657–661.Google Scholar
  5. [MaK85]
    J. Maluszynski and H. J. Komorowski, “Unifcation-free Execution Of Logic Programs”, Symposium on Logic Programming, July 1985, 78–86.Google Scholar
  6. [PaW78]
    M. S. Paterson and M. N. Wegman, “Linear Unification”, J. Computer and System Sciences, 16, (1978), 158–167.Google Scholar
  7. [Rob65]
    J. A. Robinson, “A Machine Oriented Logic Based On The Resolution Principle”, J. ACM, 12, (1965), 23–41.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1986

Authors and Affiliations

  • Rakesh M. Verma
    • 1
  • T. Krishnaprasad
    • 1
  • I. V. Ramakrishnan
    • 1
  1. 1.Department of Computer ScienceState University of New York at Stony BrookStony Brook

Personalised recommendations