The Efficiency of Discrete Convolution Method on Solving Exact String Matching Problem
نویسندگان
چکیده
In this paper, we first derived an equation which can approach the probability of appearing of a pattern string in a text string. From this equation, we see that the probability that a pattern string appears in a text string reduces to 0 quickly as the length of the pattern string increases. Because of this observation, we introduce an algorithm based on the discrete convolution method with an early termination. The algorithm stops as soon as it discovers that a prefix of the pattern string does not appear in the text string. In this paper, we show that the discrete convolution method with an early termination is quite efficient to solve exact string matching problem.
منابع مشابه
Application of Convolution of Daubechies Wavelet in Solving 3D Microscale DPL Problem
In this work, the triple convolution of Daubechies wavelet is used to solve the three dimensional (3D) microscale Dual Phase Lag (DPL) problem. Also, numerical solution of 3D time-dependent initial-boundary value problems of a microscopic heat equation is presented. To generate a 3D wavelet we used the triple convolution of a one dimensional wavelet. Using convolution we get a scaling function ...
متن کاملA Discrete Singular Convolution Method for the Seepage Analysis in Porous Media with Irregular Geometry
A novel discrete singular convolution (DSC) formulation is presented for the seepage analysis in irregular geometric porous media. The DSC is a new promising numerical approach which has been recently applied to solve several engineering problems. For a medium with regular geometry, realizing of the DSC for the seepage analysis is straight forward. But DSC implementation for a medium with ir...
متن کاملImplementation of exact-pattern matching algorithms using OpenCL and comparison with basic version
In big text-processing tasks, the exact patternmatching problem still remains time consuming. As algorithms asymptotically faster than existing ones cannot be developed, there is a need to use another approach to promote efficiency. Thus, parallel computing is able to significantly speed up the process of the exact pattern-matching problem solving. That is why the current work is focused on par...
متن کاملAverage-optimal string matching
The exact string matching problem is to find the occurrences of a pattern of length m from a text of length n symbols. We develop a novel and unorthodox filtering technique for this problem. Our method is based on transforming the problem into multiple matching of carefully chosen pattern subsequences. While this is seemingly more difficult than the original problem, we show that the idea leads...
متن کاملThe Relation between Discrete Convolution/Correlation and String Matching, and Exploring the Possibility of a Deterministic Linear-Time Algorithm for Discrete Convolution/Correlation
This paper explores the relation between discrete convolution/correlation and string matching for different specific classes of input signals. We examine the time complexity of computation for both convolution/correlation and string matching, and explore the possibility of a deterministic algorithm for discrete convolution/correlation.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012