{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:26:25Z","timestamp":1787340385450,"version":"build-2736575974"},"reference-count":18,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1980,5]]},"abstract":"<jats:p>The string-matching problem is to find all instances (as contiguous substrings) of a \u201cpattern\u201d character string x in a longer \u201ctext\" string \u201d. The naive algorithm, trying the pattern from scratch starting at each successive text position, requires only a fixed number of auxiliary storage locations but time proportional to $|x|\\cdot|Y|$ (worst case). On the other hand, the fast algorithm of Knuth, Morris, and Pratt requires only time proportional to $|Y|$ but extra space proportional to $|x|$ (every case). Algorithms described in this paper reduce the extra space used by the Knuth\u2013Morris\u2013Pratt algorithm down to $O(\\log |x|)$, and the time for the naive algorithm down to $O(|x|^\\varepsilon |y|)$ for any fixed $\\varepsilon &gt; 0$. Also described are implementations on two-way multihead finite automata and multitape Turing machines.<\/jats:p>","DOI":"10.1137\/0209032","type":"journal-article","created":{"date-parts":[[2005,2,24]],"date-time":"2005-02-24T06:21:58Z","timestamp":1109226118000},"page":"417-438","source":"Crossref","is-referenced-by-count":21,"title":["Saving Space in Fast String-Matching"],"prefix":"10.1137","volume":"9","author":[{"given":"Zvi","family":"Galil","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Joel","family":"Seiferas","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,13]]},"reference":[{"key":"R1","volume-title":"The design and analysis of computer algorithms","author":"Aho Alfred V.","year":"1975"},{"key":"R2","unstructured":"G. Barth,  One pass and extended string matching,  1977, manuscript, Fachbereich Informatik, Universit\u00e4t Kaiserslautern, Kaiserslautern, Germany"},{"key":"R3","doi-asserted-by":"crossref","unstructured":"Ashok K. Chandra,  Efficient compilation of linear recursive programs,  14th Annual IEEE Symposium on Switching and Automata Theory (Univ. Iowa, Iowa City, Iowa, 1973), IEEE Comput. Soc., Northridge, Calif.,  1973,  16\u201325 56:7286","DOI":"10.1109\/SWAT.1973.7"},{"key":"R4","doi-asserted-by":"crossref","unstructured":"A. Cobham,  The recognition problem for the set of perfect squares,  IEEE Conference Record of 1966 Seventh Annual Symposium on Switching and Automata Theory, Berkeley, CA,  1966,  78\u201387","DOI":"10.1109\/SWAT.1966.30"},{"key":"R5","doi-asserted-by":"publisher","DOI":"10.1145\/360933.360975"},{"key":"R6","volume-title":"Complexity of computation (Proc. SIAM-AMS Appl. Math. Sympos., New York, 1973)","author":"Fischer Michael J.","year":"1974"},{"key":"R7","doi-asserted-by":"publisher","DOI":"10.1007\/BF01694010"},{"key":"R8","doi-asserted-by":"publisher","DOI":"10.1007\/BF01694011"},{"key":"R9","doi-asserted-by":"publisher","DOI":"10.1145\/322234.322244"},{"key":"R10","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90042-9"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9947-1965-0170805-7"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1145\/322003.322015"},{"key":"R13","doi-asserted-by":"publisher","DOI":"10.1137\/0206024"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1145\/322234.322246"},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1307\/mmj\/1028998766"},{"key":"R16","unstructured":"C. G. Nelson,  One-way automata on bounded languages, Rep., TR-14-76, Center for Research in Computing Technology, Aiken Computation Laboratory, Harvard University, Cambridge, MA,  1976, July"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1007\/BF01768472"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1145\/322063.322076"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/0209032","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:32:38Z","timestamp":1787337158000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/0209032"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1980,5]]},"references-count":18,"journal-issue":{"issue":"2","published-print":{"date-parts":[[1980,5]]}},"alternative-id":["10.1137\/0209032"],"URL":"https:\/\/doi.org\/10.1137\/0209032","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1980,5]]}}}