OPTIMAL ONLINE SEARCH AND SUBLINEAR TIME UPDATE IN STRING-MATCHING

Citation
P. Ferragina et R. Grossi, OPTIMAL ONLINE SEARCH AND SUBLINEAR TIME UPDATE IN STRING-MATCHING, SIAM journal on computing, 27(3), 1998, pp. 713-736
Citations number
35
Categorie Soggetti
Computer Science Theory & Methods",Mathematics,"Computer Science Theory & Methods",Mathematics
Journal title
ISSN journal
00975397
Volume
27
Issue
3
Year of publication
1998
Pages
713 - 736
Database
ISI
SICI code
0097-5397(1998)27:3<713:OOSAST>2.0.ZU;2-V
Abstract
This paper investigates the problem of searching on-line for the occur rences (occ) of an arbitrary pattern of length p in a text of length n subjected to some updates after its preprocessing. Each text update c onsists of inserting or deleting an arbitrary string of length y. We p resent the first dynamic algorithm that achieves optimal query time, i .e., Theta(p + occ), sublinear time per update, i.e., O(root n + y), a nd optimal space, i.e., Theta(n), in the worst case. As a result, our algorithm obtains the same query time and space usage of suffix trees [McCreight, J. Assoc. Comput. Mach., 23 (1976),pp. 262-272] while impr oving their O(n + y) update performance.