- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 【图】拓扑排序
#include #include #include using namespace std; class Hdu3342{ public: void initial(int n, int m); void read_case(); bool topological_sort(); void print_result(); private: vector vec[101];//节点的邻
2016-04-10 15:28:41 336
原创 【图】最短路径Bellman-Ford算法
#include using namespace std; const int max_num = 500; const int max_len = 10000; typedef struct Edge{ int begin;//起点 int end;//终点 int weight;//权值 }Edge; class BellmanFord{ public:
2016-04-04 22:39:47 710
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人