Exemple #1
0
 static void Main(string[] args)
 {
     HuffmanDecoding x = new HuffmanDecoding();
     string[] a = { "110", "011", "10", "0011", "00011", "111", "00010", "0010", "010", "0000" };
     Console.WriteLine(x.decode("001101100101100110111101011001011001010",a));
     Console.ReadLine();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            HuffmanDecoding x = new HuffmanDecoding();

            string[] a = { "110", "011", "10", "0011", "00011", "111", "00010", "0010", "010", "0000" };
            Console.WriteLine(x.decode("001101100101100110111101011001011001010", a));
            Console.ReadLine();
        }