Beispiel #1
0
        public int Pop()
        {
            heapswap(0, heap.Length() - 1);
            int result = heap.Pop();

            costs.Pop();
            heapify_down(0);
            heapback[result] = -1;
            return(result);
        }