Пример #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();
        }