Tight Bounds for the Number of Absent Subsequences
Abstract
A {\em subsequence} of a word is a word that can be obtained by deleting some letters from while maintaining the relative order of the remaining letters, e.g., is a subsequence of . A word, over some alphabet , which has all possible words of length over as subsequences is called -universal, and the largest for which this holds is called the universality index of , and denoted . Moreover, words that are not subsequences of are called absent subsequences (AS) of , and their investigation was started in (Kosche et al., 2022). In this paper, we present tight bounds on the number of AS of a given length among all words with the same universality index . For both the lower and upper bound, we construct words that have, respectively, a minimal and maximal number of absent subsequences of the respective length , and, in the case of the lower bound, we provide the exact number of missing subsequences as a closed form. Finally, we present efficient enumeration algorithms for the set of subsequences of given length of a word: we give a novel, optimal enumeration algorithm with output linear delay of this set of subsequences, with preprocessing time , which is further improved to an incremental enumeration algorithm with delay of this set of subsequences, with preprocessing time .
Keywords
Cite
@article{arxiv.2407.18599,
title = {Tight Bounds for the Number of Absent Subsequences},
author = {Duncan Adamson and Pamela Fleischmann and Annika Huch and Florin Manea and Paul Sarnighausen-Cahn and Max Wiedenhöft},
journal= {arXiv preprint arXiv:2407.18599},
year = {2025}
}