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 1003. Parity

what Algorithm?
Posted by Hayk 4 Nov 2006 02:00
Tell me please...
dobrie lyudi:)

what kind of algorithm may we use in this problem.
?
Re: what Algorithm?
Posted by Crystal 28 Nov 2006 19:08
disjiont set can solve this problem well! try it and good luck!
Re: what Algorithm?
Posted by elmariachi1414 (TNU) 16 Dec 2006 17:53
How it can be solved with disjoint sets? Do you mean Find-Union???
Re: what Algorithm?
Posted by lql1993 24 Oct 2008 15:39
what to do with it?

Edited by author 24.10.2008 15:40
Re: what Algorithm?
Posted by yzthz 16 Mar 2009 18:13
A heuristic approach can further optimize the disjoint set by using an array to determine the depth of each tree in the forest.
the less deep tree should join the deeper tree, so that the trees are normally balanced.