Abstract
The Commentz-Walter algorithm provides a suffix-based, exact multiple string matching procedure that combines the ideas of both Aho-Corasick and Boyer-Moore string matching algorithms. Aho-Corasick algorithm is known as the fastest exact multiple string matching algorithm with linear worst case time complexity, and Boyer-Moore algorithm utilises a shift based approach in handling mismatches in the matching phase to obtain a usually sub linear time complexity. Due to the complexity of the Commentz-Walter algorithm, a systematic and a comprehensive time complexity analysis has not yet been reported in the literature. In this article, a comprehensive average time complexity analysis of Commentz Walter algorithm is presented and it is used to formally explain empirical results reported elsewhere for exact and limited tolerance string matching. Performance analysis model permits ‘complete’ exploration of the solution space of Commentz-Walter with respect to all relevant parameters. The models developed here could be useful for other researchers to investigate the appropriateness of Commentz-Walter to specific application domains. The analysis method can be extended to cover Aho-Corasick and other string matching algorithms without much difficulty.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
More From: Journal of the National Science Foundation of Sri Lanka
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.