Home
Scholarly Works
AN ADAPTIVE HYBRID PATTERN-MATCHING ALGORITHM ON...
Conference

AN ADAPTIVE HYBRID PATTERN-MATCHING ALGORITHM ON INDETERMINATE STRINGS

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 and its indeterminate successor. 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, ShiftAnd 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.

Authors

SMYTH WF; WANG S

Volume

20

Pagination

pp. 985-1004

Publisher

World Scientific Publishing

Publication Date

December 1, 2009

DOI

10.1142/s0129054109007005

Conference proceedings

International Journal of Foundations of Computer Science

Issue

06

ISSN

0129-0541

Contact the Experts team