Liste des Groupes | Revenir à cl c |
On 2024-06-07 09:00:57 +0000, Malcolm McLean said:No you do. The text might be very short, like "Mary had a little lamb", and you will compress it because you know that you are being fed meaningful ASCII. For example even this tiny fragment contains the letter "e", which would have a short Huffman code. And four a's and two t's, which are the third and the second most commn letters. So it should compress.
Yes, but Huffman is easy to decode. It's the sort of project you give to people who have just got past the beginner stage but aren't very experienced programmers yet, whilst implementing Lempel-Ziv is a job for someone who knows what he is doing.You don't need a standard table. You need statistics. Once you have the
>
Because the lines will often be very short, adaptive Huffman coding is no good. I need a fixed Huffman table with 128 entries for each 7 bit value plus one for "stop". I wonder if any such standard table exists.
statistics the table is easy to costruct with Huffman's algorithm.
Les messages affichés proviennent d'usenet.