-
用于求解环境污染物在地下水中迁移规律的解析解
用于求解环境污染物在地下水中迁移规律的解析解-for solving environmental pollutants in the groundwater migration laws of the analytic solution
- 2022-06-27 15:39:32下载
- 积分:1
-
时间序列工具箱 ,内含双谱,AR模型参数估计程序
时间序列工具箱 ,内含双谱,AR模型参数估计程序-time series toolbox containing Bispectrum, AR model parameter estimation procedures
- 2022-08-09 14:48:08下载
- 积分:1
-
决策树和那ï朴素贝叶斯方法对数据进行分类
应用背景这是分类研究的代码,和特别是,决策树方法和Naï朴素贝叶斯方法进行分类的数据之间的比较分析。关键技术决策树与决策树分类方法的比较分析
- 2022-02-05 16:33:02下载
- 积分:1
-
x-y图解法求二元精馏塔理论塔板数 本文件是一个m文件,要在matlab环境下运行-x-y graphical method for binary distillation theoretical plate number of this document is a document m, the operating environment Matlab
- 2022-03-11 05:04:33下载
- 积分:1
-
禁忌搜索
禁忌搜索解决TSP的Matlab程序
编的一个很简单的禁忌搜索程序,效果一般,以后还要努力改善。
%keywords:TSP,TS
%by Zhaokai,zkcsu@126.com
- 2022-03-07 09:48:09下载
- 积分:1
-
变步长积分一步的连分式法
变步长积分一步的连分式法-variable step integral step in the continued fraction France
- 2023-08-03 04:05:05下载
- 积分: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
-
QR码编码解码算法实例
qr码是一种二维条码. 本源码中包含了完整的编码、解码以及测试程序. 多份代码可供选择.-qr code is a two-dimensional bar code. The source code contains a complete encoding, decoding, as well as testing procedures. more than the code to choose from.
- 2022-05-20 15:42:01下载
- 积分:1
-
Basler相机外触发
basler相机input,具有参考价值,可以提供basler相机的触发参考,缓存的采集。官方通用系,希望对大家有用。
- 2023-06-21 07:40:03下载
- 积分:1
-
三色球问题 若有一个口袋放有12个球,其中有3个红的,3个白的和6个黑的,从中任取8个球, 问共 这也是一个可用穷举法求解的问题。 设任取的红球个数为i, 白球...
三色球问题 若有一个口袋放有12个球,其中有3个红的,3个白的和6个黑的,从中任取8个球, 问共 这也是一个可用穷举法求解的问题。 设任取的红球个数为i, 白球个数为 j,则黑球个数为8-i-j,用count统计不同的搭配数目- Three chromospheres questions if have a pocket to put have 12
balls, including 3 red, 3 white and 6 black, no matter what takes 8
balls, asked altogether this also is may use the question which the
exhaustion method solves. Supposes no matter what takes the red ball
integer is i, the white ball integer is j, then the black ball integer
is 8-i-j, counts differently with count matches the number
- 2022-06-03 14:36:47下载
- 积分:1