Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-List-BinarySearch-XS | Distribution: openSUSE Tumbleweed |
Version: 0.09 | Vendor: openSUSE |
Release: 1.24 | Build date: Mon Feb 10 00:00:00 2020 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 91760 | Source RPM: perl-List-BinarySearch-XS-0.09-1.24.src.rpm |
Packager: http://bugs.opensuse.org | |
Url: https://metacpan.org/release/List-BinarySearch-XS | |
Summary: Binary Search a sorted array with XS routines. |
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). This module implements several Binary Search algorithms using XS code for optimal performance. You are free to use this module directly, or as a plugin for the more general List::BinarySearch. The binary search algorithm implemented in this module is known as a _Deferred Detection_ 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.
Artistic-1.0 OR GPL-1.0-or-later
* Mon Feb 10 2020 dsterba@suse.cz - Initial import of 0.09
/usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/List /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/List/BinarySearch /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/List/BinarySearch/XS.pm /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/auto/List /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/auto/List/BinarySearch /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/auto/List/BinarySearch/XS /usr/lib/perl5/vendor_perl/5.40.0/aarch64-linux-thread-multi/auto/List/BinarySearch/XS/XS.so /usr/share/doc/packages/perl-List-BinarySearch-XS /usr/share/doc/packages/perl-List-BinarySearch-XS/Changes /usr/share/doc/packages/perl-List-BinarySearch-XS/README /usr/share/man/man3/List::BinarySearch::XS.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Oct 30 02:47:48 2024