TY - GEN
T1 - Rollercoasters with Plateaus
AU - Adamson, Duncan
AU - Fleischmann, Pamela
AU - Huch, Annika
N1 - Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.
PY - 2024
Y1 - 2024
N2 - In this paper we investigate the problem of detecting, counting, and enumerating (generating) all maximum length plateau-k-rollercoasters appearing as a subsequence of some given word (sequence, string), while allowing for plateaus. We define a plateau-k-rollercoaster as a word consisting of an alternating sequence of (weakly) increasing and decreasing runs, with each run containing at least kdistinct elements, allowing the run to contain multiple copies of the same symbol consecutively. This differs from previous work, where runs within rollercoasters have been defined only as sequences of distinct values. Here, we are concerned with rollercoasters of maximum length embedded in a given word w, that is, the longest rollercoasters that are a subsequence of w. We present algorithms allowing us to determine the longest plateau-k-rollercoasters appearing as a subsequence in any given word w of length n over an alphabet of size σ in O(nσk) time, to count the number of plateau-k-rollercoasters in w of maximum length in O(nσk) time, and to output all of them with O(n) delay after O(nσk) preprocessing. Furthermore, we present an algorithm to determine the longest common plateau-k-rollercoaster within a set of words in O(Nkσ) where N is the product of all word lengths within the set.
AB - In this paper we investigate the problem of detecting, counting, and enumerating (generating) all maximum length plateau-k-rollercoasters appearing as a subsequence of some given word (sequence, string), while allowing for plateaus. We define a plateau-k-rollercoaster as a word consisting of an alternating sequence of (weakly) increasing and decreasing runs, with each run containing at least kdistinct elements, allowing the run to contain multiple copies of the same symbol consecutively. This differs from previous work, where runs within rollercoasters have been defined only as sequences of distinct values. Here, we are concerned with rollercoasters of maximum length embedded in a given word w, that is, the longest rollercoasters that are a subsequence of w. We present algorithms allowing us to determine the longest plateau-k-rollercoasters appearing as a subsequence in any given word w of length n over an alphabet of size σ in O(nσk) time, to count the number of plateau-k-rollercoasters in w of maximum length in O(nσk) time, and to output all of them with O(n) delay after O(nσk) preprocessing. Furthermore, we present an algorithm to determine the longest common plateau-k-rollercoaster within a set of words in O(Nkσ) where N is the product of all word lengths within the set.
KW - (Longest Common) Subsequences
KW - Enumeration
KW - k-Rollercoaster
KW - Plateaus
KW - Scattered Factors
UR - http://www.scopus.com/inward/record.url?scp=85205363332&partnerID=8YFLogxK
U2 - 10.1007/978-3-031-72621-7_6
DO - 10.1007/978-3-031-72621-7_6
M3 - Conference contribution
AN - SCOPUS:85205363332
SN - 9783031726200
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 73
EP - 87
BT - Reachability Problems - 18th International Conference, RP 2024, Proceedings
A2 - Kovács, Laura
A2 - Sokolova, Ana
PB - Springer Science and Business Media
T2 - 18th International Conference on Reachability Problems, RP 2024
Y2 - 25 September 2024 through 27 September 2024
ER -