-
数据结构-算法-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
-
幻方
在娱乐数学幻方是安排不同的数字 (即每个数字使用一次),通常是整数,在正方形网格中,在那里在每一行和每一列中的数字和中向前和向后主对角线上的数字都加起来到相同的编号。幻方具有相同的行数以及它有根柱子,在常规的数学符号,"n"代表数量的行 (和列),它有。因此,魔术广场总是包含 n2 的数字,和它的大小 (行 [和列],它具有数目) 被形容为"的 n 阶"。[1] 包含从 1 到 n2 整数的魔术方块被称为正常的幻方。("魔方"一词有时也用于指各种类型的单词方块。)有可能构建任何大小除了 2 × 2 正常幻方 (也就是说,其中 n = 2),虽然幻方的解决方案其中 n = 1 是微不足道的因为它只是由单个单元格包含数字 1。小非平凡案例,如下所示,是一个 3 × 3 网格 (也就是说,三阶的魔术广场)。这是解决 nxn 幻方的项目
- 2023-03-28 06:25:04下载
- 积分:1
-
2004全国大学生数学建模大赛,获奖论文
2004全国大学生数学建模大赛,获奖论文-2004 National Undergraduate Mathematical Modeling Contest, winning papers
- 2023-06-24 22:30:05下载
- 积分:1
-
日期时间工具函数。含有计算星期几、从0000年以来天数和毫秒数、日期加减和日期比较等...
日期时间工具函数。含有计算星期几、从0000年以来天数和毫秒数、日期加减和日期比较等-Tool functions for calculating datetime. they can calculate days and mseconds form the year 0000, also plus, minus,and comparate of datetime
- 2023-05-17 09:30:02下载
- 积分:1
-
曲线拟合
曲线拟合非常好。
- 2022-11-17 07:45:03下载
- 积分:1
-
使用Chebyshev 多项式进行数值拟合的算法
使用Chebyshev 多项式进行数值拟合的算法-use of Chebyshev polynomials numerical fitting algorithm
- 2023-02-09 23:00:04下载
- 积分:1
-
enter mathematical formula calculation of the source code, we chin
通过输入数学公式进行数学计算的源代码,大家下巴-enter mathematical formula calculation of the source code, we chin
- 2022-05-14 07:17:09下载
- 积分:1
-
离散PID算法的详细解析论文
该文档详细解析了PID算法的原理,以及从模拟PID控制过度到数字PID的原理,分别讲述了增量式数字PID算法,以及位置式数字PID算法,包含了主流的PID控制器参数整定方法,本文档提供了基于软件开发环境的例程,以及程序范例。
- 2022-03-11 19:06:10下载
- 积分:1
-
离散数学,是好的学习课件,可用于考研或其它
离散数学,是好的学习课件,可用于考研或其它-Discrete Mathematics is a good learning courseware can be used to PubMed, or other
- 2022-02-01 12:38:48下载
- 积分:1
-
matlab基因遗传算法包
资源描述matlab基因遗传算法包,放在toolbox下,可调用
- 2022-02-21 14:35:10下载
- 积分:1