-
lowercase amount to the amount of capital used in capital letters and lowercase...
小写金额转大写金额 ,用于在大写和小写金额之间进行相互转换,用DELPHI编写,简单实用-lowercase amount to the amount of capital used in capital letters and lowercase interaction between the amount of conversion, prepared using DELPHI, simple and practical
- 2023-05-29 09:20:03下载
- 积分:1
-
一个计算器程序,可以识别算式字符串形式的
一个计算器程序,可以识别算式字符串形式的-a calculator program that can be identified form of a string formula
- 2022-02-24 18:08:11下载
- 积分:1
-
Genetic algorithm c source code, containing the description, but is in English!
遗传算法的c源代码,内含说明,只不过是英文!-Genetic algorithm c source code, containing the description, but is in English!
- 2022-07-08 06:24:04下载
- 积分:1
-
这是一个我亲自开发的拼音和台湾注音输入法,运行很好,效率高.有声调,加入main函数调用py_ime函数即可...
这是一个我亲自开发的拼音和台湾注音输入法,运行很好,效率高.有声调,加入main函数调用py_ime函数即可-This is a development I personally and Taiwan phonetic Pinyin input method, running good, high efficiency. A song. joined the main function call can function py_ime
- 2023-06-14 05:20:03下载
- 积分:1
-
蚁群算法的c++实现方法
蚁群算法的c++实现方法,通过c++实现蚁群算法的基本功能,提供了详细的注释和编码。
- 2022-07-10 02:05:31下载
- 积分:1
-
Johnson 计数器
所谓Johnson 计数器,其实说白了无非就是复杂一点的流水灯实验。流水灯加上了按键控制,流水灯的开启关闭和变化方向在按键的控制下进行。本实例是带停止控制的双向4bit Johnson 计数器,可以通过LED 灯直观的在学习板上进行演示。
- 2022-11-26 12:35:03下载
- 积分:1
-
procedures for the three mixed vector plot calculated using Matlab to achieve
本程序提供三矢量混合积的计算,采用matlab实现-procedures for the three mixed vector plot calculated using Matlab to achieve
- 2022-10-23 12:45:03下载
- 积分:1
-
外推法解微分方程组,并给出实例。外推法首先给丁初始补偿,软件自动决定下一步的步长...
外推法解微分方程组,并给出实例。外推法首先给丁初始补偿,软件自动决定下一步的步长-Extrapolation solution differential equations, and gives examples. First, extrapolation to the small initial compensation, the software automatically decide on the next step of
- 2022-02-04 09:12:58下载
- 积分:1
-
利用TLS-ESPRIT获得二维角度估计值
资源描述利用TLS-ESPRIT获得方位角和仰角的配对估计,无需谱峰搜索,首先利用接收信号协方差矩阵的特征值分解获得信号子空间,然后对信号子空间利用总体最小二乘算法获得一个角度,然后利用信号子空间的旋转不变特性获得另一个配对的角度,从而实现方位角和仰角的配对估计。
- 2022-07-24 16:53:52下载
- 积分: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