An Improved Algorithm for The $k$-Dyck Edit Distance Problem
Abstract
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 is the smallest number of edit operations (insertions, deletions, and substitutions) needed to transform into a Dyck sequence. We consider the threshold Dyck edit distance problem, where the input is a sequence of parentheses and a positive integer , and the goal is to compute the Dyck edit distance of only if the distance is at most , and otherwise report that the distance is larger than . Backurs and Onak [PODS'16] showed that the threshold Dyck edit distance problem can be solved in time. In this work, we design new algorithms for the threshold Dyck edit distance problem which costs time with high probability or deterministically. Our algorithms combine several new structural properties of the Dyck edit distance problem, a refined algorithm for fast matrix product, and a careful modification of ideas used in Valiant's parsing algorithm.
Keywords
Cite
@article{arxiv.2111.02336,
title = {An Improved Algorithm for The $k$-Dyck Edit Distance Problem},
author = {Dvir Fried and Shay Golan and Tomasz Kociumaka and Tsvi Kopelowitz and Ely Porat and Tatiana Starikovskaya},
journal= {arXiv preprint arXiv:2111.02336},
year = {2022}
}
Comments
Journal version