User login

Who's online

There are currently 0 users and 5 guests online.

Boyer-Moore Search

Submitted by Adam King on 12 November, 2006 - 14:19.

Fast String Search Algorithm

This section, including the code, was contributed by Patrick KO Shu-pui.

Download now: BOYER04.ZIP (41.1 k)

Fast String Search Algorithm (Boyer) for Windows/C Programmers version 0.3 (Supports Windows 3.x)

NOTE: The use of this package requires authorisation from the author.

Download now: BOYER04.ZIP (41.1 k)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Alf L (not verified) | 5 September, 2008 - 07:23

The two "find backwards" functions in this library are flawed.

The library assumes that the skip[] array for searching backwards is the same as for searching forwards.

The test program only works, because it too, has a flaw: it finds a match at the end of the buffer, because that's where the test string is, without using the skip array at all.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.