我正在寻找像stl(push_heap,, )中的算法pop_heap,make_heap除了能够有效地弹出最小值和最大值.AKA双端优先级队列.如上所述这里.
push_heap
pop_heap
make_heap
作为替代方案,双端优先级队列的任何干净实现也是有意义的,但是这个问题主要是关于MinMax Heap实现.
我的google-fu并不富有成效,但当然,它必须存在?
c++ algorithm heap data-structures
algorithm ×1
c++ ×1
data-structures ×1
heap ×1