-
c++词法分析
使用c++ STL,对c或c++进行词法分析。
在Windows下编写的,其他平台需要改文件流
基本上能够进行正确的分析,没有进行注释符号的处理,需要的就不要下载了。
&
- 2023-01-17 00:25:05下载
- 积分:1
-
基于VC的FFT算法
资源描述
Design
a program to implement the 1-D FFT algorithm.
Input:
a vector. Get the testing data in file ‘Project_2_test’.
Output:
a vector, which is the discrete Fourier transform of the input.
For
example:
Input:
3 8 10 12
Output:
33.0000+0.0000i -7.0000+4.0000i -7.0000+0.0000i -7.0000-4.0000i
Requirements:
- 2023-07-23 23:40:04下载
- 积分:1
-
三节点有限元程序
二维三节点有限元计算程序
输入单元及节点信息,计算结构位移。最大单元数5000,最大节点数2000,能够处理集中力、体积力、已知位移等荷载。
采用迭代、回代算法计算线性方程组。能够生成节点的位移、应力及应变值,应力包括个应力分量及主应力值和主应力方向
- 2022-05-18 22:06:35下载
- 积分:1
-
随机数产生源码
自己写的随机数产生源码,1. 使用乘同余法产生[0,1]区间上均匀分布的随机数2.基于[0,1]区间上均匀分布的随机数利用反变换法生成:连续随机变量:均匀分布随机变量、指数分布随机变量、三角分布的随机变量、正态分布的随机变量离散随机变量:离散均匀分布、泊松分布
- 2023-05-22 14:35:03下载
- 积分:1
-
高级的加密标准
这是 AES (高级加密标准) 的一个实现,应用程序加密文本使用 AES 加密的数据,ratlib 是一个加密库,允许您加密文件与 AES、 RC4 和茶的算法
- 2022-03-12 06:33:02下载
- 积分:1
-
蚁群算法源码
用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;用c++实现了蚁群算法;
- 2023-04-17 17:40:04下载
- 积分:1
-
一个用vc编写的调度算法程序
一个用vc编写的调度算法程序-vc prepared with a scheduling algorithm procedures
- 2022-07-07 14:27:58下载
- 积分: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
-
Plane finite element program, very useful for beginners
平面有限元计算程序,对于初学者非常有用的-Plane finite element program, very useful for beginners
- 2023-01-20 09:15:04下载
- 积分:1
-
多项式相加减 求导
多项式相加减 求导-Polynomials modified derivative
- 2022-06-16 14:28:38下载
- 积分:1