String-searching algorithm
A string-searching algorithm, sometimes called string-matching algorithm, is an algorithm that searches a body of text for portions that match by pattern. A basic example of string searching is when the pattern and the searched text are arrays of elements of an alphabet (finite set) Σ. Σ may be a human language alphabet, for example, the letters A through Z and other applications may use a binary alphabet (Σ = {0,1}) or a DNA alphabet (Σ = {A,C,G,T}) in bioinformatics. In practice, the method of feasible string-search algorithm may be affected by the string encoding. In particular, if a variable-width encoding is in use, then it may be slower to find the Nth character, perhaps requiring time proportional to N. This may significantly slow some search algorithms. One of many possible solutions is to search for the sequence of code units instead, but doing so may produce false matches unless the encoding is specifically designed to avoid it.
A string-searching algorithm, sometimes called string-matching algorithm, is an algorithm that searches a body of text for portions that match by pattern. A basic example of string searching is when the pattern and the searched text are arrays of elements of an alphabet (finite set) Σ. Σ may be a human language alphabet, for example, the letters A through Z and other applications may use a binary alphabet (Σ = {0,1}) or a DNA alphabet (Σ = {A,C,G,T}) in bioinformatics. In practice, the method of feasible string-search algorithm may be affected by the string encoding. In particular, if a variable-width encoding is in use, then it may be slower to find the Nth character, perhaps requiring time proportional to N. This may significantly slow some search algorithms. One of many possible solutions is to search for the sequence of code units instead, but doing so may produce false matches unless the encoding is specifically designed to avoid it. === Naive string search=== A simple and inefficient way to see where one string occurs inside another is to check at each index, one by one. First, we see if there is a copy of the needle starting at the first character of the haystack; if not, we look to see if there's a copy of the needle starting at the second character of the haystack, and so forth. In the normal case, we only have to look at one or two characters for each wrong position to see that it is a wrong position, so in the average case, this takes O(n + m) steps, where n is the length of the haystack and m is the length of the needle; but in the worst case, searching for a string like "aaaab" in a string like "aaaaaaaaab", it takes O(nm) ===Stubs=== Knuth–Morris–Pratt computes a DFA that recognizes inputs with the string to search for as a suffix, Boyer–Moore starts searching from the end of the needle, so it can usually jump ahead a whole needle-length at each step. Baeza–Yates keeps track of whether the previous j characters were a prefix of the search string, and is therefore adaptable to fuzzy string searching. The bitap algorithm is an application of Baeza–Yates' approach. In the following compilation, m is the length of the pattern, n the length of the searchable text, and k = |Σ| is the size of the alphabet. The Boyer–Moore string-search algorithm has been the standard benchmark for the practical string-search literature. ===Real-time string matching=== In real-time string matching, one requires the matcher to output a response after reading each character of the text, that indicates whether this is the last character of a match. The response has to be given within constant time. The requirement regarding preprocessing vary: O(m) preprocessing may be allowed after the pattern is read (but before the reading of the text), or a stricter requirement may be posed according to which the matcher has to also pause for at most a constant time after reading any character of the pattern (including the last). For the more lenient version, if one does not mind that the preprocessing time and memory requirement dependend on the size of the alphabet, a real-time solution is provided by automaton matching. Zvi Galil developed a method to turn certain algorithms into real-time algorithms, and applied it to produce a variant of the KMP matcher that runs in real time under the strict requirement. ==String searching with don't cares== In this version of the string searching problem, there is a special symbol, ø (read: don't care), which can match any other symbol (including another ø). Don't care symbols can appear either in the pattern or in the text. In 2002, an algorithm for this problem that runs in O(n\log m) time has been given by Richard Cole and Ramesh Hariharan, improving on a solution from 1973 by Fischer and Paterson that has complexity O(n\log m\log k) , where k is the size of the alphabet. Another algorithm, claimed simpler, has been proposed by Clifford and Clifford. ==See also== Sequence alignment Graph matching Pattern matching Compressed pattern matching Matching wildcards Approximate string matching Full-text search Two-dimensional pattern matching ==References== ==Further reading== R. S. Boyer and J. S. Moore, A fast string searching algorithm, Carom. ACM 20, (10), 262–272(1977). Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms, Third Edition. MIT Press and McGraw-Hill, 2009. . Chapter 32: String Matching, pp. 985–1013. ==External links== Huge list of pattern matching links Last updated: 12/27/2008 20:18:38 Large (maintained) list of string-matching algorithms NIST list of string-matching algorithms StringSearch – high-performance pattern matching algorithms in Java – Implementations of many String-Matching-Algorithms in Java (BNDM, Boyer-Moore-Horspool, Boyer-Moore-Horspool-Raita, Shift-Or) StringsAndChars – Implementations of many String-Matching-Algorithms (for single and multiple patterns) in Java Exact String Matching Algorithms — Animation in Java, Detailed description and C implementation of many algorithms. (PDF) Improved Single and Multiple Approximate String Matching Kalign2: high-performance multiple alignment of protein and nucleotide sequences allowing external features NyoTengu – high-performance pattern matching algorithm in C – Implementations of Vector and Scalar String-Matching-Algorithms in C Nathaniel K. Brown, et al.: "KeBaB: k-mer based breaking for finding long MEMs", arXiv:2502.20338v3 (09 Jun 2025).
References
- Versatile and open software for comparing large genomes · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Versatile and open software for comparing large genomes." Kurtz, Stefan; Phillippy, Adam; Delcher, Arthur L; Smoot, Michael; Shumway, Martin; Antonescu, Corina; Salzberg, Steven. 2026-11-20. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC395750. Accessed 24 November 2026.
Chicago "Versatile and open software for comparing large genomes." Kurtz, Stefan; Phillippy, Adam; Delcher, Arthur L; Smoot, Michael; Shumway, Martin; Antonescu, Corina; Salzberg, Steven. 2026-11-20. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC395750.
APA Kurtz, Stefan; Phillippy, Adam; Delcher, Arthur L; Smoot, Michael; Shumway, Martin; Antonescu, Corina; Salzberg, Steven. (2026). Versatile and open software for comparing large genomes. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC395750
- Fast Variants of the Backward-Oracle-Marching Algorithm · retrieved 2019-11-21 · rev 1368389768
Cite this reference
MLA "Fast Variants of the Backward-Oracle-Marching Algorithm." Fan, H. 2019-11-21. https://pdfs.semanticscholar.org/8d81/94c293f8a81394ba545d09bd6ec711ad4c17.pdf. Accessed 24 November 2026.
Chicago "Fast Variants of the Backward-Oracle-Marching Algorithm." Fan, H. 2019-11-21. https://pdfs.semanticscholar.org/8d81/94c293f8a81394ba545d09bd6ec711ad4c17.pdf.
APA Fan, H. (2019). Fast Variants of the Backward-Oracle-Marching Algorithm. Retrieved November 24, 2026, from https://pdfs.semanticscholar.org/8d81/94c293f8a81394ba545d09bd6ec711ad4c17.pdf
- Melichar, Borivoj, Jan Holub, and J. Polcar. Text Searching Algorithms. Volume I: Forward String Matching. Vol. 1. 2 vols., 2005. http://stringology.org/athens/TextSearchingAlgorithms/ Archived 2016-03-04 at the Wayback Machine . Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Melichar, Borivoj, Jan Holub, and J. Polcar. Text Searching Algorithms. Volume I: Forward String Matching. Vol. 1. 2 vols., 2005. http://stringology.org/athens/TextSearchingAlgorithms/ Archived 2016-03-04 at the Wayback Machine . Wikipedia revision 1368389768, retrieved 2026-11-21." Melichar, Borivoj, Jan Holub, and J. 2026-11-20. http://stringology.org/athens/TextSearchingAlgorithms/. Accessed 24 November 2026.
Chicago "Melichar, Borivoj, Jan Holub, and J. Polcar. Text Searching Algorithms. Volume I: Forward String Matching. Vol. 1. 2 vols., 2005. http://stringology.org/athens/TextSearchingAlgorithms/ Archived 2016-03-04 at the Wayback Machine . Wikipedia revision 1368389768, retrieved 2026-11-21." Melichar, Borivoj, Jan Holub, and J. 2026-11-20. http://stringology.org/athens/TextSearchingAlgorithms/.
APA Melichar, Borivoj, Jan Holub, and J. (2026). Melichar, Borivoj, Jan Holub, and J. Polcar. Text Searching Algorithms. Volume I: Forward String Matching. Vol. 1. 2 vols., 2005. http://stringology.org/athens/TextSearchingAlgorithms/ Archived 2016-03-04 at the Wayback Machine . Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from http://stringology.org/athens/TextSearchingAlgorithms/
- Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures (PDF) , International Conference on Very Large Data Bases Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures (PDF) , International Conference on Very Large Data Bases Wikipedia revision 1368389768, retrieved 2026-11-21." Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encode. 2026-11-20. https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf. Accessed 24 November 2026.
Chicago "Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures (PDF) , International Conference on Very Large Data Bases Wikipedia revision 1368389768, retrieved 2026-11-21." Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encode. 2026-11-20. https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf.
APA Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encode. (2026). Litwin, Witold; Mokadem, Riad; Rigaux, Philippe; Schwarz, Thomas (2007), Fast nGram-Based String Search Over Data Encoded Using Algebraic Signatures (PDF) , International Conference on Very Large Data Bases Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf
- Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Texts and Biological Sequences , Cambridge University Press, ISBN 978-0-521-03993-2 Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Texts and Biological Sequences , Cambridge University Press, ISBN 978-0-521-03993-2 Wikipedia revision 1368389768, retrieved 2026-11-21." Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Tex. 2026-11-20. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Texts and Biological Sequences , Cambridge University Press, ISBN 978-0-521-03993-2 Wikipedia revision 1368389768, retrieved 2026-11-21." Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Tex. 2026-11-20. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Tex. (2026). Gonzalo Navarro; Mathieu Raffinot (2008), Flexible Pattern Matching Strings: Practical On-Line Search Algorithms for Texts and Biological Sequences , Cambridge University Press, ISBN 978-0-521-03993-2 Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- String matching in real time · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "String matching in real time." Galil, Zvi (1981). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "String matching in real time." Galil, Zvi (1981). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Galil, Zvi (1981). (2026). String matching in real time. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Verifying candidate matches in sparse and wildcard matching · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Verifying candidate matches in sparse and wildcard matching." Cole, Richard; Hariharan, Ramesh (2002). 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Verifying candidate matches in sparse and wildcard matching." Cole, Richard; Hariharan, Ramesh (2002). 2026-11-20. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Cole, Richard; Hariharan, Ramesh (2002). (2026). Verifying candidate matches in sparse and wildcard matching. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- Simple deterministic wildcard matching · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Simple deterministic wildcard matching." Clifford, Peter; Clifford, Raphaël (January 2007). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Simple deterministic wildcard matching." Clifford, Peter; Clifford, Raphaël (January 2007). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Clifford, Peter; Clifford, Raphaël (January 2007). (2026). Simple deterministic wildcard matching. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- A practical algorithm for finding maximal exact matches in large sequence datasets using sparse suffix arrays · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "A practical algorithm for finding maximal exact matches in large sequence datasets using sparse suffix arrays." Khan, Zia; Bloom, Joshua S. 2026-11-20. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2732316. Accessed 24 November 2026.
Chicago "A practical algorithm for finding maximal exact matches in large sequence datasets using sparse suffix arrays." Khan, Zia; Bloom, Joshua S. 2026-11-20. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2732316.
APA Khan, Zia; Bloom, Joshua S. (2026). A practical algorithm for finding maximal exact matches in large sequence datasets using sparse suffix arrays. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2732316
- Asymptotic times are expressed using O, Ω, and Θ notation . Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Asymptotic times are expressed using O, Ω, and Θ notation . Wikipedia revision 1368389768, retrieved 2026-11-21." Asymptotic times are expressed using O, Ω, and Θ notation. 2026-11-20. https://en.wikipedia.org/wiki/Big_O_notation. Accessed 24 November 2026.
Chicago "Asymptotic times are expressed using O, Ω, and Θ notation . Wikipedia revision 1368389768, retrieved 2026-11-21." Asymptotic times are expressed using O, Ω, and Θ notation. 2026-11-20. https://en.wikipedia.org/wiki/Big_O_notation.
APA Asymptotic times are expressed using O, Ω, and Θ notation. (2026). Asymptotic times are expressed using O, Ω, and Θ notation . Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Big_O_notation
- Two-way string-matching · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Two-way string-matching." Crochemore, Maxime; Perrin, Dominique (1 July 1991). 2026-11-20. http://monge.univ-mlv.fr/~mac/Articles-PDF/CP-1991-jacm.pdf. Accessed 24 November 2026.
Chicago "Two-way string-matching." Crochemore, Maxime; Perrin, Dominique (1 July 1991). 2026-11-20. http://monge.univ-mlv.fr/~mac/Articles-PDF/CP-1991-jacm.pdf.
APA Crochemore, Maxime; Perrin, Dominique (1 July 1991). (2026). Two-way string-matching. Retrieved November 24, 2026, from http://monge.univ-mlv.fr/~mac/Articles-PDF/CP-1991-jacm.pdf
- glibc/string/str-two-way.h · retrieved 2022-03-21 · rev 1368389768
Cite this reference
MLA "glibc/string/str-two-way.h." "glibc/string/str-two-way. 2022-03-21. https://code.woboq.org/userspace/glibc/string/str-two-way.h.html. Accessed 24 November 2026.
Chicago "glibc/string/str-two-way.h." "glibc/string/str-two-way. 2022-03-21. https://code.woboq.org/userspace/glibc/string/str-two-way.h.html.
APA "glibc/string/str-two-way. (2022). glibc/string/str-two-way.h. Retrieved November 24, 2026, from https://code.woboq.org/userspace/glibc/string/str-two-way.h.html
- musl/src/string/memmem.c · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "musl/src/string/memmem.c." "musl/src/string/memmem. 2026-11-20. http://git.musl-libc.org/cgit/musl/tree/src/string/memmem.c. Accessed 24 November 2026.
Chicago "musl/src/string/memmem.c." "musl/src/string/memmem. 2026-11-20. http://git.musl-libc.org/cgit/musl/tree/src/string/memmem.c.
APA "musl/src/string/memmem. (2026). musl/src/string/memmem.c. Retrieved November 24, 2026, from http://git.musl-libc.org/cgit/musl/tree/src/string/memmem.c
- Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries . Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries . Wikipedia revision 1368389768, retrieved 2026-11-21." Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries. 2026-11-20. https://en.wikipedia.org/wiki/C_string_handling#Functions. Accessed 24 November 2026.
Chicago "Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries . Wikipedia revision 1368389768, retrieved 2026-11-21." Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries. 2026-11-20. https://en.wikipedia.org/wiki/C_string_handling#Functions.
APA Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries. (2026). Used to implement the memmem and strstr search functions in the glibc [ 4 ] and musl [ 5 ] C standard libraries . Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/C_string_handling#Functions
- A bit-parallel approach to suffix automata: Fast extended string matching · retrieved 2019-11-21 · rev 1368389768
Cite this reference
MLA "A bit-parallel approach to suffix automata: Fast extended string matching." Navarro, Gonzalo; Raffinot, Mathieu (1998). 2019-11-21. https://users.dcc.uchile.cl/~gnavarro/ps/cpm98.pdf. Accessed 24 November 2026.
Chicago "A bit-parallel approach to suffix automata: Fast extended string matching." Navarro, Gonzalo; Raffinot, Mathieu (1998). 2019-11-21. https://users.dcc.uchile.cl/~gnavarro/ps/cpm98.pdf.
APA Navarro, Gonzalo; Raffinot, Mathieu (1998). (2019). A bit-parallel approach to suffix automata: Fast extended string matching. Retrieved November 24, 2026, from https://users.dcc.uchile.cl/~gnavarro/ps/cpm98.pdf
- Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular languages . [ citation needed ] Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular languages . [ citation needed ] Wikipedia revision 1368389768, retrieved 2026-11-21." Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular. 2026-11-20. https://en.wikipedia.org/wiki/Approximate_string_matching. Accessed 24 November 2026.
Chicago "Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular languages . [ citation needed ] Wikipedia revision 1368389768, retrieved 2026-11-21." Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular. 2026-11-20. https://en.wikipedia.org/wiki/Approximate_string_matching.
APA Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular. (2026). Can be extended to handle approximate string matching and (potentially-infinite) sets of patterns represented as regular languages . [ citation needed ] Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Approximate_string_matching
- Fast String Searching · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Fast String Searching." Hume; Sunday (1991). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Fast String Searching." Hume; Sunday (1991). 2026-11-20. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Hume; Sunday (1991). (2026). Fast String Searching. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Commentz-Walter, Beate (1979). A String Matching Algorithm Fast on the Average (PDF) . International Colloquium on Automata, Languages and Programming . LNCS . Vol. 71. Graz, Austria: Springer. pp. 118– 132. doi : 10.1007/3-540-09510-1_10 . ISBN 3-540-09510-1 . Archived from the original (PDF) on 2017-10-10. Wikipedia revision 1368389768, retrieved 2026-11-21 · retrieved 2026-11-20 · rev 1368389768
Cite this reference
MLA "Commentz-Walter, Beate (1979). A String Matching Algorithm Fast on the Average (PDF) . International Colloquium on Automata, Languages and Programming . LNCS . Vol. 71. Graz, Austria: Springer. pp. 118– 132. doi : 10.1007/3-540-09510-1_10 . ISBN 3-540-09510-1 . Archived from the original (PDF) on 2017-10-10. Wikipedia revision 1368389768, retrieved 2026-11-21." Commentz-Walter, Beate (1979). 2026-11-20. https://web.archive.org/web/20171010223532/http://www.hs-albsig.de/studium/wirtschaftsinformatik/Documents/commentzwalterextab.pdf. Accessed 24 November 2026.
Chicago "Commentz-Walter, Beate (1979). A String Matching Algorithm Fast on the Average (PDF) . International Colloquium on Automata, Languages and Programming . LNCS . Vol. 71. Graz, Austria: Springer. pp. 118– 132. doi : 10.1007/3-540-09510-1_10 . ISBN 3-540-09510-1 . Archived from the original (PDF) on 2017-10-10. Wikipedia revision 1368389768, retrieved 2026-11-21." Commentz-Walter, Beate (1979). 2026-11-20. https://web.archive.org/web/20171010223532/http://www.hs-albsig.de/studium/wirtschaftsinformatik/Documents/commentzwalterextab.pdf.
APA Commentz-Walter, Beate (1979). (2026). Commentz-Walter, Beate (1979). A String Matching Algorithm Fast on the Average (PDF) . International Colloquium on Automata, Languages and Programming . LNCS . Vol. 71. Graz, Austria: Springer. pp. 118– 132. doi : 10.1007/3-540-09510-1_10 . ISBN 3-540-09510-1 . Archived from the original (PDF) on 2017-10-10. Wikipedia revision 1368389768, retrieved 2026-11-21. Retrieved November 24, 2026, from https://web.archive.org/web/20171010223532/http://www.hs-albsig.de/studium/wirtschaftsinformatik/Documents/commentzwalterextab.pdf
- Crochemore, Maxime. Two-way string-matching . 1 July 1991. · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "Crochemore, Maxime. Two-way string-matching . 1 July 1991." Crochemore, Maxime. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Crochemore, Maxime. Two-way string-matching . 1 July 1991." Crochemore, Maxime. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Crochemore, Maxime. (2026). Crochemore, Maxime. Two-way string-matching . 1 July 1991. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- glibc/string/str-two-way.h . retrieved 2022-03-22 · retrieved 2022-03-21 · rev 1368389768
Cite this reference
MLA "glibc/string/str-two-way.h . retrieved 2022-03-22." glibc/string/str-two-way. 2022-03-21. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "glibc/string/str-two-way.h . retrieved 2022-03-22." glibc/string/str-two-way. 2022-03-21. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA glibc/string/str-two-way. (2022). glibc/string/str-two-way.h . retrieved 2022-03-22. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- musl/src/string/memmem.c . retrieved 23 November 2019 · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "musl/src/string/memmem.c . retrieved 23 November 2019." musl/src/string/memmem. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "musl/src/string/memmem.c . retrieved 23 November 2019." musl/src/string/memmem. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA musl/src/string/memmem. (2026). musl/src/string/memmem.c . retrieved 23 November 2019. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- Navarro, Gonzalo. Combinatorial Pattern Matching . · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "Navarro, Gonzalo. Combinatorial Pattern Matching ." Navarro, Gonzalo. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Navarro, Gonzalo. Combinatorial Pattern Matching ." Navarro, Gonzalo. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Navarro, Gonzalo. (2026). Navarro, Gonzalo. Combinatorial Pattern Matching . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- Fan, H. 2009 Fourth International Conference on Internet Computing for Science and Engineering . · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "Fan, H. 2009 Fourth International Conference on Internet Computing for Science and Engineering ." Fan, H. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Fan, H. 2009 Fourth International Conference on Internet Computing for Science and Engineering ." Fan, H. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Fan, H. (2026). Fan, H. 2009 Fourth International Conference on Internet Computing for Science and Engineering . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturally, the patterns can not be enumerated finitely in this case. They are represen . · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturally, the patterns can not be enumerated finitely in this case. They are represen ." Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturall. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturally, the patterns can not be enumerated finitely in this case. They are represen ." Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturall. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturall. (2026). Θ(m) |- ! Set-BOM | Backward Oracle Matching | | | |} ==== Algorithms using an infinite number of patterns ==== Naturally, the patterns can not be enumerated finitely in this case. They are represen . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=Thomas |url=https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf |ti . · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=Thomas |url=https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf |ti ." citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=Thomas |url=https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf |ti ." citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=. (2026). citation |last1=Litwin |first1=Witold |last2=Mokadem |first2=Riad |last3=Rigaux |first3=Philippe |last4=Schwarz |first4=Thomas |url=https://www.vldb.org/conf/2007/papers/research/p207-litwin.pdf |ti . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
- Commentz-Walter, Beate. A String Matching Algorithm Fast on the Average . · retrieved 2026-08-07 · rev 1368389768
Cite this reference
MLA "Commentz-Walter, Beate. A String Matching Algorithm Fast on the Average ." Commentz-Walter, Beate. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768. Accessed 24 November 2026.
Chicago "Commentz-Walter, Beate. A String Matching Algorithm Fast on the Average ." Commentz-Walter, Beate. 2026-08-07. https://en.wikipedia.org/w/index.php?oldid=1368389768.
APA Commentz-Walter, Beate. (2026). Commentz-Walter, Beate. A String Matching Algorithm Fast on the Average . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1368389768
Cite this article
MLA
"String-searching algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/string-searching-algorithm. Accessed 24 November 2026.
Chicago
"String-searching algorithm." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/string-searching-algorithm.
APA
encyclopegia.org. (2026). String-searching algorithm. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/string-searching-algorithm
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON