
二分图匹配
文章平均质量分 58
mhlwsk
这个作者很懒,什么都没留下…
展开
-
[ZOJ1654]Place the Robots 做题笔记
行染色条->列染色条 代表一个能放的点。可以用二分图匹配做。 网络流做法#include <cstdio> #include <algorithm> #include <cstring> #include <queue> using namespace std; const int N=2509,M=7509*2,inf=0x7fffffff; int head[N],d[N],edge[M],v原创 2016-03-02 20:24:25 · 482 阅读 · 0 评论 -
[POJ1325]机器调度 做题笔记
Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. Scheduling problems differ widely in the nature o原创 2016-03-02 14:13:51 · 499 阅读 · 0 评论 -
[BZOJ1143][CTSC2008]祭祀river 做题笔记
题目来源:http://www.lydsy.com/JudgeOnline/problem.php?id=1143 一种理解(引用自http://www.cnblogs.com/BLADEVIL/p/3713043.html): 我们可以将一个点拆成两个点x,y,那么如果存在一条i->j的路径,我们就连接xi,yj,那么答案就是n-最大匹配数。 因为i->j所以对于i与j只能原创 2016-03-20 23:08:14 · 499 阅读 · 0 评论