English

Constructing Antidictionaries in Output-Sensitive Space

Data Structures and Algorithms 2019-02-14 v1

Abstract

A word xx that is absent from a word yy is called minimal if all its proper factors occur in yy. Given a collection of kk words y1,y2,,yky_1,y_2,\ldots,y_k over an alphabet Σ\Sigma, we are asked to compute the set My1##yk\mathrm{M}^{\ell}_{y_{1}\#\ldots\#y_{k}} of minimal absent words of length at most \ell of word y=y1#y2##yky=y_1\#y_2\#\ldots\#y_k, #Σ\#\notin\Sigma. In data compression, this corresponds to computing the antidictionary of kk documents. In bioinformatics, it corresponds to computing words that are absent from a genome of kk chromosomes. This computation generally requires Ω(n)\Omega(n) space for n=yn=|y| using any of the plenty available O(n)\mathcal{O}(n)-time algorithms. This is because an Ω(n)\Omega(n)-sized text index is constructed over yy which can be impractical for large nn. We do the identical computation incrementally using output-sensitive space. This goal is reasonable when My1##yN=o(n)||\mathrm{M}^{\ell}_{y_{1}\#\ldots\#y_{N}}||=o(n), for all N[1,k]N\in[1,k]. For instance, in the human genome, n3×109n \approx 3\times 10^9 but My1##yk12106||\mathrm{M}^{12}_{y_{1}\#\ldots\#y_{k}}|| \approx 10^6. We consider a constant-sized alphabet for stating our results. We show that all My1,,My1##yk\mathrm{M}^{\ell}_{y_{1}},\ldots,\mathrm{M}^{\ell}_{y_{1}\#\ldots\#y_{k}} can be computed in O(kn+N=1kMy1##yN)\mathcal{O}(kn+\sum^{k}_{N=1}||\mathrm{M}^{\ell}_{y_{1}\#\ldots\#y_{N}}||) total time using O(MaxIn+MaxOut)\mathcal{O}(\mathrm{MaxIn}+\mathrm{MaxOut}) space, where MaxIn\mathrm{MaxIn} is the length of the longest word in {y1,,yk}\{y_1,\ldots,y_{k}\} and MaxOut=max{My1##yN:N[1,k]}\mathrm{MaxOut}=\max\{||\mathrm{M}^{\ell}_{y_{1}\#\ldots\#y_{N}}||:N\in[1,k]\}. Proof-of-concept experimental results are also provided confirming our theoretical findings and justifying our contribution.

Keywords

Cite

@article{arxiv.1902.04785,
  title  = {Constructing Antidictionaries in Output-Sensitive Space},
  author = {Lorraine A. K. Ayad and Golnaz Badkobeh and Gabriele Fici and Alice Héliou and Solon P. Pissis},
  journal= {arXiv preprint arXiv:1902.04785},
  year   = {2019}
}

Comments

Version accepted to DCC 2019

R2 v1 2026-06-23T07:39:36.935Z