-
伪随机数生成算法,很优秀,32位int
伪随机数生成算法,很优秀,32位int-pseudo-random number generation algorithms, excellent, 32 int
- 2022-07-15 01:57:02下载
- 积分:1
-
用c++编写的三维FDTD源程序求解单站雷达散射截面RCS
用c++编写的三维FDTD源程序,本程序适用于时谐波任意角度入射 求解单站雷达散射截面RCS。分享出来,供大家参考研究,
适合刚刚接触fdtdD的人员学习,值得一读。
- 2022-03-11 11:54:05下载
- 积分:1
-
差分进化算法的源代码,编码简单,可读性强,与约。
差分进化算法的源代码,编码简单可读,可以直接编译执行-Differential evolution algorithm source code, coding simple and readable, and can directly compile the implementation of
- 2023-08-27 22:40:04下载
- 积分:1
-
进行矩阵求逆,包含行列式的值的计算,代数余子式的计算等...
进行矩阵求逆,包含行列式的值的计算,代数余子式的计算等
- 2023-08-23 11:30:03下载
- 积分:1
-
变化检测的阈值设定
本代码实现了两种变化检测方法。输入是无符号的差分图像 (例如两个视频帧或一个帧减去估计的背景),这是阈值以生产更改映射。
- 2022-01-27 11:24:32下载
- 积分: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编写的数值计算程序,用于数学实验方面-Matlab prepared by the numerical calculation program for math experiments
- 2022-01-26 14:59:23下载
- 积分:1
-
An exapmle of mathmatica
An exapmle of mathmatica
- 2022-05-24 17:16:27下载
- 积分:1
-
EMD相关m文件
EMD,相关,m文件EMD,
- 2022-06-11 15:27:52下载
- 积分:1
-
是和“常用的计算机数值算法和程序的C++版本,和Q ..
是《计算机常用数值计算算法与程序 C++版》一书的配套C++程序源代码文件,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windows 平台下的Virsual C++ 6.0环境下通过-is "commonly used computer numerical algorithms and procedures C version," a book supporting the C source code file, the source files extensions are used. Cpp form. These procedures have been in C Microsoft Windows platform under the Virsual C 6.0 environment through
- 2022-05-29 11:24:03下载
- 积分:1