Maximum Letter-Duplicated and Longest Run Subsequences: Algorithms, Approximation, and Interval-Selection Connections
Riccardo Dondi, Mohammad Mehdi Hosseinzadeh, Adrian Miclăuş, Alexandru Popa, Vlad Tutunaru
Abstract
We study Max-LL-DUP: given a string , 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 , unrestricted Max-LL-DUP admits a randomized -approximation, while the frequency-four case admits a randomized -approximation through an exact reduction to JISP. We also give an exact -time algorithm, where is the number of symbols occurring more than three times. For 3-Max-LL-DUP range queries, we obtain linear space and query time via weighted-ancestor queries. We further study single-deletion sensitivity and compute all deletion answers in 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.
Create a lesson
Metadata
- Comments
- 14 pages, 1 figure
Related papers
Constant-factor approximation algorithms for k-node-connectivity augmentation
Shared title terminologycs.DSAmir Belgi, Zeev Nutov
Approximation Algorithms for Minimizing the Makespan in Distributed Proportionate Flow Shops
Shared title terminologycs.DSDvir Shabtay, Baruch Mor, Gur Mosheiov
A Better Approximation Algorithm for k-Delivery Traveling Salesman Problem
Shared title terminologycs.DSJiajun He, Guochuan Zhang
Approximation algorithms for balanced spanning forest problem
Shared title terminologycs.DSZixin Qiao, Yong Chen, Guohui Lin et al.
No polynomial-time \frac78-approximation algorithm for MAX SAT, assuming UGC and \mathsf{P} ≠ \mathsf{NP}
Shared title terminologycs.DSJoshua Brakensiek, Neng Huang, Aaron Potechin et al.
An Experimental Evaluation of Maximum Weighted Matching Algorithms: Edmonds, Gabow, and Scaling on General Graphs
Shared title terminologycs.DSAbdulaziz Alfaraj, Ahmed Al-Herz