06 2020 档案
邻接矩阵
摘要:#include <stdio.h> #include <stdlib.h> #include <string.h> #define OVERFLOW -2 #define ERROR 0 #define OK 1 #define Length (q.rear+1)%QUEUE_MAXSIZE //
阅读全文
哈夫曼树的编码实现
摘要:#include<stdio.h> #include<string.h> #include<stdlib.h> //树结点定义 typedef struct { int weight; int parent; int lchild; int rchild; }HTNode,*HuffmanTree;
阅读全文
哈希排序法的表示
摘要:#include<stdlib.h>#include<stdio.h>#define NULL 0typedef int KeyType;typedef struct{ KeyType key;} ElemType;int haxi(KeyType key,int m) /*根据哈希表长m,构造除留
阅读全文
浙公网安备 33010602011771号