摘要:
int cmp(const int i, const int j) { return w[i]<w[j]; }///间接比较函数,w[i]表示边i权值 int find_set(int x) { return p[x] == x ? x : p[x] = find_set(p[x]);} int Kruskal(){ int ans = 0; for (int i =... 阅读全文
posted @ 2017-11-22 22:21
sapphirebitter
阅读(203)
评论(0)
推荐(0)
浙公网安备 33010602011771号