Boyer-Moore Variants for Indeterminate String Matching and Experimental Evaluation
Abstract
We study exact pattern matching on indeterminate strings, where a text or pattern position may represent a set of symbols rather than a single letter. Focusing on Boyer-Moore-style methods, we present new bad-character rules (BC Rules I-IV) and a new good-suffix procedure, computed by FastGSRIndetShift, which avoids the per alignment recomputation used in BMIndet [12] by shifting with a single preprocessed position-indexed table. We conduct a systematic experimental evaluation of sixteen algorithms, including classical bad-character adaptations (e.g., Horspool, Sunday, and Zhu-Takaoka) and hybrids that combine these bad-character rules with FastGSRIndetShift. Across synthetic scaling experiments and a case study on the E. coli K-12 MG1655 genome, the FastBMIndet hybrids consistently outperform BMIndet and KMPIndet [12], in some settings by up to two orders of magnitude. We also find that Zhu-Takaoka is the strongest bad-character-only adaptation on small alphabets and genomic data, while the FastBMIndet variant using BC Rule I offers comparable performance, making it attractive for larger alphabets. We conclude with practical guidance on choosing among these variants for indeterminate string applications.
Create a lesson
Metadata
- Comments
- 17 pages, 3 Figures, 1 Table
Related papers
An Experimental Evaluation of Maximum Weighted Matching Algorithms: Edmonds, Gabow, and Scaling on General Graphs
Shared title terminologycs.DSAbdulaziz Alfaraj, Ahmed Al-Herz
Cut-Paste Metrics: A More Natural Approach to Approximate String Matching
Shared title terminologycs.DSPaul Burchard
A Simple PTAS for Square-Free 2-Matching
Shared title terminologycs.DSTakashi Noguchi, Tatsuya Terao
Optimal Deterministic Matching of Reusable Resources
Shared title terminologycs.DSPratik Chowdhury
Constant Competitive Ratios for Stochastic Online Metric Matching
Shared title terminologycs.DSChenglin Fan, Mingyu Kang
Achieving 1-1/e in Online Matching with Unit-Capacity Reusable Resources
Shared title terminologycs.DSYilin Cheng