English

Approximating General Metric Distances Between a Pattern and a Text

Data Structures and Algorithms 2008-02-12 v1

Abstract

Let T=t0...tn1T=t_0 ... t_{n-1} be a text and P=p0...pm1P = p_0 ... p_{m-1} a pattern taken from some finite alphabet set Σ\Sigma, and let \dist\dist be a metric on Σ\Sigma. We consider the problem of calculating the sum of distances between the symbols of PP and the symbols of substrings of TT of length mm for all possible offsets. We present an ϵ\epsilon-approximation algorithm for this problem which runs in time O(1ϵ2npolylog(n,\absΣ))O(\frac{1}{\epsilon^2}n\cdot \mathrm{polylog}(n,\abs{\Sigma}))

Keywords

Cite

@article{arxiv.0802.1427,
  title  = {Approximating General Metric Distances Between a Pattern and a Text},
  author = {Klim Efremenko and Ely Porat},
  journal= {arXiv preprint arXiv:0802.1427},
  year   = {2008}
}

Comments

This is updated version of paper appered in SODA 2008

R2 v1 2026-06-21T10:11:28.938Z