Small-Space Streaming Hamming Approximation
Przemyslaw Uznanski
Abstract
For a preprocessed pattern of length m and a streaming text, we give two algorithms that estimate the Hamming distance at every alignment to relative error . They use -8/5m2/5+o(1) and -1 m1/2+o(1) words of space, respectively, including all retained pattern information. Each estimate is reported as soon as its window ends, and all estimates are simultaneously correct with high probability. The prior space bounds are O(-3/2m), due to Chan et al. [CGK+20], and O((m/)2/3), a consequence of their results and those of Clifford, Kociumaka, and Porat [CKP18]. For =Θ(m-a), the better of our two bounds improves on both prior space exponents for every fixed 0<a<1/2. A Fourier matcher uses O(-2(m/K)2) words to estimate each distance d within (d+K), giving relative error at most 2 for d K. A threshold matcher based on random-prime residue refinements and the multi-stream dictionary matching algorithm of Golan, Kopelowitz, and Porat [GKP18] gives our second space bound directly. Combining it with the Fourier matcher gives the first. Both space bounds extend to L1 matching over polynomially bounded integer symbols.
Create a lesson
Related papers
A 4.542-approximation for the Small Cuts Cover problem via a multi-rate primal-dual algorithm
Shared title terminology · Zeev Nutov, Elazar Koren
Small Maximum Likelihood on Fixed Cavender-Farris-Neyman Trees: An Approximation Scheme and Limits to Fully Polynomial Approximation
Shared title terminology · Mohammad-Hadi Foroughmand-Araabi, Sama Goliaei
Space-Efficient Text Indexing for Advanced Counting Queries
Shared title terminology · Solon P. Pissis, Sharma V. Thankachan
Approximation Algorithms for Asymmetric Multi-Path TSP
Shared title terminology · Manuel Christalla, Vera Traub
Below Three: A 2.8027-Approximation for Moldable Precedence Scheduling
Shared title terminology · Klaus Jansen, Felix Ohnesorge
Planning Width Is Hard to Approximate Even Given the Unique Optimal Plan
Shared title terminology · Viet Bac Nguyen