示例#1
0
        public void RemoveMinimumTestUsingDCT8()
        {
            var heap = BinaryHeapFactory.ExampleHeapFromTopologicalSortOfDCT8();

            heap.RemoveMinimum();
            Console.WriteLine(heap.ToStringTree());
            heap.AssertInvariants();
        }
示例#2
0
        public void UpdateTestUsingDCT8()
        {
            var heap = BinaryHeapFactory.ExampleHeapFromTopologicalSortOfDCT8();

            heap.Update(1, 320);
            Console.WriteLine(heap.ToStringTree());
            heap.AssertInvariants();
        }