什么是MinPQ
Posted endevelop-gw
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了什么是MinPQ相关的知识,希望对你有一定的参考价值。
今天看《算法》图论的最小生成树部分,里面有一行代码不是很理解
private MinPQ<Edge> pq;
上中文互联网上没查到资料,去外网查了一下。
The MinPQ class represents a priority queue of generic keys. It supports the usual insert and delete-the-minimum operations, along with methods for peeking at the maximum key, testing if the priority queue is empty, and iterating through the keys.
The insert and delete-the-minimum operations take logarithmic amortized time. The min, size, and is-empty operations take constant time. Construction takes time proportional to the specified capacity or the number of items used to initialize the data structure.
This implementation uses a binary heap.
翻译就不做了,相信学计算机的这点英文还是有的。
以上是关于什么是MinPQ的主要内容,如果未能解决你的问题,请参考以下文章
此 Canon SDK C++ 代码片段的等效 C# 代码是啥?
iphone / Objective c的最佳代码片段网站是啥[重复]