Techniques for automatic memoization with applications to context-free parsing

Peter Norvig

1991 · 76 citations · 2 references

Concepts

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.

References

2