Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Longest common substrings with k mismatches

Published 5 Sep 2014 in cs.DS | (1409.1694v2)

Abstract: The longest common substring with kk-mismatches problem is to find, given two strings S1S_1 and S2S_2, a longest substring A1A_1 of S1S_1 and A2A_2 of S2S_2 such that the Hamming distance between A1A_1 and A2A_2 is ≤k\le k. We introduce a practical O(nm)O(nm) time and O(1)O(1) space solution for this problem, where nn and mm are the lengths of S1S_1 and S2S_2, respectively. This algorithm can also be used to compute the matching statistics with kk-mismatches of S1S_1 and S2S_2 in O(nm)O(nm) time and O(m)O(m) space. Moreover, we also present a theoretical solution for the k=1k = 1 case which runs in O(nlog⁡m)O(n \log m) time, assuming m≤nm\le n, and uses O(m)O(m) space, improving over the existing O(nm)O(nm) time and O(m)O(m) space bound of Babenko and Starikovskaya.

Citations (41)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.