Logo image
An adaptive hybrid pattern-matching algorithm on indeterminate strings
Conference paper   Open access

An adaptive hybrid pattern-matching algorithm on indeterminate strings

W.F. Smyth, S. Wang and M. Yu
Prague Stringology Conference 2008 (Czech Technical University, Prague, 01/09/2008–03/09/2008)
2008
pdf
hybrid_pattern_matching.pdfDownloadView
Open Access
url
Conference WebsiteView

Abstract

We describe a hybrid pattern-matching algorithm that works on both regular and indeterminate strings. This algorithm is inspired by the recently proposed hybrid algorithm FJS [11] and its indeterminate successor [15]. However, as discussed in this paper, because of the special properties of indeterminate strings, it is not straightforward to directly migrate FJS to an indeterminate version. Our new algorithm combines two fast pattern-matching algorithms, Shift-And and BMS (the Sunday variant of the Boyer-Moore algorithm), and is highly adaptive to the nature of the text being processed. It avoids using the border array, therefore avoids some of the cases that are awkward for indeterminate strings. Although not always the fastest in individual test cases, our new algorithm is superior in overall performance to its two component algorithms — perhaps a general advantage of hybrid algorithms.

Details

Metrics

121 File views/ downloads
137 Record Views
Logo image