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 1709. Penguin-Avia

How to make graph connected fast?
Posted by Andrew Sboev 3 Jun 2012 21:28
My method of making graph connected works nearly by O(N^2). Are there any classic algorithmes for such problem?
Re: How to make graph connected fast?
Posted by yutr777 27 Dec 2013 10:51
You should use the system of disjoint sets.