摘要:
DAG的最小路径覆盖#include#include#include#include#includeusing namespace std;const int MAXN=550;int linker[MAXN];bool used[MAXN];vectorMap[MAXN];int uN;int j... 阅读全文
摘要:
Floyd传递闭包+DAG的最小路径覆盖先来一次Floyd传递闭包,然后再求最大匹配,n-最大匹配就是答案#include#include#include#include#includeusing namespace std;const int MAXN=550;int linker[MAXN];b... 阅读全文
摘要:
有向环最小权值覆盖问题http://blog.csdn.net/u013480600/article/details/39159407#include#include#include#include#include#includeusing namespace std;//设置节点数量const i... 阅读全文