Technology beats algorithms (in exact string matching)

5Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.

Abstract

More than 120 algorithms have been developed for exact string matching within the last 40 years. We show by experiments that the naïve algorithm exploiting SIMD instructions of modern CPUs (with symbols compared in a special order) is the fastest one for patterns of length up to about 50 symbols and extremely good for longer patterns and small alphabets. The algorithm compares 16 or 32 characters in parallel by applying SSE2 or AVX2 instructions, respectively. Moreover, it uses loop peeling to further speed up the searching phase. We tried several orders for comparisons of pattern symbols, and the increasing order of their probabilities in the text was the best.

References Powered by Scopus

A Fast String Searching Algorithm

1821Citations
N/AReaders
Get full text

Practical fast searching in strings

489Citations
N/AReaders
Get full text

A very fast substring search algorithm

321Citations
N/AReaders
Get full text

Cited by Powered by Scopus

A survey on improving pattern matching algorithms for biological sequences

9Citations
N/AReaders
Get full text

Approximate String Matching with SIMD

5Citations
N/AReaders
Get full text

String searching with mismatches using AVX2 and AVX-512 instructions

0Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Tarhio, J., Holub, J., & Giaquinta, E. (2017). Technology beats algorithms (in exact string matching). Software - Practice and Experience, 47(12), 1877–1885. https://doi.org/10.1002/spe.2511

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 3

38%

Professor / Associate Prof. 2

25%

Researcher 2

25%

Lecturer / Post doc 1

13%

Readers' Discipline

Tooltip

Computer Science 5

63%

Physics and Astronomy 1

13%

Engineering 1

13%

Environmental Science 1

13%

Save time finding and organizing research with Mendeley

Sign up for free