-
c++的数学物理方程数值算法源程序。这是"Numerical Methods for Physics"第二版的源程序。...
c++的数学物理方程数值算法源程序。这是"Numerical Methods for Physics"第二版的源程序。-c mathematical physics equations numerical algorithm source. This is the "Numerical Methods for Physics," the second version of the source.
- 2022-05-20 21:11:10下载
- 积分:1
-
双链表c实现
数据结构最基本的算法,双链表的c实现,包括创建,删除,修改,增加成员等操作
- 2022-03-22 20:09:31下载
- 积分:1
-
KNN分类器
开发了一个简单的投票K-NN与欧氏距离分类器,输入包括训练数据,测试数据和K值,输出是测试数据的分类结果。
- 2022-04-21 02:47:33下载
- 积分:1
-
200495231612.rar
200495231612.rar
- 2022-12-13 23:05:03下载
- 积分:1
-
拟牛顿法求非线性方程组的一组实数解
拟牛顿法求非线性方程组的一组实数解-quasi-Newton method of nonlinear equations for a group of real solutions
- 2022-01-25 19:17:01下载
- 积分:1
-
51单片机源代码
很详细 请认准阅读FPGA控制LCD1602调试笔记 有原理介绍和源代码 此资料来自百度文库(http://wenku.baidu.com/) 您目前所看到的文档是使用的抱米花百度文库下载器所生成
- 2022-02-05 20:50:35下载
- 积分:1
-
神经网络的手写识别
通过这个项目你可以识别字符,数字等你想要的语言。首先你要画出每个字母的地方,
- 2022-03-04 07:19: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
-
铂金属温度计换算程式,用于知道金属阻值时求解温度值
铂金属温度计换算程式,用于知道金属阻值时求解温度值-platinum metal thermometer conversion formula for the resistance know when the metal temperature Solution
- 2023-03-03 10:10:04下载
- 积分:1
-
This is a compiler for a small pascal procedures it is not enough for some but a...
这是一个用来编译pascal的一个小程序有些还不行但也发了-This is a compiler for a small pascal procedures it is not enough for some but also made a
- 2022-02-05 02:30:56下载
- 积分:1