An error correcting parser for context free grammars that takes less than cubic time

5Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The problem of parsing has been studied extensively for various formal grammars. Given an input string and a grammar, the parsing problem is to check if the input string belongs to the language generated by the grammar. A closely related problem of great importance is one where the input are a string I and a grammar G and the task is to produce a string I’ that belongs to the language generated by G and the ‘distance’ between I and I’ is the smallest (from among all the strings in the language). Specifically, if I is in the language generated by G, then the output should be I. Any parser that solves this version of the problem is called an error correcting parser. In 1972 Aho and Peterson presented a cubic time error correcting parser for context free grammars. Since then this asymptotic time bound has not been improved under the assumption that the grammar size is a constant. In this paper we present an error correcting parser for context free grammars that runs in O(T(n)) time, where n is the length of the input string and T(n) is the time needed to compute the tropical product of two n × n matrices. In this paper we also present an n/m-approximation algorithm for the language edit distance problem that has a run time of O(Mnω), where O(nω) is the time taken to multiply two n × n matrices. To the best of our knowledge, no approximation algorithms have been proposed for error correcting parsing for general context free grammars.

Cite

CITATION STYLE

APA

Rajasekaran, S., & Nicolae, M. (2016). An error correcting parser for context free grammars that takes less than cubic time. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 9618, pp. 533–546). Springer Verlag. https://doi.org/10.1007/978-3-319-30000-9_41

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