Efficiently Finding All Minimal and Shortest Absent Subsequences in a String

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Manea, Florin, Ringleb, Tina, Siemer, Stefan, Winkler, Maximilian
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910922889494528
author Manea, Florin
Ringleb, Tina
Siemer, Stefan
Winkler, Maximilian
author_facet Manea, Florin
Ringleb, Tina
Siemer, Stefan
Winkler, Maximilian
contents Given a string $w$, another string $v$ is said to be a subsequence of $w$ if $v$ can be obtained from $w$ by removing some of its letters; on the other hand, $v$ is called an absent subsequence of $w$ if $v$ is not a subsequence of $w$. The existing literature on absent subsequences focused on understanding, for a string $w$, the set of its shortest absent subsequences (i.e., the shortest strings which are absent subsequences of $w$) and that of its minimal absent subsequences (i.e., those strings which are absent subsequences of $w$ but whose every proper subsequence occurs in $w$). Our contributions to this area of research are the following. Firstly, we present optimal algorithms (with linear time preprocessing and output-linear delay) for the enumeration of the shortest and, respectively, minimal absent subsequences. Secondly, we present optimal algorithms for the incremental enumeration of these strings with linear time preprocessing and constant delay; in this setting, we only output short edit-scripts showing how the currently enumerated string differs from the previous one. Finally, we provide an efficient algorithm for identifying a longest minimal absent subsequence of a string. All our algorithms improve the state-of-the-art results for the aforementioned problems.
format Preprint
id arxiv_https___arxiv_org_abs_2504_21471
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficiently Finding All Minimal and Shortest Absent Subsequences in a String
Manea, Florin
Ringleb, Tina
Siemer, Stefan
Winkler, Maximilian
Data Structures and Algorithms
Formal Languages and Automata Theory
Given a string $w$, another string $v$ is said to be a subsequence of $w$ if $v$ can be obtained from $w$ by removing some of its letters; on the other hand, $v$ is called an absent subsequence of $w$ if $v$ is not a subsequence of $w$. The existing literature on absent subsequences focused on understanding, for a string $w$, the set of its shortest absent subsequences (i.e., the shortest strings which are absent subsequences of $w$) and that of its minimal absent subsequences (i.e., those strings which are absent subsequences of $w$ but whose every proper subsequence occurs in $w$). Our contributions to this area of research are the following. Firstly, we present optimal algorithms (with linear time preprocessing and output-linear delay) for the enumeration of the shortest and, respectively, minimal absent subsequences. Secondly, we present optimal algorithms for the incremental enumeration of these strings with linear time preprocessing and constant delay; in this setting, we only output short edit-scripts showing how the currently enumerated string differs from the previous one. Finally, we provide an efficient algorithm for identifying a longest minimal absent subsequence of a string. All our algorithms improve the state-of-the-art results for the aforementioned problems.
title Efficiently Finding All Minimal and Shortest Absent Subsequences in a String
topic Data Structures and Algorithms
Formal Languages and Automata Theory
url https://arxiv.org/abs/2504.21471