Techniques for automatic memoization with applications to context-free parsing

  • Authors:
  • Peter Norvig

  • Affiliations:
  • University of California

  • Venue:
  • Computational Linguistics
  • Year:
  • 1991

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is shown that a process similar to Earley's algorithm can be generated by a simple top-down backtracking parser, when augmented by automatic memoization. The memoized parser has the same complexity as Earley's algorithm, but parses constituents in a different order. Techniques for deriving memo functions are described, with a complete implementation in Common Lisp, and an outline of a macro-based approach for other languages.