perl-Tree-Trie-1.800.0-1-rosa.lts2012.0.noarch.rpm


Advertisement

Description

perl-Tree-Trie - A data structure optimized for prefix lookup

Distribution: ROSA Enterprise Desktop
Repository: ROSA Contrib Updates x86_64
Package name: perl-Tree-Trie
Package version: 1.800.0
Package release: 1-rosa.lts2012.0
Package architecture: noarch
Package type: rpm
Installed size: 47.32 KB
Download size: 26.01 KB
Official Mirror: mirror.rosalab.ru
This module implements a trie data structure. The term "trie" comes from the word retrieval, but is generally pronounced like "try". A trie is a tree structure (or directed acyclic graph), the nodes of which represent letters in a word. For example, the final lookup for the word 'bob' would look something like "$ref->{'b'}{'o'}{'b'}{HASH(0x80c6bbc)}" (the HASH being an end marker). Only nodes which would represent words in the trie exist, making the structure slightly smaller than a hash of the same data set. The advantages of the trie over other data storage methods is that lookup times are O(1) WRT the size of the index. For sparse data sets, it is probably not as efficient as performing a binary search on a sorted list, and for small files, it has a lot of overhead. The main advantage (at least from my perspective) is that it provides a relatively cheap method for finding a list of words in a large, dense data set which begin with a certain string. As of version 0.3 of this module, the term "word" in this documentation can refer to one of two things: either a refeence to an array of strings, or a scalar which is not an array ref. In the case of the former, each element of the array is treated as a "letter" of the "word". In the case of the latter, the scalar is evaluated in string context and it is split into its component letters. Return values of methods match the values of what is passed in -- that is, if you call lookup() with an array reference, the return value will be an array reference (if appropriate).

Alternatives

Provides

  • perl(Tree::Trie) == 1.800.0
  • perl-Tree-Trie == 1.800.0-1:2012.0

    Install Howto

    1. Enable ROSA Contrib Updates repository on Install and Remove Software"
    2. Update packages list:
      # urpmi.update -a
    3. Install perl-Tree-Trie rpm package:
      # urpmi perl-Tree-Trie

    Files

    • /usr/lib/perl5/vendor_perl/5.12.3/Tree/Trie.pm
    • /usr/share/doc/perl-Tree-Trie/Changes
    • /usr/share/doc/perl-Tree-Trie/README
    • /usr/share/man/man3/Tree::Trie.3pm.xz

    Changelog

    2011-05-09 - Guillaume Rousse <guillomovitch@mandriva.org> 1.800.0-1mdv2011.0 + Revision: 672881 - update to new version 1.8

    2010-11-06 - Guillaume Rousse <guillomovitch@mandriva.org> 1.700.0-1mdv2011.0 + Revision: 594310 - update to new version 1.7

    2010-07-13 - J?r?me Quelin <jquelin@mandriva.org> 1.600.0-1mdv2011.0 + Revision: 552692 - update to 1.6

    2009-09-10 - J?r?me Quelin <jquelin@mandriva.org> 1.500.0-1mdv2010.0 + Revision: 437260 - rebuild using %%perl_convert_version + Thierry Vignaud <tv@mandriva.org> - rebuild - rebuild - kill re-definition of %%buildroot on Pixel's request + Oden Eriksson <oeriksson@mandriva.com> - nuke borked tests + Olivier Blin <oblin@mandriva.com> - restore BuildRoot

    Advertisement
    Advertisement