skip to main content
article
Free access

Order-n correction for regular languages

Published: 01 May 1974 Publication History

Abstract

A method is presented for calculating a string B, belonging to a given regular language L, which is “nearest” (in number of edit operations) to a given input string α. B is viewed as a reasonable “correction” for the possibly erroneous string α, where α was originally intended to be a string of L. The calculation of B by the method presented requires time proportional to |α|, the number of characters in α. The method should find applications in information retrieval, artificial intelligence, and spelling correction systems.

References

[1]
Conway, R.W., and Maxwell, W.L. CORC--the Cornell computing language. Comm. ACM 6, 9 (Sept. 1966), 317-321.
[2]
Morgan, H.L., and Wagner, R.A. PL/C--A high performance compiler for PL/I. Proc. 1971 SJCC, Vol. 38, AFIPS Press, Montvale, N.J., pp. 503-510.
[3]
Morgan, H.L. Spelling correction in systems programs. Comm. ACM 13, 2 (Feb. 1970), 90-94.
[4]
Wagner, R.A. An n 3 minimum edit distance correction algorithm for context free languages. Tech. Rep., Systems and Information Science Dep., Vanderbilt U., Nashville, Tenn., 1972.
[5]
Nemhauser, G,L. introduction to Dynamic Programming. Wiley, New York, 1966.
[6]
Wagner, R.A. The string-to-string correction problem. Tech. Rep., Systems and Information Sciences Dep., Vanderbilt U., Nashville, Tenn., 1971.
[7]
Floyd, R.W. Algorithm 97--Shortest path. Comm. ACM 5, 6 (June 1962), 345.
[8]
Gries, D. Compiler Construction Jbr Digital Computers. Wiley, New York, 1971.
[9]
LaFrance, J.E. Syntax-directed error recovery for compilers. Ph.D. Th., Rep. No. 459, Dep. of Comput. Sci., U. of Illinois at Urbana-Champaign, Urbana, 111., June 1971.
[10]
Irons, E.T. An error-correcting parse algorithm. Comm. ACM 13, 11 (Nov. 1963), 669-673.
[11]
Leinus, R. Error detection and recovery in syntax-directed compilers. Ph.D. Th., U. of Wisconsin, Madison, Wis., 1970.
[12]
Levy, J-P. Automatic correction of syntax errors in programming languages. Ph.D. Th., Dep. of Comput. Sci., Cornell U., Ithaca, N.Y. 1971.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Communications of the ACM
Communications of the ACM  Volume 17, Issue 5
May 1974
51 pages
ISSN:0001-0782
EISSN:1557-7317
DOI:10.1145/360980
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 May 1974
Published in CACM Volume 17, Issue 5

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. compiler error recovery
  2. correction
  3. corrector
  4. error correction
  5. errors
  6. finite state automata
  7. nondeterministic finite-state automata
  8. regular events
  9. regular languages
  10. spelling correction
  11. string best match problem

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)134
  • Downloads (Last 6 weeks)30
Reflects downloads up to 29 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Full Access

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media