コード例 #1
0
        public T Push(S d)
        {
            var dd = (T)UpdatableHeapElements <S> .Create(d, heap.Count - 1);

            heap.Add(dd);
            top_down(heap.Count - 1);
            return(dd);
        }
コード例 #2
0
 public void update(UpdatableHeapElements <T> elem)
 {
     queue.Update(elem);
 }