Bounded Weighted Edit Distance with Metric Costs
Abstract
We give a deterministic -time algorithm for bounded weighted edit distance when the input costs form an integer metric on the alphabet extended by a gap symbol. Here is the total input length and is the given threshold on the distance. If the distance is at most , the algorithm returns it with an optimal alignment. Otherwise, it reports that the distance exceeds . The running time matches the classical unit-cost bound and is independent of the alphabet size and of the largest cost. The algorithm keeps only the farthest-reaching prefix alignment for each cost and each difference between the total gap costs of the aligned prefixes. For real metrics whose nonzero costs are at least one, scaling and upward rounding give a -approximation for the bounded problem in time. If insertions and deletions have integer costs, the running time improves to .
Create a lesson
Related papers
Tight Bounds for Distance-Unbiased Sorting
Shared title terminology · Mats Bierwirth, Carola Doerr, Johannes Lengler
Tight Bounds for Sublinear Metric Steiner Tree
Shared title terminology · Sepideh Mahabadi, Mohammad Roghani, Jakub Tarnawski et al.
Pairwise Reconnection for Cost-Distance Steiner Trees
Shared title terminology · Edgar Perner
An n^{1/O(\log^* n)} Lower Bound for Online Coloring of k-Colorable Graphs
Shared title terminology · Sajad Faghfoor Maghrebi
String Indexing for Maximal Gap-Bounded Occurrence Clusters
Shared title terminology · Waseem Akram, Takuya Mieno
Tight Bounds for Rank Estimation in Turnstile Streams
Shared title terminology · Yang S. Hu, Cheng Jiang, Yinchen Liu et al.