-
delphi realized apriori algorithm source code
delphi实现的apriori算法源代码-delphi realized apriori algorithm source code
- 2022-03-18 11:06:53下载
- 积分: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
-
这个程序是标准的BP神经网络,可以调整输入、输出和隐曾的维数。...
这个程序是标准的BP神经网络,可以调整输入、输出和隐曾的维数。-this procedure is the standard BP neural network, can be adjusted input, output and has the implicit dimension.
- 2023-05-19 21:15:03下载
- 积分:1
-
贝叶斯网络学习算法――k2算法,包括对贝叶斯网络结构的学习,最后生成网络...
贝叶斯网络学习算法――k2算法,包括对贝叶斯网络结构的学习,最后生成网络-Bayesian network learning algorithm- k2 algorithms, including Bayesian network structure learning, the last generation network
- 2022-04-07 02:05:04下载
- 积分:1
-
高速缓存算法
高速缓存算法- High speed buffer algorithm
- 2022-01-21 02:48:28下载
- 积分:1
-
Multi
多维傅里叶变换,二维DFT快速算法,共分五部--四:三维复序列3D-DFT快速算法-Multi-dimensional Fourier transform, fast algorithm for two-dimensional DFT is divided into 5- 4: Three-dimensional complex sequence of 3D-DFT Fast Algorithm
- 2023-07-04 05:05:03下载
- 积分:1
-
上身探测器
在静止图像中的上部人体检测软件。它基于成功的一部分基于对象检测框架,并且包含一个模型来检测附近额叶上部机构。由此产生的探测器返回范围框拟合的头和上部有一半的人的躯干。
- 2022-03-20 05:54:36下载
- 积分:1
-
一种倾角传感器的串口通讯实例,值得一看。
一种倾角传感器的串口通讯实例,值得一看。-angle sensor of a serial communication example, an eye-catcher.
- 2022-06-12 00:02:27下载
- 积分:1
-
BASE64编码解码
BASE64是将2进制数据转换为字符串的常用编码方式,在。NET中有现成的类可以使用,但是C++就得自己按照算法实现了。现将C++的实现共享。包含单元测试代码。
- 2022-02-10 03:45:20下载
- 积分:1
-
一个复数类的实现方法,虽然简单,但对于初学者对于mfc编程很有指导意义,这也是本人初学mfc的时候第一个实列。...
一个复数类的实现方法,虽然简单,但对于初学者对于mfc编程很有指导意义,这也是本人初学mfc的时候第一个实列。-kind of a complex method, though simple, but for beginners for very mfc programming guide, This is my time learning mfc is an out clause.
- 2023-03-20 09:55:02下载
- 积分:1