Diferente pentru problema/huffman intre reviziile #7 si #8

Nu exista diferente intre titluri.

Diferente intre continut:

* $1 ≤ V{~k~} ≤ 100 000 000.$
* $1 ≤ L ≤ 10^18^.$
* $B{~i~} ≤ 10^18^, 1 ≤ i ≤ N.$
* $Soluţia nu este unică; poate fi afişatp
h2. Exemplu
table(example). |_. huffman.in |_. huffman.out |
| This is some
  text written on
  multiple lines.
| This is another
  text written on
  multiple lines.
| 7
1
2
2
5
5
9
10
| 86
4 2
4 3
3 0
3 6
3 7
2 1
2 2
|
h3. Explicaţie
Caracterelor le-au fost atribuite codurile astfel:
 
table(example). |_. Numar de apariţii |_. Lungime |_. Cod binar |_. Lungime totală |
| 1 | 4 | 0010 | 4 |
| 2 | 4 | 0011 | 8 |
| 2 | 3 | 000 | 6 |
| 5 | 3 | 110 | 15 |
| 5 | 3 | 111 | 15 |
| 9 | 2 | 01 | 18 |
| 10 | 2 | 10 | 20 |
 
Lungimea totală a textului T' este 86.
 
== include(page="template/taskfooter" task_id="huffman") ==

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.