高速な部分文字列一致判定のための探検アルゴリズム
Scout Algorithm For Fast Substring Matching
Scout Algorithm For Fast Substring Matching
@misc{natrajan2020scout,
title = {Scout Algorithm For Fast Substring Matching},
author = {Anand Natrajan and Mallige Anand},
year = {2020},
eprint = {2011.04010},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2011.04010}
}
Natrajan, A., & Anand, M. (2020). Scout Algorithm For Fast Substring Matching [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.04010
NATRAJAN A, ANAND M. Scout Algorithm For Fast Substring Matching[EB/OL]. (2020-11-08)[2026-11-30]. https://arxiv.org/abs/2011.04010.
要旨
文字列の完全一致検索は、多くのソフトウェアアプリケーションで一般的なタスクである。パターン文字列がターゲット文字列に含まれているかどうかを検出するためのアルゴリズムはいくつか存在するが、最も一般的な実装は単純な暴力法である。代替アプローチは、追加の複雑さに対する十分な利点を提供しないか、現代の文字セット(例:Unicode)に対して非現実的である。本稿では、すべてのアプリケーションに適した直感的で高速な新しいアルゴリズム、Scout を提示する。さらに、Scout アルゴリズムの性能特性を他のいくつかのアルゴリズムと比較する。
Exact substring matching is a common task in many software applications. Despite the existence of several algorithms for finding whether or not a pattern string is present in a target string, the most common implementation is a naïve, brute force approach. Alternative approaches either do not provide enough of a benefit for the added complexity, or are impractical for modern character sets, e.g., Unicode. We present a new algorithm, Scout, that is straightforward, quick and appropriate for all applications. We also compare the performance characteristics of the Scout algorithm with several others.