Re: Problem on Vitter algorithm
- From: biject <davvid_a_scott@xxxxxxxxx>
- Date: 27 Apr 2007 18:23:24 -0700
On Apr 25, 1:52 pm, "LiloLilo" <danilo.brambi...@xxxxxxxx> wrote:
Hi all,
I have some problems understanding Vitter algorithm. Please consider this
example:
http://en.wikipedia.org/wiki/Adaptive_Huffman_coding
suppose the new caracter after "abb" would be "a". So I have to do the
update procedure:
1. Go to node 253
2. Now I have to consider if this node does not have the highest number in a
block and if no swap it with which has the highest number.
But, this block contains nodes 253 and 254, but 254 does not contain a
caracter. So how can I swap them? It is correct If I suppose that a block
must contains only nodes with a caracter and caracters are only on leaves
nodes? So in this case the block would contain only node 253, so I don't
need to swap but only increase the counter and go on with the parent?
Thank you all!
I think you would have a better understanding if you go to
http://www.ics.uci.edu/~dan/pubs/DC-Sec4.html#Sec_4.2
The Vitter adaptive huffman is a good one to learn with I
have a bijective version on my site check it out.
David A. Scott
--
My Crypto code
http://bijective.dogma.net/crypto/scott19u.zip
http://www.jim.com/jamesd/Kong/scott19u.zip old version
My Compression code http://bijective.dogma.net/
**TO EMAIL ME drop the roman "five" **
Disclaimer:I am in no way responsible for any of the statements
made in the above text. For all I know I might be drugged.
As a famous person once said "any cryptograhic
system is only as strong as its weakest link"
.
- Follow-Ups:
- Re: Problem on Vitter algorithm
- From: danilobrambilla
- Re: Problem on Vitter algorithm
- References:
- Problem on Vitter algorithm
- From: LiloLilo
- Problem on Vitter algorithm
- Prev by Date: Re: Quick Huffman theory question
- Next by Date: Re: Compression test on permutations
- Previous by thread: Problem on Vitter algorithm
- Next by thread: Re: Problem on Vitter algorithm
- Index(es):
Relevant Pages
|
|