Software        
 
     Search Software    

Boyer 1.5 - Fast Boyer-Moore String search.

Fast Boyer-Moore String search.

Boyer



 

Boyer: Fast string search (indexOf) using the Boyer-Moore

algorithm. Incorporate this class into your own Java

programs to rapidly search strings.



use:

import com.mindprod.Boyer.Boyer;

...

Boyer b = new Boyer("dogcatwombat");

int where = b.indexOf("cat");

or

int where = Boyer.indexOf("dogcatwombat","cat");



Boyer-Moore is about twice as fast as String.indexOf when

the string you are searching in is 2K or over and the

pattern you are searching for is 4 characters or longer.



String.indexOf is particularly slow when the pattern begins

with a common letter such as "e". Boyer-Moore is fastest

when the pattern is long and composed only of uncommon

letters, e.g. "z" or "^". If you use a char[] instead of

String for your text to be searched, it will run an

additional 33% faster.



Boyer automatically reverts to String.indexOf when that

would be faster.



What is new in version 1.5:

add icon and pad file




 

Order:

For Free

Download: Download Boyer 1.5 (0.5 Mb)
Download Count:9
Release Date:1969-12-31
Last Updated:1969-12-31
Manufacturer: Canadian Mind Products
Product Support: Boyer WebSite
  
Language:English
Requirements:Java 1.1+
Install:No Install Support
Tags:

fast string search 2 3      search 2 3 4 5 6 7 8 9 10      string handling  java 2 3 4 5 6 7 8 9 10      string search 2 3      indexof  boyer moore 


 

Soft411: Software Download Archive and Directory

© 2003-2009 Soft411.com Directory.

Soft411.com periodically updates pricing and product information from third-party sources,
so some information may be slightly out-of-date. You should confirm all information before relying on it.