C
C
cocicka32015-04-28 11:43:50
Programming
cocicka3, 2015-04-28 11:43:50

How to encode your first and last name using the Huffman method?

You need to encode your first name, last name and patronymic, please help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Semykin, 2015-04-28
@vagrantnotes

1. Determine the number of unique characters in the full name.
2. Based on this, you find out the number of bits required for encoding.
3. You calculate the frequency of occurrence and the weight of each character in the string.
4. Build a Huffman tree, getting a code for each letter.
5. You write down the necessary information using this code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question