Main > Programming > Libraries >

Search::Binary 0.95

Search::Binary 0.95

Sponsored Links

Search::Binary 0.95 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.002 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 935
Date added: 2007-04-05
Publisher: Erik Rantapaa

Search::Binary 0.95 description

Search::Binary is a Perl module for generic binary search.

SYNOPSIS

use Seach::Binary;
$pos = binary_search($min, $max, $val, $read, $handle, [$size]);

binary_search implements a generic binary search algorithm returning the position of the first record whose index value is greater than or equal to $val. The search routine does not define any of the terms position, record or index value, but leaves their interpretation and implementation to the user supplied function &$read(). The only restriction is that positions must be integer scalars.

During the search the read function will be called with three arguments: the input parameters $handle and $val, and a position. If the position is not undef, the read function should read the first whole record starting at or after the position; otherwise, the read function should read the record immediately following the last record it read. The search algorithm will guarantee that the first call to the read function will not be with a position of undef. The read function needs to return a two element array consisting of the result of comparing $val with the index value of the read record and the position of the read record. The comparison value must be positive if $val is strictly greater than the index value of the read record, 0 if equal, and negative if strictly less. Furthermore, the returned position value must be greater than or equal to the position the read function was called with.

The input parameters $min and $max are positions and represents the extent of the search. Only records which begin at positions within this range (inclusive) will be searched. Moreover, $min must be the starting position of a record. If present $size is a difference between positions and determines when the algorithms switches to a sequential search. $val is an index value. The value of $handle is of no consequence to the binary search algorithm; it is merely passed as a convenience to the read function.

Search::Binary 0.95 Screenshot

Advertisements

Search::Binary 0.95 Keywords

Bookmark Search::Binary 0.95

Hyperlink code:
Link for forum:

Search::Binary 0.95 Copyright

WareSeeker periodically updates pricing and software information of Search::Binary 0.95 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Search::Binary 0.95 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
MARC::Charset is a Perl module to convert MARC-8 encoded strings to UTF-8. Free Download
List::Search is a Perl module for fast searching of sorted lists. Free Download
Search::Dict is a Perl module to search for key in dictionary file. Free Download
A flexible Web based search engine for csv format database file Free Download
Search::Tools::Snipper is a Perl module to extract keywords in context. Free Download
DNS::ZoneParse is a Perl module to parse and manipulate DNS Zone Files. Free Download
KaTeker is a backup tool for Linux useful for small companies and private people. Free Download
Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes. Free Download