Paper record

W1534830854

Reverse Engineering Prefix Tables

Julien Clément, Maxime Crochemore, Giuseppina Rindone

Licence: cc-by-nd
Year
2009
Venue
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
References
20
Cited by
39

Details and counts from OpenAlex.

Abstract

The Prefix table of a string reports for each position the maximal length of its prefixes starting here. The Prefix table and its dual Suffix table are basic tools used in the design of the most efficient string-matching and pattern extraction algorithms. These tables can be computed in linear time independently of the alphabet size. We give an algorithmic characterisation of a Prefix table (it can be adapted to a Suffix table). Namely, the algorithm tests if an integer table of size nn is the Prefix table of some word and, if successful, it constructs the lexicographically smallest string having it as a Prefix table. We show that the alphabet of the string can be bounded to log⁡2n\log_2 n letters. The overall algorithm runs in O(n)O(n) time.