public TreeSorter() { Guard.IsAssignableFrom <IComparable, T>(); this.comparison = ComparisonCore.Compare; this.tree = new AVLTree <Node>(new NodeComparer(ComparisonCore.Compare)); }
public TreeSorter(Comparison <T> comparison) { Guard.IsNotNull(comparison, nameof(comparison)); this.comparison = comparison; this.tree = new AVLTree <Node>(new NodeComparer(comparison)); }
public TreeWalker(AVLTree <Node> tree, int size) { this.size = size; this.tree = tree; }