-
该程序在TC环境下运行。
按键1
该程序在TC环境下运行。
按键1-6可以画6中常用的不同极坐标曲线。
按按键 q 退出。
你可以添加你想知道或者尝试任何你想象的曲线。-The program runs under the environment in the TC. 1-6 keys can be painted in 6 different commonly used polar curves. Q according to exit button. You can add or you want to know any of you try to imagine the curves.
- 2022-03-17 06:02:24下载
- 积分:1
-
捷联惯性导航C语言实现
捷联惯性导航C语言实现,捷联惯性导航学习使用,参考网上例程编写~
- 2022-07-17 23:28:41下载
- 积分:1
-
如何计划时域有限差分法
How to program FDTD-How to program FDTD
- 2022-03-13 08:30:10下载
- 积分: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语言版-AHP C language version
- 2022-04-06 21:24:43下载
- 积分:1
-
次拉格朗日插值
次拉格朗日插值-time interpolation
- 2023-05-21 01:10:03下载
- 积分:1
-
eda 交通灯设计
这是关于eda实验中的交通灯设计的源码和报告 里面详细说明了使用qurtus的过程 原理和源码都有的 具体实验应该大学的教材都差不多的 可以借鉴一下
- 2022-03-23 02:51:11下载
- 积分:1
-
查找字符串
字典树,前几个月做过个关键字过滤的东东,用的AC自动机的算法(Bell实验室70年代研究出的东东,详情请找度娘),10w数据量也就是0.x秒的事
而且这个算法,执行时间只与树的高度有关,与数据量无关,也就是说,哪怕你数据量再扩大一百倍,只要每个数据都是32位,那么时间就是固定的
- 2023-01-26 13:55:03下载
- 积分:1
-
Optimization Methods Ecuador gradient method
最优化方法 共厄梯度法-Optimization Methods Ecuador gradient method
- 2022-08-06 23:46:10下载
- 积分:1
-
数值分析常用算法编程,文件不是很大,可能有一些错误,大家原谅...
数值分析常用算法编程,文件不是很大,可能有一些错误,大家原谅-numerical analysis algorithm commonly used programming, documentation is not great, there may be some mistakes, we forgive
- 2023-07-10 19:45:03下载
- 积分:1