-
基于最大类间方差阈值与遗传算法的道路分割算法
The code is based on Otsu threshold algorithm and heritage road split code to calculate the optimal threshold, enabling the road segmentation, experimental results are good.The code is based on Otsu threshold algorithm and heritage road split code to calculate the optimal threshold, enabling the road segmentation, experimental results are good.
- 2022-02-04 01:42:13下载
- 积分:1
-
在C++程序点四
四叉树是一种树数据结构,其中每个内部节点正好有四个子节点。四叉树是最重要的
- 2022-08-15 15:07:12下载
- 积分:1
-
一个关于数据挖掘的决策树算法
一个关于数据挖掘的决策树算法-a data mining on the Decision Tree Algorithm
- 2022-01-25 19:53:42下载
- 积分:1
-
一个乘法表的简单示例
一个乘法表的简单示例-a simple multiplication table Example
- 2022-03-18 04:09:36下载
- 积分:1
-
VB中不使用 on error goto的容错程序。
VB中不使用 on error goto的容错程序。-not use VB on the fault-tolerant error goto procedures.
- 2022-02-26 22:14:59下载
- 积分:1
-
RFID源码
完整的射频识别 RFID 适合研究RFID定位的人员进行学习The complete radio frequency identification RFID is suitable for RFID positioning personnel to study
- 2022-01-26 06:30:14下载
- 积分:1
-
first prepared MFC DLL, opening VC 6.0 = gt; File = gt; New = gt; Project = gt;...
先准备好MFC DLL,打开VC 6.0=gt;文件=gt;新建=gt;项目=gt;MFC AppWizzard(DLL),项目名Calc=gt;下一步=gt;完成。好吧,你在文件视图上打开工作区可以看到有Calc.h,计算cpp,stdafx.h,stdafx.cpp文件那四份文件。
- 2022-03-15 08:37:44下载
- 积分:1
-
Find Devide Between to Number
孟吉通selisih angka dengan bahasa C.Inputan berupa angka。输出yang dihasilkan berupa angka selisih dari inputan yang dimasukan。
- 2022-04-11 13:36:17下载
- 积分:1
-
蚂蚁算法
音乐和弦的识别算法并进行转录记录,以披头士的音乐作为测试集进行和弦识别!
- 2022-03-12 13:21:59下载
- 积分: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