![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法&数据结构
文章平均质量分 76
layrong
这个作者很懒,什么都没留下…
展开
-
根据二叉树先序和中序遍历结果求其后序遍历
首先我们先复习下不同类别的遍历: 先序遍历:遍历二叉树时先遍历根节点,ra原创 2014-09-12 21:34:51 · 4895 阅读 · 0 评论 -
Huffman编码压缩解压缩文件
采用了哈弗曼编码和优先队列(最小堆)实现 头文件 #ifndef HUFFMAN_H_INCLUDED #define HUFFMAN_H_INCLUDED #include "stdio.h" #include "stdlib.h" #include "string.h" #define INIT_SIZE 1000 #define FALSE 0 #define TRUE 1 #defin原创 2014-12-23 23:49:10 · 742 阅读 · 0 评论 -
Simplex线性规划单纯形算法
simplex是线性规划中十分经典的算法,以下为实现代码 头文件 #ifndef SIMPLEX_H_INCLUDED #define SIMPLEX_H_INCLUDED #include #include #define MAX_VALUE 1.0e308 int m ,n; typedef double Elemtype; typedef struct calcu_node {原创 2014-12-24 00:02:20 · 4282 阅读 · 2 评论