MacCorles: Minimum Alignment Cost Computation on Run-Length Encoded Strings
Wing-Kai Hon, Dominik Köppl, Jun-Hong Wang
Key points
From the paper's conclusion- We study a tie-breaking variant of the longest common subsequence problem on run-length encoded strings.
Abstract
We study a tie-breaking variant of the longest common subsequence problem on run-length encoded strings. Given two strings, the goal is first to maximize the number of equal aligned character pairs, as in the classical longest common subsequence problem, and then, among all such alignments, to minimize the alignment length. Equivalently, after maximizing the number of equal pairs, we minimize the number of insertions and deletions. We show that this problem admits a simple block-boundary dynamic program. If the input strings have lengths $N$ and $M$, and their run-length encodings have $n$ and $m$ runs, respectively, the algorithm runs in $O(mN+nM)$ time using $O(nm)$ space. The algorithm treats every pair of runs as a homogeneous block with an explicit transfer function and stores dynamic-programming values only on run boundaries.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Tight Logarithmic Separations between LZ77 and LZRRarXiv · 2026
- Faster Regular Expression Matching via Two-Dimensional TabulationarXiv · 2026
- Fine-Grained Hardness of Approximating Dynamic Time WarpingarXiv · 2026
- Stable Levenshtein Spheres for Run Strings: Exact Formulas, Certification, and Polynomial StructureAlgorithms · 2026
- Efficient Grammar Compression via RLZ-Based RePairDROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2026
- Accelerating String Comparison in RLZ Compressed Sequences via LCE JumpsbioRxiv · 2026