Wednesday, June 24, 2009

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.

Sunday, June 7, 2009

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!

Friday, June 5, 2009

I had an awesome time

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

[caption id="attachment_1614" align="aligncenter" width="423" caption=" sparked lots of interest in front of their kiosk!"]