Ranking and Unranking k-subsequence universal words

04/10/2023
by   Duncan Adamson, et al.
0

A subsequence of a word w is a word u such that u = w[i_1] w[i_2] , … w[i_|u|], for some set of indices 1 ≤ i_1 < i_2 < … < i_k ≤ |w|. A word w is k-subsequence universal over an alphabet Σ if every word in Σ^k 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 Σ = {1,2,…, σ}. Letting 𝒰(n,k,σ) denote the set of n-length k-subsequence universal words over Σ, we provide: * an O(n k σ) time algorithm for counting the size of 𝒰(n,k,σ); * an O(n k σ) time algorithm for ranking words in the set 𝒰(n,k,σ); * an O(n k σ) time algorithm for unranking words from the set 𝒰(n,k,σ); * an algorithm for enumerating the set 𝒰(n,k,σ) with O(n σ) delay after O(n k σ) preprocessing.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/04/2023

Ranking and unranking bordered and unbordered words

A border of a word w is a word that is both a non-empty proper prefix an...
research
06/19/2021

Checking whether a word is Hamming-isometric in linear time

A finite word f is Hamming-isometric if for any two word u and v of same...
research
01/16/2020

Lower density selection schemes via small universal hitting sets with short remaining path length

Universal hitting sets are sets of words that are unavoidable: every lon...
research
08/04/2021

Combinatorial Algorithms for Multidimensional Necklaces

A necklace is an equivalence class of words of length n over an alphabet...
research
05/27/2022

Ranking Binary Unlabelled Necklaces in Polynomial Time

Unlabelled Necklaces are an equivalence class of cyclic words under both...
research
05/25/2021

An explicit algorithm for normal forms in small overlap monoids

If 𝒫 = ⟨ A | R ⟩ is a monoid presentation, then the relation words in...
research
12/17/2017

Benford's Law and First Letter of Word

A universal First-Letter Law (FLL) is derived and described. It predicts...

Please sign up or login with your details

Forgot password? Click here to reset