The authors present two new parallel algorithms for matchingparentheses on an exclusive-read exclusive-write parallel random-accessmachine (EREW PRAM). The first algorithm uses n processors andO(n) space, and requires O(log n) time to match n parentheses. The second algorithm is cost-optimal, and usesO(logn/n) processors and O(n log n) space, and it requires O(log n) time. These algorithmsare simpler and more elegant than the existing ones, and provide newinsights into the parentheses matching problem
展开▼
机译:作者提出了两种新的并行匹配算法
专有读取专有写入并行随机访问上的括号
机(EREW PRAM)。第一种算法使用 n e1>个处理器,
O( n e1>)空间,并且需要O(log n e1>)时间来匹配 n
e1>括号。第二种算法是成本最优的,并且使用
O( logn sub> / n sup>)处理器和O( n e1> log n
e1>)空间,它需要O(log n e1>)时间。这些算法
比现有的更简单,更优雅,并提供新的
括号匹配问题的见解
展开▼