Programming based on visual C#.
Google "Huffman Coding"; you will find several articles describing the algorithm. Applying this to C# should be fairly easy; you're writing the program, so you do this bit.