Home » Web Developer » Java & JavaScript » Boyer 1.5
( Free Trial |526.53 KB ) Boyer 1.5 Publisher's description
Threat Level: Safe - Full Virus Report
Boyer 1.5
Fast string search (indexOf) using the Boyer-Moore algorithm.
- Developer:
- Canadian Mind Products
- License:
- Freeware
- OS:
- Windows 2000 / XP / Vista / 7 / Unix / Linux / Mac OS X / Mac OS Other
- Requirements:
- Java 1.6+
- Date added:
- 6/16/2007
- Last Update:
- 2/6/2013
- Average Rating:
- Not yet rated.
- Your Rating:
( Free Trial |526.53 KB ) Boyer 1.5 Publisher's description 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.
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.
Related downloads for Boyer
New release of Java & JavaScript
More products from Canadian Mind Products
Categories
- » Web Developer
- » MP3 & Audio
- » Multimedia & Design
- » Desktop Enhancement
- » Games
- » Home & Education
- » Business & Finance
- » Internet
- » Utility
- » Software Development