Copyright © 1999 Published by Elsevier Science B.V.
Algorithmic on word
Constant-space string-matching in sublinear average time
Available online 24 June 1999.
References and further reading may be available for this article. To view references and further reading you must purchase this article.
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 occurrences 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 longest repeated subword of P).






E-mail Article
Add to my Quick Links

Cited By in Scopus (2)

> 0, the new algorithm takes linear time, uses constant space and makes at most 




