Correcting Counter-Automaton-Recognizable Languages
Authors:
- Robert A. WagnerRWRobert A. Wagner
- Joel I. SeiferasJSJoel I. Seiferas
- 1 August 1978
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 7 (3) , 357-375
Abstract
Correction of a string x into a language L is the problem of finding a string $y \in L$ to which x can be edited at least cost. The edit operations considered here are single-character deletions, single-character insertions, and single-character substitutions, each at an independent cost that does not depend on context. Employing a linear-time algorithm for solving single-origin graph shortest distance problems, it is shown how to correct a string of length n into the language accepted by a counter automaton in time proportional to $n^2 $ on a RAM with unit operation cost function. The algorithm is uniform over counter automata and edit cost functions; and it is shown how the correction time depends on the size of the automaton, the nature of the cost function, and the correction cost itself. For less general cases, potentially faster algorithms are described, including a linear-time algorithm for the case that very little correction is necessary and that the automaton’s counter activity is determined by the input alone. Specializing the main result to counter automata which do not use their counters gives general linear-time correction into regular languages.
Keywords
This publication has 5 references indexed in Scilit:
- A Shortest Path Algorithm for Edge-Sparse GraphsJournal of the ACM, 1976
- Order- n correction for regular languagesCommunications of the ACM, 1974
- The String-to-String Correction ProblemJournal of the ACM, 1974
- Syntax-directed least-errors analysis for context-free languagesCommunications of the ACM, 1974
- A Minimum Distance Error-Correcting Parser for Context-Free LanguagesSIAM Journal on Computing, 1972