Constant-space string-matching in sublinear average time

Citation
M. Crochemore et al., Constant-space string-matching in sublinear average time, THEOR COMP, 218(1), 1999, pp. 197-203
Citations number
13
Categorie Soggetti
Computer Science & Engineering
Journal title
THEORETICAL COMPUTER SCIENCE
ISSN journal
03043975 → ACNP
Volume
218
Issue
1
Year of publication
1999
Pages
197 - 203
Database
ISI
SICI code
0304-3975(19990428)218:1<197:CSISAT>2.0.ZU;2-5
Abstract
Given two strings: pattern P of length m and text T of length n. The string -matching problem is to find all occurrences of the pattern P in the text T . We present a string-matching algorithms which works in o(n) average time and constant additional space for one-dimensional texts and two-dimensional arrays. This is a first attempt to the small-space string-matching problem in which sublinear time algorithms are achieved. We show that all occurren ces of one- or two-dimensional patterns can be found in O(n/r) average time with constant memory, where r is the repetition size of P (size of the lon gest repeated subword of P). (C) 1999 Elsevier Science B.V. All rights rese rved.