1
$\begingroup$

I know there are many algorithms for finding a pattern in a text like Boyer Moore, KMP, RabinKarp and so on.

I want to know what is the one that is mostly prefered by text editors and IDEs, as I find them efficient.

$\endgroup$
2
$\begingroup$

Since Emacs is the superior editor, you can take a look in the source code yourself: search.c

Emacs uses the Boyer–Moore string-search algorithm, so that's probably what you should prefer too.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.