最小生成树模板
摘要:
Prim 算法const int INF=0x3f3f3f3f;const int MAXN=110;bool vis[MAXN];int lowc[MAXN];int Prim(int cost[][MAXN],int n){ int ans=0 memset(vis,false,si... 阅读全文
posted @ 2015-08-20 10:32 onlyAzha 阅读(113) 评论(0) 推荐(0) 编辑
posted @ 2015-08-20 10:32 onlyAzha 阅读(113) 评论(0) 推荐(0) 编辑
posted @ 2015-08-20 00:31 onlyAzha 阅读(232) 评论(0) 推荐(0) 编辑