The Streaming k-Mismatch Problem: Tradeoffs between Space and Total Time

04/27/2020
by   Shay Golan, et al.
0

We revisit the k-mismatch problem in the streaming model on a pattern of length m and a streaming text of length n, both over a size-σ alphabet. The current state-of-the-art algorithm for the streaming k-mismatch problem, by Clifford et al. [SODA 2019], uses Õ(k) space and Õ(√(k)) worst-case time per character. The space complexity is known to be (unconditionally) optimal, and the worst-case time per character matches a conditional lower bound. However, there is a gap between the total time cost of the algorithm, which is Õ(n√(k)), and the fastest known offline algorithm, which costs Õ(n + min(nk/√(m),σ n)) time. Moreover, it is not known whether improvements over the Õ(n√(k)) total time are possible when using more than O(k) space. We address these gaps by designing a randomized streaming algorithm for the k-mismatch problem that, given an integer parameter k< s < m, uses Õ(s) space and costs Õ(n+min(nk^2/m,nk/√(s),σ nm/s)) total time. For s=m, the total runtime becomes Õ(n + min(nk/√(m),σ n)), which matches the time cost of the fastest offline algorithm. Moreover, the worst-case time cost per character is still Õ(√(k)).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/07/2018

Streaming dictionary matching with mismatches

In the k-mismatch problem we are given a pattern of length m and a text ...
research
07/23/2018

Average Case - Worst Case Tradeoffs for Evacuating 2 Robots from the Disk in the Face-to-Face Model

The problem of evacuating two robots from the disk in the face-to-face m...
research
07/03/2019

Circular Pattern Matching with k Mismatches

The k-mismatch problem consists in computing the Hamming distance betwee...
research
06/05/2023

Fully-Dynamic All-Pairs Shortest Paths: Likely Optimal Worst-Case Update Time

The All-Pairs Shortest Paths (APSP) problem is one of the fundamental pr...
research
06/24/2020

Improved Circular k-Mismatch Sketches

The shift distance 𝗌𝗁(S_1,S_2) between two strings S_1 and S_2 of the sa...
research
10/02/2018

Sketching, Streaming, and Fine-Grained Complexity of (Weighted) LCS

We study sketching and streaming algorithms for the Longest Common Subse...
research
05/02/2020

Deterministic Treasure Hunt in the Plane with Angular Hints

A mobile agent equipped with a compass and a measure of length has to fi...

Please sign up or login with your details

Forgot password? Click here to reset