
数据结构
loveWEBmin
计算机 我要征服你
展开
-
8609 哈夫曼树
#include #include #include #include #define OK 1;#define ERROR 0;#define MAXINT 0x3f3f3f3f; //无穷量typedef int Status ;using namespace std;typedef struct原创 2017-05-23 12:37:08 · 1377 阅读 · 1 评论 -
二分法插入排序
输入 一个 n 输入n个数字 对这n个数字 进行排序#include #include #include #include using namespace std;int Find(int T[],int n){ freope int a=1,b=n-1; T[0]=T[n]; //找到最后一个大于等于原创 2017-06-09 21:15:12 · 282 阅读 · 0 评论 -
各种排序算法
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@直接插入排序@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#include#include #include #include using namespace std;void Swap (int T[],int a);int main(){ int n; cin>>n;原创 2017-06-09 21:45:35 · 202 阅读 · 0 评论