Skip to main content
Have a personal or library account? Click to login
Average time complexity analysis of Commentz-Walter algorithm Cover

Average time complexity analysis of Commentz-Walter algorithm

Open Access
|Dec 2018

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.

Language: English
Page range: 547 - 557
Published on: Dec 31, 2018
Published by: National Science Foundation of Sri Lanka
In partnership with: Paradigm Publishing Services

© 2018 SD Dewasurendra, SM Vidanagamachchi, published by National Science Foundation of Sri Lanka
This work is licensed under the Creative Commons License.