-
从 c + + 的.txt 文件中读取文本
从 c + + 的.txt 文件中读取文本。此功能可帮助您阅读 txt 文件,如果你是一个初学者,使用很方便
- 2022-04-17 22:59:52下载
- 积分:1
-
利用Gauss两点积分公式,进行数值积分的求解,并看它所具有的精确度。...
利用Gauss两点积分公式,进行数值积分的求解,并看它所具有的精确度。-The use of two points Gauss formula for numerical integration of the solution and see its precision.
- 2022-01-26 00:46:45下载
- 积分:1
-
虚拟重排序
这是一个有关汽车装配厂涂装车间虚拟重排序的简单规则代码,应用c++实现订单的重新分派。在此过程中并不改变原有汽车序列的实际顺序。This is a car assembly plant paint shop virtual reordering simple rule code, application c + + implementation reassignment orders. In this process does not change the actual order of the sequence of the original automobile.
- 2022-08-07 07:54:14下载
- 积分:1
-
ACM题解,对大学生等很实用的,学习这个对于自己的提高的帮助那是很大很大很大地,怕丢,放上来...
ACM题解,对大学生等很实用的,学习这个对于自己的提高的帮助那是很大很大很大地,怕丢,放上来-ACM problem solutions, university students, such as practical, learning this for their own help improve it is a great great great, the fear of losing,放上来
- 2022-01-22 02:11: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
-
简单有限元程序c++
使用c++编写一个简单的三角形单元有限元程序,通过编译链接,已经可以,初学有限元程序着可以看看
- 2022-09-14 03:15:03下载
- 积分:1
-
tossim中dymo路由
nesc语言编写的dymo路由协议nesc语言,tinyos,dymo路由协议
- 2023-04-07 20:35:03下载
- 积分:1
-
牛顿法解方程组-maple程序
用牛顿迭代法通过计算方程组,用的是maple编程,方便实用,只需要改动方程组即可所需计算,并且计算精度也可自由控制。。。
- 2022-03-20 22:11:33下载
- 积分:1
-
这本书提供了所有基本数学函数的高精度的算法
这本书提供了所有基本数学函数的高精度的算法-This book provides all the basic mathematical functions of the high-precision algorithm for
- 2023-03-14 03:25:04下载
- 积分:1
-
乔姆斯基文法判定
此程序是用C语言写的一个编译原理实验,用数组来存储。通过对数组的操作,以及文法规则来对文法进行判断。最终判断是属于哪一类文法。
- 2022-03-13 13:18:36下载
- 积分:1