Ranking and unranking k-subsequence universal words

Duncan Adamson*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

A subsequence of a word w is a word u such that u= w[ i1] w[ i2], ⋯ w[ i|u|], for some set of indices 1 ≤ i1< i2< ⋯ < ik≤ | 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 U(n, k, σ) denote the set of n-length k-subsequence universal words over Σ, we provide: an O(nkσ) time algorithm for counting the size of U(n, k, σ) ;an O(nkσ) time algorithm for ranking words in the set U(n, k, σ) ;an O(nkσ) time algorithm for unranking words from the set U(n, k, σ) ;an algorithm for enumerating the set U(n, k, σ) with O(nσ) delay after O(nkσ) preprocessing.

Original languageEnglish
Title of host publicationCombinatorics on words
Subtitle of host publication14th international conference, WORDS 2023, Umeå, Sweden, June 12–16, 2023, proceedings
EditorsAnna Frid, Robert Mercaş
Place of PublicationCham
PublisherSpringer Nature Switzerland AG
Pages47-59
Number of pages13
ISBN (Electronic)9783031331800
ISBN (Print)9783031331794
DOIs
Publication statusPublished - 2023
Event14th International Conference on Combinatorics on Words, WORDS 2023 - Umeå, Sweden
Duration: 12 Jun 202316 Jun 2023
Conference number: 14
https://dltwords2023.cs.umu.se/index.html

Publication series

NameLecture notes in computer science (including subseries Lecture notes in artificial intelligence and Lecture notes in bioinformatics)
PublisherSpringer
Volume13899 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference14th International Conference on Combinatorics on Words, WORDS 2023
Abbreviated titleWORDS 2023
Country/TerritorySweden
CityUmeå
Period12/06/2316/06/23
Internet address

Fingerprint

Dive into the research topics of 'Ranking and unranking k-subsequence universal words'. Together they form a unique fingerprint.

Cite this