Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Algorithm::SkipList 2.00_02

    Download button

    No screenshots available
    Downloads: 426  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robert Rothenberg | More programs
    Perl Artistic License / FREE
    May 17th, 2007, 20:05 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Algorithm::SkipList description

    A Perl implementation of skip lists.

    Algorithm::SkipList is a Perl implementation of skip lists.

    SYNOPSIS

    my $list = new Algorithm::SkipList();

    $list->insert( 'key1', 'value' );
    $list->insert( 'key2', 'another value' );

    $value = $list->find('key2');

    $list->delete('key1');


    This is an implementation of skip lists in Perl.

    Skip lists are similar to linked lists, except that they have random links at various levels that allow searches to skip over sections of the list, like so:

    4 +---------------------------> +----------------------> +
    | | |
    3 +------------> +------------> +-------> +-------> +--> +
    | | | | | |
    2 +-------> +--> +-------> +--> +--> +--> +-------> +--> +
    | | | | | | | | |
    1 +--> +--> +--> +--> +--> +--> +--> +--> +--> +--> +--> +
    A B C D E F G H I J NIL

    A search would start at the top level: if the link to the right exceeds the target key, then it descends a level.

    Skip lists generally perform as well as balanced trees for searching but do not have the overhead with respect to inserting new items. See the included file Benchmark.txt for a comparison of performance with other Perl modules.


    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · Rewrote Algorithm::SkipList::Node. Now based on the Tree::Node package, which is written in C for significant improvement in memory usage, and a slight improvement in speed
    · Cleaner code in various methods
    · Option to set minimum level

      


    TAGS:

    skip lists | Perl implementation | Perl module | module | skip | lists

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM