Article ID: | iaor1996980 |
Country: | Netherlands |
Volume: | 57 |
Issue: | 1 |
Start Page Number: | 11 |
End Page Number: | 28 |
Publication Date: | Feb 1995 |
Journal: | Discrete Applied Mathematics |
Authors: | Vishkin Uzi, Berkman Omer |
The parentheses matching problem is considered. Suppose the authors are given a balanced sequence of parentheses and wish to find for each parenthesis its mate. Assuming the levels of nesting of each parenthesis are given, they present an algorithm that runs in O(