public HoffmanNode(int frequency, HoffmanNode left, HoffmanNode right) { this.Value = default(char); this.Frequency = frequency; this.Right = right; this.Left = left; }
public HoffmanNode(char value, int frequency) { this.Frequency = frequency; this.Value = value; this.Right = null; this.Left = null; }
public HoffmanTree() { root = null; }