-
七大基本排序算法
七大基本排序算法,已通过测试快速排序冒泡排序堆排序希尔排序归并排序选择排序插入排序
- 2022-01-28 19:10:43下载
- 积分:1
-
该代码实现了am,f
该代码实现了am,f-msk,qpsk,mdpsk-the code achieved am, f-msk, qpsk, mdpsk
- 2022-01-28 12:22:43下载
- 积分:1
-
层次分析法C语言版
层次分析法C语言版-AHP C language version
- 2022-04-06 21:24:43下载
- 积分:1
-
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为...
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为输。
二、分析
用计算机来算这个题,搜索速度当然有很大优势,我编程喜欢考虑通用一点,不限制输入数量和结果数,甚至不限制运算符数量。这样组合数就很大,如果输入数比较多,则搜索时间会非常长。
我用两个方法来提高搜索速度:一、是大家都能考虑到的重复搜索问题,比如1,2,3和2,3,1所有的组合情况是相同的,我只搜索使用递增序的数组,则可以降低一个组合数的数量级别;二、使用动态规划中的备忘录方法,比如你计算出2和3所有可能的计算结果,则他们与4结合的时候,要用到,与1结合的时候,也要用到,使用备忘录,可以只计算一次,大大降低运算复杂度。
三、设计
整体设计:分别设计4个类:游戏、表达式、运算、分数,各司其责,结构清晰,易于扩展。
-First, the preamble
24-point game is a common game, give the title are four integer requiring answer within a specified period of time in a four calculations give the expression, just use that the integral of the time, results for the 24, beyond the time to lose.
Second, analysis
Use computers to count the title, the search speed of course, there is a great advantage, I enjoy taking generic programming that does not restrict the importation of the volume and the number of results, and even limiting the number of operators. So on a large number of combinations, if you
- 2022-04-21 18:17:05下载
- 积分:1
-
利用样条插值求取一组数据点在各点的导数
(只提供函数)
利用样条插值求取一组数据点在各点的导数
(只提供函数)-using spline interpolation to strike a group of data points in the points in the derivative (only provide functions)
- 2022-03-03 21:00:53下载
- 积分:1
-
数值计算方法里的一种经典算法,追赶法,用于大型稀疏方程组
数值计算方法里的一种经典算法,追赶法,用于大型稀疏方程组-numerical calculation method"s a classic algorithms, catching up with the method for large sparse linear equations
- 2022-02-25 09:29:46下载
- 积分:1
-
FibnachC
实现超长位数的Fibnach数列的计算程序,用C++语言实现。-FibnachC
- 2022-07-27 19:49:59下载
- 积分:1
-
0.618 process does the cases, seek the maximum COSX
黄金分割的程序实了例,求COSX的最大值-0.618 process does the cases, seek the maximum COSX
- 2022-02-09 17:51:21下载
- 积分:1
-
步态识别源码
详细说明:2DPCA用于人脸、步态等图像识别,可先按照行列比例将不规整图像归一化处理,然后进行训练,并且识别,全部中文注释和提示,便于学习和参考。-2DPCA humanface, gait, such as image recognition, in accordance with the ranks of theratio can not structured to deal with the normalized image, and then training,and recognition, all Chinese notes and tips for learning and reference.
- 2023-02-23 20:00:04下载
- 积分:1
-
GM(1,1)
GM(1,1)模型GM(1,n)
灰色度模型
但回归-GM(1,1)
- 2022-07-24 20:59:30下载
- 积分:1