摘要:
// 邻接表存储与广度和深度优先算法#include <iostream> using namespace std; #define MAX_VERTEX_NUM 100 typedef enum { DG,DN,UDG,UDN}GraphKind; typedef struct EdgeNode 阅读全文
摘要:
// 哈夫曼编码/译码系统 #include <iostream>#include <string>#include <vector>using namespace std; // 统计字符信息中出现的字符种类数和各字符出现的次数(频率)typedef struct charNode { char 阅读全文
摘要:
// 图的存储和遍历 #include <iostream>using namespace std; // // 邻接矩阵的存储以及深度和广度优先遍历// // 邻接矩阵的存储定义#define MAX 10000000#define MAX_VERTEX_NUM 100 typedef enum 阅读全文