Data Structures Lerax  v3.0-101-gb1f7
Opinionated Data Structures & Algorithms
Loading...
Searching...
No Matches
search.h File Reference

Go to the source code of this file.

Functions

int search_naive (char *text, const char *pattern)
 Finds the first occurrence of a pattern in a text using the naive string searching algorithm.
int search_kmp (char *text, const char *pattern)
 Finds the first occurrence of a pattern in a text using the Knuth-Morris-Pratt (KMP) algorithm.
int search_bm (char *text, const char *pattern)
 Finds the first occurrence of a pattern in a text using the Boyer-Moore string searching algorithm.
int search_kr (char *text, const char *pattern)
 Finds the first occurrence of a pattern in a text using the Karp-Rabin algorithm.