My mission is to basically compress a file, compress data (just alphabet letters without even space) in assembly. What I've done so far: *Received all the data from the txt file *Put it in an array in the following order: the letter with the most frequency is first, and so on. *Put the frequency of each letter in the same order as before. For example: a b c 25 3 1 I wrote all of it in emu8086 EXE template. I can link the code if anyone's interested but I don't think that's relevent.
Now I have to compress it somehow. I thought of using the technique Jose advised here: Steps to compress a file using Huffman Code but if I take a quick look I can understand pretty quickly that it does not compress the file, but in-fact does the opposite.
Creating a huffman tree may very well be 'out of my league' when we're speaking about skills in programming and specifically in the Assembly Language. Any ideas to compress data in a more efficient way than ASCII (8*number of letters, lets say for abcdefghijklmnoqrstuvwxyz = 208bits).
Thank you so much!! :)