Title :
Fast pattern matching for entropy bounded text
Author :
Chen, Shenfeng ; Reif, John H.
Author_Institution :
Dept. of Comput. Sci., Duke Univ., Durham, NC, USA
Abstract :
We present the first known case of one-dimensional and two-dimensional string matching algorithms for text with bounded entropy. Let n be the length of the text and m be the length of the pattern. We show that the expected complexity of the algorithms is related to the entropy of the text for various assumptions of the distribution of the pattern. For the case of uniformly distributed patterns, our one dimensional matching algorithm works in O(nlogm/(pm)) expected running time where H is the entropy of the text and p=1-(1-H 2)H(1+H)/. The worst case running time T can also be bounded by (n log m/p(m+√V))⩽T⩽(n log m/p(m-√V)) if V is the variance of the source from which the pattern is generated. Our algorithm utilizes data structures and probabilistic analysis techniques that are found in certain lossless data compression schemes
Keywords :
computational complexity; data compression; data structures; pattern matching; string matching; data structures; entropy bounded text; expected complexity; fast pattern matching; lossless data compression schemes; one dimensional matching algorithm; probabilistic analysis; string matching algorithms; uniformly distributed patterns; Algorithm design and analysis; Computer science; Contracts; Data compression; Data structures; Entropy; Frequency; Pattern analysis; Pattern matching; Sorting;
Conference_Titel :
Data Compression Conference, 1995. DCC '95. Proceedings
Conference_Location :
Snowbird, UT
Print_ISBN :
0-8186-7012-6
DOI :
10.1109/DCC.1995.515518