摘要: nyoj 38 http://acm.nyist.net/JudgeOnline/problem.php?pid=38prim 克鲁斯卡尔 两个算法首先说说 克鲁斯卡尔算法,按照边的从小到大排序之后,利用并查集的思想,不断并。直到并出n-1条边。 #include#include#include... 阅读全文
posted @ 2016-06-18 10:07 Code-dream 阅读(279) 评论(0) 推荐(0) 编辑