ALMOST FULLY-PARALLEL PARENTHESES MATCHING

Citation
O. Berkman et U. Vishkin, ALMOST FULLY-PARALLEL PARENTHESES MATCHING, Discrete applied mathematics, 57(1), 1995, pp. 11-28
Citations number
23
Categorie Soggetti
Mathematics,Mathematics
Volume
57
Issue
1
Year of publication
1995
Pages
11 - 28
Database
ISI
SICI code
Abstract
The parentheses matching problem is considered. Suppose we are given a balanced sequence of parentheses and wish to find for each parenthesi s its mate. Assuming the levels of nesting of each parenthesis are giv en, we present an algorithm that runs in O(alpha(n)) time using an opt imal number of processors (where alpha(n) is the inverse of Ackermann' s function) on the CRCW PRAM. Without this assumption the running time becomes O(log n/log log n).