Reverse Engineering Prefix Tables

Authors Julien Clement, Maxime Crochemore, Giuseppina Rindone



PDF
Thumbnail PDF

File

LIPIcs.STACS.2009.1825.pdf
  • Filesize: 178 kB
  • 12 pages

Document Identifiers

Author Details

Julien Clement
Maxime Crochemore
Giuseppina Rindone

Cite As Get BibTex

Julien Clement, Maxime Crochemore, and Giuseppina Rindone. Reverse Engineering Prefix Tables. In 26th International Symposium on Theoretical Aspects of Computer Science. Leibniz International Proceedings in Informatics (LIPIcs), Volume 3, pp. 289-300, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2009) https://doi.org/10.4230/LIPIcs.STACS.2009.1825

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 $n$ 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_2 n$ letters. The overall algorithm runs in $O(n)$ time.

Subject Classification

Keywords
  • Design and analysis of algorithms
  • Algorithms on strings
  • Pattern matching
  • String matching
  • Combinatorics on words
  • Prefix table
  • Suffix table

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail