Approximate Matching in the L ∞ Metric
Author(s) -
Ohad Lipsky,
Ely Porat
Publication year - 2005
Publication title -
lecture notes in computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.249
H-Index - 400
eISSN - 1611-3349
pISSN - 0302-9743
DOI - 10.1007/11575832_37
Subject(s) - substring , combinatorics , bounded function , metric (unit) , matching (statistics) , edit distance , pattern matching , discrete mathematics , mathematics , algorithm , computer science , artificial intelligence , data structure , statistics , mathematical analysis , operations management , economics , programming language
Let a text T=t 0,...,t n − − 1 and a pattern P=p 0,..., p m − − 1, strings of natural numbers, be given. In the Approximate Matching in the L ∞ metric problem the output is, for every text location i, the L ∞ distance between the pattern and the length m substring of the text starting at i, i.e. Max j=0m-1_{j=0}^{m--1}|t i+j_{i+{\it j}}–p j |. We consider the Approximate k –L ∞ distance problem. Given text T and pattern P as before, and a natural number k the output of the problem is the L ∞ distance of the pattern from the text only at locations i in the text where the distance is bounded by k. For the locations where the distance exceeds k the output is φ. We show an algorithm that solves this problem in O(n(k + log(min(m, |Σ|)))logm) time.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom