Although several strategies have been developed for designing efficient parallel algorithms, there is still a need for new strategies so that efficient or simple solutions can be obtained for broader classes of problems. We establish a new design strategy, called parallel parentheses matching (PPM), by solving a number of problems related to trees. With this strategy, a given problem is first converted into an equivalent parentheses matching problem the solution of which finally leads to the desired solution of the original problem. The PPM strategy is applied to solve various bottom-up tree computation problems such as heights of the nodes of a tree, extreme valves in subtrees, and lowest common ancestor. Furthermore, elegant algorithms are presented for the tree contraction problem and balancing binary trees, thus demonstrating the versatility of our approach
Published in:
Parallel Processing Symposium, 1994. Proceedings., Eighth International
Date of Conference: 26-29 Apr 1994