Everything About ___
Live briefing

Everything about Two-way string-matching algorithm

String-searching algorithm

In computer science, the two-way string-matching algorithm (or Crochemore-Perrin string-matching algorithm) is a string-searching algorithm, discovered by Maxime Crochemore and Dominique Perrin in 1991. It searches for copies of a "needle" of length m in a "haystack" of length n. After preprocessing the needle in time O(m), the actual search takes time O(n) linear in the length of the haystack. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Two-way string-matching algorithmA 5-minute orientation
  2. Pick up a classic book: Introduction to Computing Using PythonThe most-reprinted book on the subject
  3. Go sideways: String-searching algorithmA closely related topic
  4. Go sideways: Boyer–Moore–Horspool algorithmA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Critical factorization
  2. The algorithm

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics