- ID : UVA - 11631 - Dark Roads
- Status : Accepted
- Type : Graph MST .
- Time : 30 Minutes to Submission.
- Language : Java
- Solution :
- Add Total Costs of Edges.
- Kruskal MST on Edges using Union-Find Algorithm
- Subtract the MST cost from the Total cost.
- Problems :
- Large Data Input so Buffered Reader & Scanner will give TLE
- Don't Use Java Standard Input readers but use this Parser Instead.
This Blog is a Personal record for All The Algorithms Problems I've Solved. It shouldn't be taken as a reference for optimal solutions because I'm just a beginner.
Monday, February 28, 2011
UVA - 11631 - Dark Roads
Labels:
11631,
Dark Roads,
Graph,
MST,
Uva,
UVA 11631 Dark Roads
Subscribe to:
Post Comments (Atom)
may i see this problem code for reference and study.. my email is sazocen@gmail.com.. thank you sir
ReplyDelete