public Node(string s) { LeftChild = null; RightChild = null; Info = s; _sum_codes = SumOfCodes.GetSum(s); }
internal void Add(Node node1, string s) { if (SumOfCodes.GetSum(s) <= node1.SumCodes) { if (node1.LeftChild == null) { node1.LeftChild = new Node(s); } else { Add(node1.LeftChild, s); } } else { if (node1.RightChild == null) { node1.RightChild = new Node(s); } else { Add(node1.RightChild, s); } } }
public NodeOfList(string info) { Previous = null; Next = null; Info = info; _sum_codes = SumOfCodes.GetSum(info); }