Absent words in a sliding window with applications

Maxime Crochemore, Alice Héliou, Gregory Kucherov, Laurent Mouchard, Solon P. Pissis*, Yann Ramusat

*Corresponding author for this work

Research output: Contribution to JournalArticleAcademicpeer-review

Abstract

An absent word of a word y is a word that does not occur in y. It is then called minimal if all its proper factors occur in y. In fact, minimal absent words (MAWs) provide useful information about y and thus have several applications. In this paper, we propose an algorithm that maintains the set of MAWs of a fixed-length window sliding over y online. Our algorithm represents MAWs through nodes of the suffix tree. Specifically, the suffix tree of the sliding window is maintained using modified Senft's algorithm (Senft, 2005), itself generalizing Ukkonen's online algorithm (Ukkonen, 1995). We then apply this algorithm to the approximate pattern-matching problem under the Length Weighted Index distance (Chairungsee and Crochemore, 2012). This results in an online O(σ|y|)-time algorithm for finding approximate occurrences of a word x in y, |x|≤|y|, where σ is the alphabet size.

Original languageEnglish
Article number104461
JournalInformation and Computation
Volume270
DOIs
Publication statusPublished - Feb 2020
Externally publishedYes

    Fingerprint

Keywords

  • Absent words
  • Algorithms on strings
  • Forbidden words
  • Online algorithms
  • Pattern matching

Cite this

Crochemore, M., Héliou, A., Kucherov, G., Mouchard, L., Pissis, S. P., & Ramusat, Y. (2020). Absent words in a sliding window with applications. Information and Computation, 270, [104461]. https://doi.org/10.1016/j.ic.2019.104461