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

Common Board

Problem B
Posted by Pavel Aksonov 23 Sep 2001 00:21
Is really solution O(n^2) exists ?
Re: Problem B --> Yes of course, it's maximum matching
Posted by Believe in angels 23 Sep 2001 10:53
> Is really solution O(n^2) exists ?
Re: Problem B
Posted by Marian Dvorsky 23 Sep 2001 14:38
> > Is really solution O(n^2) exists ?

> Yes of course, it's maximum matching

Sure, it it's maximum matching (maximum independent set in
bipartite graph acutally), but how do you solve it in O
(n^2)? Best known algorithm is O(n^2.5) afaik.
Re: Problem B --> very simple, it base on maximum flow !
Posted by Believe in angels 23 Sep 2001 17:29
> > > Is really solution O(n^2) exists ?
>
> > Yes of course, it's maximum matching
>
> Sure, it it's maximum matching (maximum independent set
in
> bipartite graph acutally), but how do you solve it in O
> (n^2)? Best known algorithm is O(n^2.5) afaik.
Re: Problem B --> IS REALLY O(n^2)?? i know only O(n^3) and a little about O(n^2.5)... :(
Posted by Pavel Aksonov 23 Sep 2001 18:24
> > > > Is really solution O(n^2) exists ?
> >
> > > Yes of course, it's maximum matching
> >
> > Sure, it it's maximum matching (maximum independent set
> in
> > bipartite graph acutally), but how do you solve it in O
> > (n^2)? Best known algorithm is O(n^2.5) afaik.
Re: Problem B --> very simple, it base on maximum flow !
Posted by Pavel Aksonov 24 Sep 2001 03:41
Could you send me your solution to aksonov@mail.ru ? i've
wrote program based on maximal flow, but "Time Limit"....

My algorithm is O(n*k) and i don't know better algorithm.

Thanks,
Pavel.
Re: Problem B --> very simple, it base on maximum flow !
Posted by Jivko Ganev 24 Sep 2001 04:50
You should optimize the network flow and it will be fast
enough - use adjacentcy lists etc. or try the algorithm
that finds augmenting paths that alternate and then flips
the edges.
Thanks. I will. You give me good hope :)
Posted by Pavel Aksonov 24 Sep 2001 18:26
> You should optimize the network flow and it will be fast
> enough - use adjacentcy lists etc. or try the algorithm
> that finds augmenting paths that alternate and then flips
> the edges.