Sir, I have a question about huffman algorithm we read a file and convert it to a string then we build the huffman tree and codes,then change the string to encoded string like: input string : 12345 1 code:00 2 code:111 3 code:10 4 code:110 5 code:01 encoded string : 001111011001 and we write this string to a file so how this algorithm decrease the size of file ? i did this and my file was 4 KB after using this algorithm it change to 17 KB whats wrong what should i do? please help me sir...
Пікірлер: 3