-
强制性离散对数
^ x = 140851752bruteforce x
- 2022-04-18 16:39:58下载
- 积分:1
-
快速傅立叶算法,按时间和按频率抽取的基2算法
快速傅立叶算法,按时间和按频率抽取的基2算法-Fast Fourier algorithm, time and frequency taken by the base 2 Algorithm
- 2022-08-22 10:21:33下载
- 积分:1
-
Real
实数编码遗传算法程序 共3部分 可以应用于很多方面,但需进一步理解其原理-Real-coded genetic algorithm procedure can be applied to a total of 3 parts in many aspects, but a better understanding of its principle
- 2023-05-22 18:15:03下载
- 积分: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
-
指派问题的匈牙利算法(matlab语言)
指派问题的匈牙利算法(matlab语言)-assignment of the Hungarian algorithm (Matlab language)
- 2022-04-23 09:11:20下载
- 积分:1
-
求矩阵的最大特征值
求矩阵的最大特征值-matrix for the largest eigenvalue
- 2022-01-21 21:13:50下载
- 积分:1
-
GCV Generalized cross
GCV Generalized cross-validation.广义交叉校验,用做非线性时间序列的计算,非常有用,找了好久才找到的。不要错过机会哦-GCV Generalized cross-validation. Generalized cross-validation, using nonlinear time series to do the calculation, is very useful to find for a long time to find the. Oh, do not miss the opportunity to
- 2023-06-11 07:15:03下载
- 积分:1
-
A program to find frequent molecular (subst ructures and discriminative fragment...
A program to find frequent molecular substructures and discriminative fragments in a database of molecule descriptions. The algorithm is based on the Eclat algorithm for frequent item set mining.-A program to find frequent molecular (subst ructures and discriminative fragments in a dat abase of molecule descriptions. The algorithm is based on the algorithm for frequent Eclat ite m set mining.
- 2022-08-11 00:52:41下载
- 积分:1
-
Hashin - Strikman界函数
应用背景hashv - Hashin-Shtrikman上限和下限曲线速度 ;作为一种物质2分式函数。假定材料1具有较高的速度比材料2。如果没有,那么上限和下限应互换的输出。没有输出参数哈希图的边界作为一个函数的孔隙度或部分的2相材料;输入为日志数据(拉斯维加斯文件)关键技术岩石物理、地震储层表征介质有效,LAS文件,速度,密度,
- 2023-08-16 12:00:04下载
- 积分:1
-
解大规模线性方程组的预条件Gmres方法.系数矩阵可以非对称正定....
解大规模线性方程组的预条件Gmres方法.系数矩阵可以非对称正定.-Solution of large-scale linear equations of the preconditioned GMRES method. Coefficient matrix can be non-symmetric positive definite.
- 2022-05-15 20:02:59下载
- 积分:1