An error correcting parser for context free grammars that takes less than cubic time
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 and a grammar and the task is to produce a string that belongs to the language generated by and the `distance' between and is the smallest (from among all the strings in the language). Specifically, if is in the language generated by , then the output should be . Any parser that solves this version of the problem is called an {\em 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 (standard) assumption that the grammar size is a constant. In this paper we present an error correcting parser for context free grammars that runs in time, where is the length of the input string and is the time needed to compute the tropical product of two matrices. In this paper we also present an -approximation algorithm for the {\em language edit distance problem} that has a run time of , where is the time taken to multiply two matrices. To the best of our knowledge, no approximation algorithms have been proposed for error correcting parsing for general context free grammars.
Keywords
Cite
@article{arxiv.1406.3405,
title = {An error correcting parser for context free grammars that takes less than cubic time},
author = {Sanguthevar Rajasekaran and Marius Nicolae},
journal= {arXiv preprint arXiv:1406.3405},
year = {2014}
}