decode() public method

public decode ( string archive, string dictionary ) : string
archive string
dictionary string
return string
Example #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();
 }
Example #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();
        }