Fixed swapping issues, transfer list array into node array, and building codes works
Swapping issues
i had an issue where i was putting the new node in first in the link list so i fix it, drawing it on a sketch really helped.
Transfer list to node
So i transfer it into an array since its easier to use it and i coudn’t built it before since an array is a fixed size, thats why I used a linked list to first get the values and the length.
Building huffman codes
I just imported function i already programmed in compressor.c.
image from wikipedia
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.