An Improved Algorithm for The k-Dyck Edit Distance Problem

11/03/2021
by   Dvir Fried, et al.
0

A Dyck sequence is a sequence of opening and closing parentheses (of various types) that is balanced. The Dyck edit distance of a given sequence of parentheses S is the smallest number of edit operations (insertions, deletions, and substitutions) needed to transform S into a Dyck sequence. We consider the threshold Dyck edit distance problem, where the input is a sequence of parentheses S and a positive integer k, and the goal is to compute the Dyck edit distance of S only if the distance is at most k, and otherwise report that the distance is larger than k. Backurs and Onak [PODS'16] showed that the threshold Dyck edit distance problem can be solved in O(n+k^16) time. In this work, we design new algorithms for the threshold Dyck edit distance problem which costs O(n+k^4.782036) time with high probability or O(n+k^4.853059) deterministically. Our algorithms combine several new structural properties of the Dyck edit distance problem, a refined algorithm for fast (min,+) matrix product, and a careful modification of ideas used in Valiant's parsing algorithm.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/17/2018

Revisiting the tree edit distance and its backtracing: A tutorial

Almost 30 years ago, Zhang and Shasha published a seminal paper describi...
research
10/25/2020

An Improved Sketching Bound for Edit Distance

We provide improved upper bounds for the simultaneous sketching complexi...
research
07/30/2021

The Minimum Edit Arborescence Problem and Its Use in Compressing Graph Collections [Extended Version]

The inference of minimum spanning arborescences within a set of objects ...
research
10/02/2018

Optimal Completion Distillation for Sequence Learning

We present Optimal Completion Distillation (OCD), a training procedure f...
research
08/23/2016

Tracking Amendments to Legislation and Other Political Texts with a Novel Minimum-Edit-Distance Algorithm: DocuToads

Political scientists often find themselves tracking amendments to politi...
research
04/21/2022

Time Window Frechet and Metric-Based Edit Distance for Passively Collected Trajectories

The advances of modern localization techniques and the wide spread of mo...
research
12/17/2019

Testing Membership for Timed Automata

Given a timed automata which admits thick components and a timed word x,...

Please sign up or login with your details

Forgot password? Click here to reset