说明: //贪心算法 //最小生成树的kruskal的算法 #include "stdafx.h" #include #include #include using namespace std; //int maxint=mar_maxint; class BinaryTree; class EdgeNode//边的数据结构 { private: int u,v;//边所在的顶点 double weight;//边的权值 friend ostream&operator<<(ostream&
<ruhailiu126> 上传 | 大小:11kb