paper

Ranking and Unranking k-subsequence universal words

arXiv:2304.04583

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.

Ranking and Unranking k-subsequence universal words · wovepaper