WELCOME To Everyone!!!
Recently I've learned MaxFlow, MinCostMaxFlow and Matching...
Where can I solve problems in matching?
Thanks...
WELCOME To Everyone!!!
Recently I've learned MaxFlow, MinCostMaxFlow and Matching...
Where can I solve problems in matching?
Thanks...
|
nerd
|
15 years ago,
hide
#
|
+3
why i'm getting minuses? because of my poor english?
→
Reply
|
cmd
|
15 years ago,
hide
#
|
←
Rev. 2
→
0
Try reading it http://mirror.codeforces.com/blog/entry/1279?locale=ru . The post similiar to yours (about max flow related problems - matchings, max flow, min cost and etc.). It's in russian, but you can find the links on problems, which are commonly in english.
→
Reply
|
|
nerd
|
15 years ago,
hide
#
|
0
http://informatics.mccme.ru/moodle/mod/statements/view3.php?id=437&chapterid=588
As i understood, here we are given N cubes{with 6 letters on each side} and name. We must answer, if we are able to gather name by using any letter from each cube? If so, how can I use matching here?
→
Reply
|
cmd
|
15 years ago,
hide
#
^
|
0
We build graph with two sets of vertecies: 1) cubics, 2) every letter of name. We add edge between cubic i and letter j of name if there are exist letter j on cubic i. Now we just find max matching in bipartite graph. If the size of matching is equal to length of the name, then answer is yes.
→
Reply
|