What is wrong with my implementation of Prims Algorithm using priority queue? How can I improve it?

前端 未结 0 688
栀梦
栀梦 2021-01-25 16:40

Here\'s the code, I used min priority queue of STL here. For small inputs it is working fine, even for medium sized outputs as well but with very big inputs like 500 vertices, i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题