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 (
commit 58adee360d9814d2071a259ddc9814b6872eefe9
tree 7e23a75640ca1bde601389ccaece8c0bacbae073
parent a55dcf05aa0e98257a9ccc76db5c902e62ca76cc
tree 7e23a75640ca1bde601389ccaece8c0bacbae073
parent a55dcf05aa0e98257a9ccc76db5c902e62ca76cc
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.








