ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1982. Electrification Plan

prims algo using priority queue
Posted by shweta 24 Jun 2016 16:09
in prims algo implementation using priority queue, how can i decrease a key in priority queue ?
Re: prims algo using priority queue
Posted by rihaz zahir 24 Aug 2016 11:36
you can't change the element. you have to make your own min-heap for the dijkistra