摘要:
Prim算法#include #include #include int n;double map[210][210],a[210];int b[210];void met(){ int i,t=1; a[t]=0; while(b[t]==0){ b[t]=1; for(i=1;imap[t][i]) a[i]=map[t][i]; double min=200000000; for(i=1;ia[i])min=a[i],t=i; }}int main(){ int i,j,k... 阅读全文