Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ranking and Unranking k-subsequence universal words

Published 10 Apr 2023 in cs.DS and math.CO | (2304.04583v1)

Abstract: A subsequence of a word ww is a word uu such that u=w[i1]w[i2],…w[i∣u∣]u = w[i_1] w[i_2] , \dots w[i_{|u|}], for some set of indices 1≤i1<i2<⋯<ik≤∣w∣1 \leq i_1 < i_2 < \dots < i_k \leq |w|. A word ww is kk-subsequence universal over an alphabet Σ\Sigma if every word in Σk\Sigma^k appears in ww as a subsequence. In this paper, we provide new algorithms for kk-subsequence universal words of fixed length nn over the alphabet Σ={1,2,…,σ}\Sigma = \{1,2,\dots, \sigma\}. Letting U(n,k,σ)\mathcal{U}(n,k,\sigma) denote the set of nn-length kk-subsequence universal words over Σ\Sigma, we provide: * an O(nkσ)O(n k \sigma) time algorithm for counting the size of U(n,k,σ)\mathcal{U}(n,k,\sigma); * an O(nkσ)O(n k \sigma) time algorithm for ranking words in the set U(n,k,σ)\mathcal{U}(n,k,\sigma); * an O(nkσ)O(n k \sigma) time algorithm for unranking words from the set U(n,k,σ)\mathcal{U}(n,k,\sigma); * an algorithm for enumerating the set U(n,k,σ)\mathcal{U}(n,k,\sigma) with O(nσ)O(n \sigma) delay after O(nkσ)O(n k \sigma) preprocessing.

Authors (1)
Citations (6)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.