-
浙江大学程序设计大赛ACM2478题我自己收集的
本程序可以实现由摄像头输入的图像转换成.bmp格式的文件,此程序在CCS下可以直接完成的!-this procedure can be achieved by the camera to import images into. Bmp format of the document, the CCS this procedure can be performed directly!
- 2022-03-20 17:36:19下载
- 积分:1
-
C语言链表学习
应用背景C学习、链表掌握与提高、汽车管理系统关键技术链表、汽车管理系统,基于C语言编程的汽车管理系统,分别包括,注册信息、车次的统计与修改、用户订票(退票、订票)。基于链表,简单直观,方便学习链表的同学对链表进行理解加深,简单明了。
- 2022-02-02 22:07:47下载
- 积分: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
-
acm常用的函数 大全,,,,用得到的
acm常用的函数 大全,,,,用得到的-acm
- 2023-06-27 19:50:02下载
- 积分:1
-
Matlab主成分分析代码
这成分分析法(PCA),用来降低维度,包含一份Matlab测试源代码,一份测试文件,和源码运行结果,即Matlab figure,共同学习,希望对大家有所帮助!
- 2022-02-12 13:40:17下载
- 积分:1
-
machine learning ppt manuscripts
机器学习的ppt文稿-machine learning ppt manuscripts
- 2022-07-05 11:55:39下载
- 积分:1
-
a more general algorithm
一个较为普通的算法-a more general algorithm
- 2022-03-09 20:14:18下载
- 积分:1
-
基于面积阈值和斜率阈值的曲线拟合,将采集数据所得的曲线上的毛刺去掉...
基于面积阈值和斜率阈值的曲线拟合,将采集数据所得的曲线上的毛刺去掉-Based on the size threshold and the slope of the threshold curve fitting, will collect the data obtained from the curve to remove the burr
- 2022-05-17 09:21:52下载
- 积分:1
-
简单的试探法走迷宫
简单的试探法走迷宫--The simple trial method that walks the labyrinth
- 2022-06-17 08:26:25下载
- 积分:1
-
用于大型对称稀疏线性系统方程的迭代求解程序
应用背景包可以被用为求解对称线性系统的方程可能干的大型有限元离散, ;对称线性方程组可以是对称正定(SPD)或对称不定。关键技术的线性迭代(Krylov子空间迭代)求解器包括的预处理共轭梯度(PCG)方法和对称准微小残留(SQMR)方法,跑车的迭代线性求解器,Jacobi型预条件和SSOR型预条件是采用。 ;
- 2022-07-19 16:44:56下载
- 积分:1