Approximated Pattern Matching with the L1, L2 and L∞ Metrics

被引:0
作者
Lipsky, Ohad [1 ]
Porat, Ely [1 ]
机构
[1] Bar Ilan Univ, IL-52100 Ramat Gan, Israel
来源
STRING PROCESSING AND INFORMATION RETRIEVAL, PROCEEDINGS | 2008年 / 5280卷
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Given an alphabet Sigma = {1, 2,..., vertical bar Sigma vertical bar} text string T is an element of Sigma(n) and a pattern string P is an element of Sigma(m), for each i = 1, 2,..., n-m + 1 define L-d(i) as the d-norm distance when the pattern is aligned below the text and starts at position i of the text. The problem of pattern snatching with L-p distance is to compute L-p(i) for every i = 1, 2,..., n - m + 1. We discuss the problem for d = 1, infinity. First; in the case of L-1 matching (pattern snatching with an L-1 distance) we present an algorithm that approximates the L, snatching up to a factor of 1 + epsilon, which has an O(1/epsilon(2) n log mlog vertical bar Sigma vertical bar) run time. Second, we provide all algorithm that approximates the L. snatching up to a factor of 1 + epsilon with a run time of O(1/epsilon n log mlog vertical bar Sigma vertical bar). We also generalize the problem of String Matching with mismatches to have weighted mismatches and present an O(n log(4) m) algorithm that approximates the results of this problem lip to a factor of O(log m) in the case that the weight function is a metric.
引用
收藏
页码:212 / 223
页数:12
相关论文
共 20 条
[1]   GENERALIZED STRING MATCHING [J].
ABRAHAMSON, K .
SIAM JOURNAL ON COMPUTING, 1987, 16 (06) :1039-1051
[2]   EFFICIENT 2-DIMENSIONAL APPROXIMATE MATCHING OF HALF-RECTANGULAR FIGURES [J].
AMIR, A ;
FARACH, M .
INFORMATION AND COMPUTATION, 1995, 118 (01) :1-11
[3]  
Amir A, 2005, LECT NOTES COMPUT SC, V3537, P91
[4]   ALPHABET DEPENDENCE IN PARAMETERIZED MATCHING [J].
AMIR, A ;
FARACH, M ;
MUTHUKRISHNAN, S .
INFORMATION PROCESSING LETTERS, 1994, 49 (03) :111-115
[5]  
[Anonymous], P ACM SIG MOD INT C
[6]  
Cole R., 2002, P 34 ANN ACM S THEOR, P592
[7]  
CORMEN TH, 1992, INTRO ALGORITHMS
[8]  
Fischer Michael J., 1974, SIAM AMS P, V7, P113
[9]  
Indyk P, 2004, LECT NOTES COMPUT SC, V3142, P782
[10]   Stable distributions, pseudorandom generators, embeddings and data stream computation [J].
Indyk, P .
41ST ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 2000, :189-197