Ranking and Unranking k-Subsequence Universal Words

From MaRDI portal
Publication:6134861




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.









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)