DocumentCode
1138384
Title
Efficient EREW PRAM algorithms for parentheses-matching
Author
Prasad, Sushil K. ; Das, Sajal K. ; Chen, Calvin C Y
Author_Institution
Dept. of Math. & Comput. Sci., Georgia State Univ., Atlanta, GA, USA
Volume
5
Issue
9
fYear
1994
fDate
9/1/1994 12:00:00 AM
Firstpage
995
Lastpage
1008
Abstract
We present four polylog-time parallel algorithms for matching parentheses on an exclusive-read and exclusive-write (EREW) parallel random-access machine (PRAM) model. These algorithms provide new insights into the parentheses-matching problem. The first algorithm has a time complexity of O(log2 n) employing O(n/(log n)) processors for an input string containing n parentheses. Although this algorithm is not cost-optimal, it is extremely simple to implement. The remaining three algorithms, which are based on a different approach, achieve O(log n) time complexity in each case, and represent successive improvements. The second algorithm requires O(n) processors and working space, and it is comparable to the first algorithm in its ease of implementation. The third algorithm uses O(n/(log n)) processors and O(n log n) space. Thus, it is cost-optimal, but uses extra space compared to the standard stack-based sequential algorithm. The last algorithm reduces the space complexity to O(n) while maintaining the same processor and time complexities. Compared to other existing time-optimal algorithms for the parentheses-matching problem that either employ extensive pipelining or use linked lists and comparable data structures, and employ sorting or a linked list ranking algorithm as subroutines, the last two algorithms have two distinct advantages. First, these algorithms employ arrays as their basic data structures, and second, they do not use any pipelining, sorting, or linked list ranking algorithms
Keywords
computational complexity; data structures; parallel algorithms; parallel machines; pattern recognition; random-access storage; EREW PRAM algorithms; PRAM model; arrays; data structures; exclusive-read and exclusive-write; input string; parallel random-access machine; parentheses-matching; polylog-time parallel algorithms; space complexity; time complexity; time-optimal algorithms; working space; Computer networks; Computer science; Data structures; Helium; Parallel algorithms; Phase change random access memory; Pipeline processing; Read-write memory; Sorting; Writing;
fLanguage
English
Journal_Title
Parallel and Distributed Systems, IEEE Transactions on
Publisher
ieee
ISSN
1045-9219
Type
jour
DOI
10.1109/71.308536
Filename
308536
Link To Document