A Simple Sublinear Algorithm for Gap Edit Distance

07/28/2020
by   Joshua Brakensiek, et al.
0

We study the problem of estimating the edit distance between two n-character strings. While exact computation in the worst case is believed to require near-quadratic time, previous work showed that in certain regimes it is possible to solve the following gap edit distance problem in sub-linear time: distinguish between inputs of distance ≤ k and >k^2. Our main result is a very simple algorithm for this benchmark that runs in time Õ(n/√(k)), and in particular settles the open problem of obtaining a truly sublinear time for the entire range of relevant k. Building on the same framework, we also obtain a k-vs-k^2 algorithm for the one-sided preprocessing model with Õ(n) preprocessing time and Õ(n/k) query time (improving over a recent Õ(n/k+k^2)-query time algorithm for the same problem [GRS'20].

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/29/2022

Improved Sublinear-Time Edit Distance for Preprocessed Strings

We study the problem of approximating the edit distance of two strings i...
research
10/02/2019

Sublinear Algorithms for Gap Edit Distance

The edit distance is a way of quantifying how similar two strings are to...
research
07/24/2020

Sublinear-Time Algorithms for Computing Embedding Gap Edit Distance

In this paper, we design new sublinear-time algorithms for solving the g...
research
11/24/2021

Gap Edit Distance via Non-Adaptive Queries: Simple and Optimal

We study the problem of approximating edit distance in sublinear time. T...
research
02/16/2022

Almost-Optimal Sublinear-Time Edit Distance in the Low Distance Regime

We revisit the task of computing the edit distance in sublinear time. In...
research
11/22/2022

An Algorithmic Bridge Between Hamming and Levenshtein Distances

The edit distance between strings classically assigns unit cost to every...
research
07/25/2022

Simple O(1) Query Algorithm for Level Ancestors

This note describes a very simple O(1) query time algorithm for finding ...

Please sign up or login with your details

Forgot password? Click here to reset