编辑的问题,现在我只想知道是否可以使用队列来改进算法.我发现了一个混合成本最大流算法的实现,该算法使用dijkstra:// Implementation of min cost max flow algorithm/ max flow: O(|V|^3) augmentations
// min cost max flow:
在过去的一周里,我一直在研究dijkstra的算法,我有正确的java代码。它使用数组来计算标准findMin函数,它给出了具有最小distance.Obviously的顶点,它是O(n),现在我希望使用优先级队列(最小堆)来实现它。can be done in O(logn) using heap)
find