Ale*_*ros 13 priority-queue data-structures
根据http://en.wikipedia.org/wiki/Heap_%28data_structure%29#Comparison_of_theoretic_bounds_for_variants,它采用Θ(logn)(转换为O(logn))来执行减小键操作.但是,似乎没有包含具有减少键操作的二进制堆实现的站点.
因此,由于Web上缺少实现,是否可以在二进制堆中执行reduce-key操作?
Ale*_*ros 10
我想出来了: