Hi. I know only O(n^3) solution for this problem.
How I can get O(n) solution.
Thanks.
Who know Maximal Matching Problems O(n) solution?
Moderator: Board moderators
-
- Experienced poster
- Posts: 131
- Joined: Thu Apr 17, 2003 8:39 am
- Location: Baku, Azerbaijan
Who know Maximal Matching Problems O(n) solution?
_____________
NO sigNature
NO sigNature
-
- Learning poster
- Posts: 60
- Joined: Tue Aug 13, 2002 2:39 am
- Location: Mexico
Noup
I don't think so, actually O(N^3) is well to solve it even 'cause that algorithm is called pseudopolynomial.
The unique way will be that the problems offers you some constraints that make such problem trivial and so a O(N) solution can be applied, but i can't figure out right now
.
The unique way will be that the problems offers you some constraints that make such problem trivial and so a O(N) solution can be applied, but i can't figure out right now


