-
Alogothym 对称背景
Alogothym 对称背景图像处理中。通过 dqd 和图像处理线程开发
- 2022-03-07 11:46:42下载
- 积分: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
-
神经网络
本代码实现如何反向传播算法 works.it 将生成关系图,它会告诉准确的预测和实际的输出结果。
- 2022-08-10 12:08:51下载
- 积分:1
-
元胞自动机模拟人员疏散
元胞自动机模型源代码,模拟紧急事件下人员疏散问题
通过构建一个二维的有限空间的元胞自动机,以单个格点代表其中的人员可能站位模拟在火灾等紧急条件下人员的疏散过程
- 2023-06-07 18:20:03下载
- 积分:1
-
Newton差商插值,可输入数组进行插值运算
Newton差商插值,可输入数组进行插值运算-Newton difference quotient interpolation, may import array interpolation Operational
- 2022-10-24 13:00:03下载
- 积分:1
-
子空间迭代算法求解结构的特征值,对结构动力分析必须的基本代码,希望对大家有用。...
子空间迭代算法求解结构的特征值,对结构动力分析必须的基本代码,希望对大家有用。-subspace iteration algorithm for the eigenvalue structure, the structural dynamic analysis must be the basic code we hope that the right useful.
- 2023-01-29 00:15:03下载
- 积分:1
-
约瑟夫环,运用了数据结构中的链结构。具体请详细观察源程序...
约瑟夫环,运用了数据结构中的链结构。具体请详细观察源程序-Joseph Wan, the use of the data structure in the chain structure. Please observe the specific source code
- 2022-03-09 12:41:47下载
- 积分:1
-
Numerical method of procedure: to accelerate the iterative Gauss
数值计算方法的程序:
加速迭代
牛顿迭代
Gauss
杜里特尔分解法
克洛特
追赶法
平方根法
改进平方根法
雅可比迭代
高斯 赛德尔迭代
拉格朗日插值法
分段线性插值
分段抛物线插值-Numerical method of procedure: to accelerate the iterative Gauss-Newton iterative decomposition method克洛特Ritter Duri law to catch up with the square root of the square root method to improve the Jacobi iterative method iterative high斯赛德尔piecewise linear Lagrange interpolation interpolation sub-parabolic interpolation
- 2022-09-28 01:20:02下载
- 积分:1
-
ASN.1语法解析代码
ASN.1语法解析代码-ASN.1 grammar analysis code
- 2023-02-08 20:55:03下载
- 积分:1
-
关于约束非线性规划的求解器,可用于学习和实际问题求解。
关于约束非线性规划的求解器,可用于学习和实际问题求解。-On the binding of non-linear programming solver can be used for learning and practical problem solving.
- 2022-03-24 20:16:01下载
- 积分:1