A new Parallel Algorithm for the Parentheses-Matching Problem

  • Authors:
  • Christophe Cerin

  • Affiliations:
  • -

  • Venue:
  • PAS '97 Proceedings of the 2nd AIZU International Symposium on Parallel Algorithms / Architecture Synthesis
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

The parentheses-matching problem is of crucial importance in the construction of expression tree in order to evaluate, for instance, arithmetic expressions. A new parallel algorithm is introduced in this paper to solve the parentheses-matching problem optimally (in {\cal O}(\log_2 n) parallel time with {\cal O}(n/\log_2 n) processors) on an EREW-PRAM model. An algorithm for an input string of n parentheses with a maximal nested level of \log n is also presented.