String-Matching and Other Products.

Abstract

The string-matching problem considered is to find all occurrences of a given pattern as a substring of another longer string. When the pattern is simply a given string of symbols, there is an algorithm due to Morris, Knuth and Pratt which has a running time proportional to the total length of the pattern and long string together. This time may be achieved even on a Turing machine. The more difficult case where either string may have don't care symbols which are deemed to match with all symbols is also considered. By exploiting the formal similarity of string-matching with integer multiplication, a new algorithm has been obtained with a running time which is only slightly worse than linear. (Author)

Document Details

Document Type
Technical Report
Publication Date
Jan 01, 1974
Accession Number
AD0773138

Entities

People

  • Michael J. Fischer
  • Michael S. Paterson

Organizations

  • Massachusetts Institute of Technology

Tags

DTIC Thesaurus Topics

  • Algorithms
  • Automata

Readers

  • Approximation Theory.
  • Computational Linguistics