Abstract
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.
| Original language | English |
|---|---|
| Title of host publication | Reachability problems |
| Subtitle of host publication | 18th international conference, RP 2024, Vienna, Austria, September 25–27, 2024, proceedings |
| Editors | Laura Kovács, Ana Sokolova |
| Place of Publication | Cham |
| Publisher | Springer Science and Business Media |
| Pages | 73-87 |
| Number of pages | 15 |
| ISBN (Electronic) | 9783031726217 |
| ISBN (Print) | 9783031726200 |
| DOIs | |
| Publication status | Published - 2024 |
| Event | 18th International Conference on Reachability Problems, RP 2024 - Vienna, Austria Duration: 25 Sept 2024 → 27 Sept 2024 Conference number: 18 https://easychair.org/smart-program/RP24/index.html |
Publication series
| Name | Lecture notes in computer science (including subseries Lecture notes in artificial intelligence and Lecture notes in bioinformatics) |
|---|---|
| Volume | 15050 LNCS |
| ISSN (Print) | 0302-9743 |
| ISSN (Electronic) | 1611-3349 |
Conference
| Conference | 18th International Conference on Reachability Problems, RP 2024 |
|---|---|
| Abbreviated title | RP 2024 |
| Country/Territory | Austria |
| City | Vienna |
| Period | 25/09/24 → 27/09/24 |
| Internet address |
Keywords
- (Longest common) subsequences
- Enumeration
- k-Rollercoaster
- Plateaus
- Scattered factors