Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. LCS Publications
  4. LCS Technical Memos (1974 - 2003)
  5. String-matching and Other Products

String-matching and Other Products

Thumbnail Image
Download
Name

MIT-LCS-TM-041.pdf

Size

644.42 KB

Format

Adobe PDF

Checksum (MD5)

d1b00bfea4c9330bff9d7a51e1a29ddc

Author(s)
Fischer, Michael J.
•
Paterson, Michael S.
Date Issued
January 1974
Series/Report no.
MIT-LCS-TM-041
MAC-TM-041
Abstract
The string-matching problem considered here 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.
Persistent DSpace Link
https://hdl.handle.net/1721.1/148870
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.