betaFeedback

WorksComputer Science

Maximum Letter-Duplicated and Longest Run Subsequences: Algorithms, Approximation, and Interval-Selection Connections

Abstract

We study Max-LL-DUP: given a string SS, find a letter-duplicated subsequence containing the maximum number of distinct symbols. A preliminary version showed that the problem is solvable in linear time when every symbol occurs at most three times and is APX-hard when every symbol occurs at most four times. We develop a more complete algorithmic picture of the problem. Our main structural observation is that feasible solutions can be represented using intervals between consecutive occurrences of symbols, with a linear number of relevant intervals. This gives a deterministic linear-time 2-approximation for unrestricted Max-LL-DUP and an exact reduction to the Job Interval Selection Problem. Consequently, for every constant ε>0\varepsilon>0, unrestricted Max-LL-DUP admits a randomized (e/(e−1)+ε)(e/(e-1)+\varepsilon)-approximation, while the frequency-four case admits a randomized (4/3+ε)(4/3+\varepsilon)-approximation through an exact reduction to JISP2_2. We also give an exact O(2pn)O(2^p n)-time algorithm, where pp is the number of symbols occurring more than three times. For 3-Max-LL-DUP range queries, we obtain linear space and O(log⁡log⁡n)O(\log\log n) query time via weighted-ancestor queries. We further study single-deletion sensitivity and compute all nn deletion answers in O(2pn+nlog⁡n)O(2^p n+n\log n) total time. Finally, we consider the related Longest Run Subsequence problem. Both problems admit an interval-selection interpretation, but their objectives differ: one counts represented symbols whereas the other counts selected positions. Exploiting this connection, we give a value-preserving reduction to weighted Job Interval Selection and obtain a polynomial-time 2-approximation without any restriction on symbol frequencies. To the best of our knowledge, this is the first constant-factor approximation for unrestricted Longest Run Subsequence.

Paper details

vlnc:W_2y5jsyjh
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…