Ranking and Unranking k-Subsequence Universal Words

From MaRDI portal
Publication:6134861

DOI10.1007/978-3-031-33180-0_4arXiv2304.04583OpenAlexW4381303907MaRDI QIDQ6134861FDOQ6134861


Authors: Duncan Adamson Edit this on Wikidata


Publication date: 25 July 2023

Published in: Lecture Notes in Computer Science (Search for Journal in Brave)

Abstract: A subsequence of a word w is a word u such that u=w[i1]w[i2],dotsw[i|u|], for some set of indices 1leqi1<i2<dots<ikleq|w|. A word w is k-subsequence universal over an alphabet Sigma if every word in Sigmak appears in w as a subsequence. In this paper, we provide new algorithms for k-subsequence universal words of fixed length n over the alphabet Sigma=1,2,dots,sigma. Letting mathcalU(n,k,sigma) denote the set of n-length k-subsequence universal words over Sigma, we provide: * an O(nksigma) time algorithm for counting the size of mathcalU(n,k,sigma); * an O(nksigma) time algorithm for ranking words in the set mathcalU(n,k,sigma); * an O(nksigma) time algorithm for unranking words from the set mathcalU(n,k,sigma); * an algorithm for enumerating the set mathcalU(n,k,sigma) with O(nsigma) delay after O(nksigma) preprocessing.


Full work available at URL: https://arxiv.org/abs/2304.04583




Recommendations



Cites Work


Cited In (2)





This page was built for publication: Ranking and Unranking k-Subsequence Universal Words

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6134861)