This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
Changes | Sun Oct 19 04:20:34 -0700 2008 | |
| |
MANIFEST | Sun Oct 19 04:20:34 -0700 2008 | |
| |
Makefile.PL | Sun Oct 19 04:20:34 -0700 2008 | |
| |
README | Sun Oct 19 04:20:34 -0700 2008 | |
| |
bench.pl | Sun Oct 19 07:06:19 -0700 2008 | |
| |
inc/ | Sun Oct 19 04:20:34 -0700 2008 | |
| |
lib/ | Sun Oct 19 07:06:19 -0700 2008 | |
| |
t/ | Sun Oct 19 06:19:43 -0700 2008 |
README
NAME
Algorithm::MTF - Move-to-front transform encoder/decoder
SYNOPSIS
use Algorithm::MTF;
my $encoder = Algorithm::MTF::Encoder->new;
my $code = $mtf->encode("aaabac"); ## $code is [ 97, 0, 0, 98, 1, 99 ]
my $decoder = Algorithm::MTF::Decoder->new;
say $mtf->decode([ 97, 0, 0, 98, 1, 99 ]); # "aaabac"
DESCRIPTION
The move-to-front (or MTF) transform is an encoding of data (typically a
stream of bytes) designed to improve the performance of entropy encoding
techniques of compression. When efficiently implemented, it is fast
enough that its benefits usually justify including it as an extra step
in data compression algorithms. (quote from en.wikipedia.org)
SEE ALSO
<http://en.wikipedia.org/wiki/Move-to-front_transform>
AUTHOR
Naoya Ito, <naoya at bloghackers.net<gt>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Naoya Ito
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.8.8 or, at
your option, any later version of Perl 5 you may have available.







