Package: perl-List-BinarySearch (0.25-bp156.2.1)
Binary Search within a sorted array.
A binary search searches *sorted* lists using a divide and conquer technique. On each iteration the search domain is cut in half, until the result is found. The computational complexity of a binary search is O(log n). The binary search algorithm implemented in this module is known as a _Deferred Detection_ variant on the traditional Binary Search. Deferred Detection provides *stable searches*. Stable binary search algorithms have the following characteristics, contrasted with their unstable binary search cousins: * In the case of non-unique keys, a stable binary search will always return the lowest-indexed matching element. An unstable binary search would return the first one found, which may not be the chronological first. * Best and worst case time complexity is always O(log n). Unstable searches may stop once the target is found, but in the worst case are still O(log n). In practical terms, this difference is usually not meaningful. * Stable binary searches only require one relational comparison of a given pair of data elements per iteration, where unstable binary searches require two comparisons per iteration. * The net result is that although an unstable binary search might have better "best case" performance, the fact that a stable binary search gets away with fewer comparisons per iteration gives it better performance in the worst case, and approximately equal performance in the average case. By trading away slightly better "best case" performance, the stable search gains the guarantee that the element found will always be the lowest-indexed element in a range of non-unique keys. This module has a companion "XS" module: the List::BinarySearch::XS manpage which users are strongly encouraged to install as well. If List::BinarySearch::XS is also installed, 'binsearch' and 'binsearch_pos' will use XS code. This behavior may be overridden by setting '$ENV{List_BinarySearch_PP}' to a true value. Most CPAN installers will either automatically install the XS module, or prompt to automatically install it. See CONFIGURATION for details.
Package information
- Homepage
- [https://metacpan.org/release/List-BinarySearch]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-List-BinarySearch]
- Software project
- [perl-List-BinarySearch]
Versions and downloads for perl-List-BinarySearch
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.25-bp156.2.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 33 KiB | 45 KiB | list of files | perl-List-BinarySearch-0.25-bp156.2.1.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-List-BinarySearch
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
dep: perl(List::BinarySearch::XS)
Package not available
rec: perl(List::BinarySearch::XS) (>= 0.06)
Package not available
Package file paths (12)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/List
- /usr/lib/perl5/vendor_perl/5.26.1/List/BinarySearch
- /usr/lib/perl5/vendor_perl/5.26.1/List/BinarySearch.pm
- /usr/lib/perl5/vendor_perl/5.26.1/List/BinarySearch/PP.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-List-BinarySearch
- /usr/share/doc/packages/perl-List-BinarySearch/Changes
- /usr/share/doc/packages/perl-List-BinarySearch/examples
- /usr/share/doc/packages/perl-List-BinarySearch/examples/bsearch.pl
- /usr/share/doc/packages/perl-List-BinarySearch/README
- /usr/share/man/man3/List::BinarySearch.3pm.gz
- /usr/share/man/man3/List::BinarySearch::PP.3pm.gz
Field source: openSUSE Leap 15.6 OSS
