Locally Least-Cost Error Recovery in Earley's Algorithm

18Citations
Citations of this article
7Readers
Mendeley users who have this article in their library.

Abstract

While-least-cost~ error correction is fundamentally important to context-free language processing, it is inefficient w'Qhemdone globally. A locally least-cost repair method has been devised to model error recovery in conventional-~o-mpile]tsT. he principles of this recovery technique have inspired a practical LL(1) method and should be of value m ~ntmg-error~rJel~a~lr m other parsing algorithms.- At each point in the syntax analysis, a locally optimal repair of't~e-next-sy-mBffl is defined to be a string w such that w can be parsed without error and such that editing the symbol following w can be achieved at least cost, costs being defined by the Wagner-Fischer model of string-to-string correction. In this paper we describe how error recovery can be achieved in Earley's algorithm by simulating locally optimal repairs. The main result is to show that the complexity of Earley's algorithm is not affected by this process; that is, for any input string of length n, the work involved is O(n) if the given grammar is deterministic, O(n 2) if the grammar is unambiguous, and O(n 3) in the worst case. © 1981, ACM. All rights reserved.

Cite

CITATION STYLE

APA

Anderson, S. O., & Backhouse, R. C. (1981). Locally Least-Cost Error Recovery in Earley’s Algorithm. ACM Transactions on Programming Languages and Systems (TOPLAS), 3(3), 318–347. https://doi.org/10.1145/357139.357145

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free