Improved Approximation Algorithms for Dyck Edit Distance and RNA Folding

12/10/2021
by   Debarati Das, et al.
0

The Dyck language, which consists of well-balanced sequences of parentheses, is one of the most fundamental context-free languages. The Dyck edit distance quantifies the number of edits (character insertions, deletions, and substitutions) required to make a given parenthesis sequence well-balanced. RNA Folding involves a similar problem, where a closing parenthesis can match an opening parenthesis of the same type irrespective of their ordering. For example, in RNA Folding, both () and )( are valid matches, whereas the Dyck language only allows () as a match. Using fast matrix multiplication, it is possible to compute their exact solutions of both problems in time O(n^2.824). Whereas combinatorial algorithms would be more desirable, the two problems are known to be at least as hard as Boolean matrix multiplication. In terms of fast approximation algorithms that are combinatorial in nature, both problems admit an ϵ n-additive approximation in Õ(n^2/ϵ) time. Further, there is a O(log n)-factor approximation algorithm for Dyck edit distance in near-linear time. In this paper, we design a constant-factor approximation algorithm for Dyck edit distance that runs in O(n^1.971) time. Moreover, we develop a (1+ϵ)-factor approximation algorithm running in Õ(n^2/ϵ) time, which improves upon the earlier additive approximation. Finally, we design a (3+ϵ)-approximation that takes Õ(nd/ϵ) time, where d≥ 1 is an upper bound on the sought distance. As for RNA folding, for any s≥1, we design a factor-s approximation algorithm that runs in O(n+(n/s)^3) time. To the best of our knowledge, this is the first nontrivial approximation algorithm for RNA Folding that can go below the n^2 barrier. All our algorithms are combinatorial.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/23/2020

Conditionally optimal approximation algorithms for the girth of a directed graph

It is known that a better than 2-approximation algorithm for the girth i...
research
04/23/2020

Directed Girth

It is known that a better than 2-approximation algorithm for the girth i...
research
03/16/2020

Approximating LCS in Linear Time: Beating the √(n) Barrier

Longest common subsequence (LCS) is one of the most fundamental problems...
research
06/03/2021

Approximation Algorithms for Min-Distance Problems in DAGs

The min-distance between two nodes u, v is defined as the minimum of the...
research
12/12/2017

Efficient Approximation Algorithms for String Kernel Based Sequence Classification

Sequence classification algorithms, such as SVM, require a definition of...
research
01/01/2020

Approximating Text-to-Pattern Hamming Distances

We revisit a fundamental problem in string matching: given a pattern of ...
research
02/26/2020

Streaming with Oracle: New Streaming Algorithms for Edit Distance and LCS

The edit distance (ED) and longest common subsequence (LCS) are two fund...

Please sign up or login with your details

Forgot password? Click here to reset