English

Optimal Computation of Overabundant Words

Data Structures and Algorithms 2017-05-10 v1

Abstract

The observed frequency of the longest proper prefix, the longest proper suffix, and the longest infix of a word ww in a given sequence xx can be used for classifying ww as avoided or overabundant. The definitions used for the expectation and deviation of ww in this statistical model were described and biologically justified by Brendel et al. (J Biomol Struct Dyn 1986). We have very recently introduced a time-optimal algorithm for computing all avoided words of a given sequence over an integer alphabet (Algorithms Mol Biol 2017). In this article, we extend this study by presenting an O(n)\mathcal{O}(n)-time and O(n)\mathcal{O}(n)-space algorithm for computing all overabundant words in a sequence xx of length nn over an integer alphabet. Our main result is based on a new non-trivial combinatorial property of the suffix tree T\mathcal{T} of xx: the number of distinct factors of xx whose longest infix is the label of an explicit node of T\mathcal{T} is no more than 3n43n-4. We further show that the presented algorithm is time-optimal by proving that O(n)\mathcal{O}(n) is a tight upper bound for the number of overabundant words. Finally, we present experimental results, using both synthetic and real data, which justify the effectiveness and efficiency of our approach in practical terms.

Keywords

Cite

@article{arxiv.1705.03385,
  title  = {Optimal Computation of Overabundant Words},
  author = {Yannis Almirantis and Panagiotis Charalampopoulos and Jia Gao and Costas S. Iliopoulos and Manal Mohamed and Solon P. Pissis and Dimitris Polychronopoulos},
  journal= {arXiv preprint arXiv:1705.03385},
  year   = {2017}
}
R2 v1 2026-06-22T19:41:51.710Z