public void RemoveMinimumTestUsingDCT8() { var heap = BinaryHeapFactory.ExampleHeapFromTopologicalSortOfDCT8(); heap.RemoveMinimum(); Console.WriteLine(heap.ToStringTree()); heap.AssertInvariants(); }
public void UpdateTestUsingDCT8() { var heap = BinaryHeapFactory.ExampleHeapFromTopologicalSortOfDCT8(); heap.Update(1, 320); Console.WriteLine(heap.ToStringTree()); heap.AssertInvariants(); }