Abstract

We consider the problem of computing a (1+ε)(1+ε)-approximation of the Hamming distance between a pattern of length nn and successive substrings of a stream. We first look at the one-way randomised communication complexity of this problem, giving Alice the first half of the stream and Bob the second half. We show the following: (1) If Alice and Bob both share the pattern then there is an O(ε−4log⁡2n)O(ε^{-4} \log^2 n) bit randomised one-way communication protocol. (2) If only Alice has the pattern then there is an O(ε−2nlog⁡n)O(ε^{-2}\sqrt{n}\log n) bit randomised one-way communication protocol. We then go on to develop small space streaming algorithms for (1+ε)(1+ε)-approximate Hamming distance which give worst case running time guarantees per arriving symbol. (1) For binary input alphabets there is an O(ε−3nlog⁡2n)O(ε^{-3} \sqrt{n} \log^{2} n) space and O(ε−2log⁡n)O(ε^{-2} \log{n}) time streaming (1+ε)(1+ε)-approximate Hamming distance algorithm. (2) For general input alphabets there is an O(ε−5nlog⁡4n)O(ε^{-5} \sqrt{n} \log^{4} n) space and O(ε−4log⁡3n)O(ε^{-4} \log^3 {n}) time streaming (1+ε)(1+ε)-approximate Hamming distance algorithm.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.