An Efficient All- Parses Systolic Algorithm for General Context-free

Óscar H. Ibarra, Michael A. Palis · 1990

The problem of outputting all parse trees of a string accepted by a context-free grammar is considered. A systolic algorithm is presented that operates in O(m. n) time, where m is the number of distinct parse trees and n is the length of the input. The systolic array uses n 2 processors, each of which requires at most O(logn) bits of storage. This is much more space-efficient than a previously reported systolic algorithm for the same problem, which required O(n log n) space per processor. The algorithm also extends previous algorithms that only output a single parse tree of the input.

Read the paper · More papers on PaperTik