Huffman Code

So this is another little assignment that we had just before final exams. It’s about Huffman code and its application in file compression. We were supposed to write a program to read a file, determine total bits for that file, then use Huffman code to compress it and calculate the total bits after the compression. TheĀ file should only contain alphanumeric characters [A-Za-z0-9], and maybe spaces, new lines and dots and commas.

24 Jun

Animal guessing game

Little assignment I had a while ago, about binary tree. The prof let us choose our own language so I thought of C++, just because I studied it 4,5 years back and didn’t freakin remember anything about it.

The problem: Animal guessing game
What I did, the source: in C++

Thought of using classes but was short of time heh!

I had an awesome time

MSC Malaysia Open Source Conference is over. Some of my favorite pics:

Ubuntu.my sparked lots of interest in front of their kiosk!

Ubuntu.my sparked lots of interest in front of their kiosk!


Read more!