Блог пользователя CLICKHERE

Автор CLICKHERE, история, 4 года назад, По-английски

Is this Prim's MST Source Code is O(E logV) for dense graph? Notes: https://codeforces.com/blog/entry/68133?#comment-524560

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Of course. But, that is guaranteed for Prim's MST algorithm when using a priority queue.

But you can do better by using an array instead in the case of dense graphs.