-
c++实现的对电话进行计费的系统,涉及到闰年平年的判断及夏时制冬时制的转换问题...
c++实现的对电话进行计费的系统,涉及到闰年平年的判断及夏时制冬时制的转换问题-c achieve the right telephone billing system, which involves non-leap year of a leap year in the judgment and daylight saving time in winter when the system conversion,
- 2022-04-26 10:49:36下载
- 积分:1
-
线性表的基本运算及多项式的算术运算
线性表的操作:
在顺序列表类SeqList中增加成员函数void Reverse(),实现顺序表的逆置
在顺序表类SeqList中增加成员函数bool DeleteX(const T &x),删除表中所有元素之等于x的元素。若表中存在这样的元素,则删除之,且函数返回true.否则函数返回false.
编写main函数。调用上述新增函数。
- 2022-02-10 04:16:32下载
- 积分:1
-
遗传算法求解货郎担问题(TSP)
本代码用遗传算法求解货郎担问题(TSP)。货郎担问题是组合数学中的著名问题,在算法领域颇受关注。问题是这样提出的:某旅行推销商,要到n个城市去推销商品,从其中某个城市出发,进出每个城市一次,最后返回驻地城市,问如何安排其路线,使行程最短。对于TSP问题,若采用穷举搜索算法,则需要考虑所有可能的情况,找出所有的回路,在对其进行比较,找出最佳路径。在n个城市TSP问题中,一条有效路径可以看成n个城市的排列。n个城市的全排列共有n!种,TSP问题没有限定路径的起点及方向,因此路径总数为n!/2n,可见穷举法随着城市数n的增大复杂度急剧增长。用遗传算法求解TSP问题的思想是先随机生成若干条有效路径,在选择其中较优的路径参与繁殖,生成下一代。再对下一代进行类似操作。经过若干代的进化后,将会收敛于一个较优解。此外,在遗传过程中可以加入变异算子来模仿生物界中的变异现象。
- 2022-07-04 17:09:54下载
- 积分:1
-
Each case the geometric algorithm is set, the geometric algorithm of data is cer...
各种情况的几何算法集,对数据的几何算法计算有一定的帮助作用-Each case the geometric algorithm is set, the geometric algorithm of data is certainly helpful to the role of
- 2022-01-28 07:52:50下载
- 积分:1
-
固定边界条件下的三次样条插值matlab程序
固定边界条件下的三次样条插值matlab程序-fixed boundary condition;cubic spline
- 2022-09-24 05:55:02下载
- 积分:1
-
对任意给定的二叉树(顶点数自定)建立它的二叉链表存贮结构,并利用栈的五种基本运算(置空栈、进栈、出栈、取栈顶元素、判栈空)实现二叉树的先序、中序、后序三种周游,
对任意给定的二叉树(顶点数自定)建立它的二叉链表存贮结构,并利用栈的五种基本运算(置空栈、进栈、出栈、取栈顶元素、判栈空)实现二叉树的先序、中序、后序三种周游,输出三种周游的结果。- To wilfully assigns two forks the tree (to go against points
from to decide) establishes it two to fork the chain table storage
structure, and (sets at spatial stack after the stack five kind of
fundamental operations, enters stack, sends out of the warehouse,
takes stack top element, sentences stack to be spatial) realizes two
forks the tree first the foreword, center the foreword, the foreword
three kinds travels around, outputs the result which three kinds
travels around.
- 2022-01-26 18:45:01下载
- 积分:1
-
bresenham直线生成算法
bresenham直线生成算法-Algorithm
- 2023-04-14 07:50:04下载
- 积分:1
-
经典模拟退火算法,希望能对大家有所帮助
经典模拟退火算法,希望能对大家有所帮助
- 2022-03-19 14:17:31下载
- 积分:1
-
用蒙特卡洛方法,求解出抛物线方程在给定区间内的积分值。...
用蒙特卡洛方法,求解出抛物线方程在给定区间内的积分值。-Using Monte Carlo methods for solving a parabolic equation in a given range of integral values.
- 2022-07-22 19:09:00下载
- 积分:1
-
vc写的SSE2优化离散余弦变换
vc写的SSE2优化离散余弦变换-vc write SSE2 optimization Discrete Cosine Transform
- 2022-01-24 14:10:06下载
- 积分:1