public static void main(String args[]){
        HuffmanEncoding he = new HuffmanEncoding();
        char input[] = {'a','b','c','d','e','f'};
        int freq[] = {5,9,12,13,16,45};
        Map<Character,String> code = he.huffman(input, freq);
        System.out.println(code);
    }
http://www.geeksforgeeks.org/greedy-algorithms-set-3-huffman-coding/
http://www.geeksforgeeks.org/greedy-algorithms-set-3-huffman-coding-set-2/
src/com/interview/tree/HuffmanEncoding.java