-
数据结构-算法-C语言-Demo
#ifndef _BINARY_TREE_H_INCLUDED#define _BINARY_TREE_H_INCLUDED#include #include templatestruct Bintree_node {T element;Bintree_node* lchild;Bintree_node* rchild;explicit Bintree_node(const T& elem=T(), Bintree_node* lchd=0, Bintree_node* rchd=0): element(elem), lchild(lchd), rchild(rchd) {}};templateclass Binary_tree {public:typedef Bintree_node* PBtn;Binary_tree();virtual ~Binary_tree();void clear();int depth() const;int size() const;virtual PBtn find(const T& elem) const=0;virtual void insert(const T& elem)=0;virtual void erase(const T& elem)=0;virtual void print(std::ostream& output) const=0;void print_tree(std::ostream& output) const;protected:
- 2022-01-29 04:39:50下载
- 积分:1
-
压缩算法LZW的研究代码
此代码是LZW的算法实现,对学习LZW算法有一定的帮助,有兴趣的朋友可以下载来看看,值得学习!
- 2022-07-22 13:15:49下载
- 积分:1
-
希尔排序算法的C实现
输入原始数据,选择增量序列,通过希尔排序算法,得到升序排列的新数据,算法逻辑细致,实现简单,能有效地处理数据排序问题。
- 2022-01-26 06:35:37下载
- 积分:1
-
一种用matlab写的群集智能算法
一种用matlab写的群集智能算法-蚁群算法-Of a cluster with matlab to write intelligent algorithm- ant colony algorithm
- 2022-02-05 07:36:18下载
- 积分:1
-
活动选择算法的的 c + + 程序
这是 c 语言程序的活动选择问题。请阅读它。它非常简单和写在 c + +
- 2022-08-08 18:13:58下载
- 积分:1
-
HUI EGO ZNAET 40
HUI EGO ZNAET 40-HUI EGO ZNAET 40!!!!!!!!!!!!
- 2022-01-24 16:01:21下载
- 积分:1
-
EFG2D-hole,带孔圆板问题的EFG程序,matlab
程序为采用matlab写的一个带孔圆板的EFG程序,这是一个学习和验证算法的标准算例,给出了可调控网格密度的网格生成程序,做数值算法的必学的程序
- 2023-04-20 22:05:03下载
- 积分:1
-
poason方法进行网格
poason method to make mesh
- 2022-07-01 06:03:39下载
- 积分:1
-
这是一个猫吃老鼠算法问题。
这是一个猫吃老鼠算法问题。-This is a problem of cats eat rats algorithm.
- 2022-06-20 09:01:23下载
- 积分:1
-
二叉树的最短路径
二叉树的最短路径-binary tree is the shortest path
- 2022-04-15 11:05:58下载
- 积分:1