minghu6
minghu6

Reputation: 111

Why stringlib algorithm of Python was called "BMHBNFS"?

This algorithm contains Boyer-Moor, Horspool, Sunday and Bloom filter.

Why use "BMHBNFS" instead of "BM-H-S-BF" ?

Upvotes: 2

Views: 155

Answers (1)

wim
wim

Reputation: 363304

The Fast Search Algorithm (aka “BMHBNFS” ;-)

Boyer-Moore-Horspool-Bloom-Need-For-Speed.

Fast search algorithms were implemented during the Need For Speed sprint (May 21 to May 28 2006 in Reykjavik, Iceland).

The CPython sources show it as a Boyer-Moore-Horspool algo with a Bloom filter added:

Disclaimer: This is my conjecture. Fredrik (aka effbot) has passed away in 2021 (RIP) but I will ask Guido to confirm the acronym if I see him at PyCon again.

Upvotes: 1

Related Questions