Ranking and Unranking k-subsequence universal words
Data Structures and Algorithms
2023-04-11 v1 Combinatorics
Abstract
A subsequence of a word is a word such that , for some set of indices . A word is -subsequence universal over an alphabet if every word in appears in as a subsequence. In this paper, we provide new algorithms for -subsequence universal words of fixed length over the alphabet . Letting denote the set of -length -subsequence universal words over , we provide: * an time algorithm for counting the size of ; * an time algorithm for ranking words in the set ; * an time algorithm for unranking words from the set ; * an algorithm for enumerating the set with delay after preprocessing.
Keywords
Cite
@article{arxiv.2304.04583,
title = {Ranking and Unranking k-subsequence universal words},
author = {Duncan Adamson},
journal= {arXiv preprint arXiv:2304.04583},
year = {2023}
}