-
二叉树的遍历
二叉树的多种遍历方法(递归、非递归)1、新建二叉树、插入树节点。2、前序遍历、后序遍历、中序遍历、层序遍历。3、递归及非递归实现两种方法。4、使用C++5、树节点中最大值、最小值。
- 2022-05-06 12:09:41下载
- 积分:1
-
一个计算光子晶体的程序,Fortran语言编写,学习光子晶体方向的很好的参考程序...
一个计算光子晶体的程序,Fortran语言编写,学习光子晶体方向的很好的参考程序-A procedure for calculating the photonic crystal, Fortran languages, study of photonic crystal the direction of a good reference procedures
- 2022-01-25 15:34:56下载
- 积分:1
-
ROMBERG加速算法的实现,同时包含梯形方法等,通过比较可以明显看出加速效果。...
ROMBERG加速算法的实现,同时包含梯形方法等,通过比较可以明显看出加速效果。-Romberg algorithm to accelerate the realization, at the same time contains the trapezoidal method, and so is evident by comparing the accelerated effects.
- 2022-07-27 20:31:08下载
- 积分:1
-
原题:编写一个子程序NewTon(float x0,float eps,float x1)。它的功能是用牛顿迭代法求f(x)=x*x*x...
原题:编写一个子程序NewTon(float x0,float eps,float x1)。它的功能是用牛顿迭代法求f(x)=x*x*x-2x*x+4x+1在x=0附近的一个实根。若迭代成功,则返回费0值;否则,返回0。-original title : the preparation of a subroutine NewTon (x0 float, float eps, float x1). Its function is to use Newton"s iterative method for f (x) = x* x* x-2x 4x* x 1 x = 0 in the vicinity of a real roots. If successful iteration, the returned value fees 0; Otherwise, the return 0.
- 2022-10-05 09:25:03下载
- 积分:1
-
大数据处理利器 提升普通map的性能
修改普通map,提升性能对于c++程序来说 map的使用无处不在。影响程序性能的瓶颈也往往是map的性能。尤其在大数据情况下,以及业务关联紧密而无法实现数据分发和并行处理的情况。map的性能就成了最关键的技术。比如:ip表、mac表,电话号码表、身份证号码表的查询、病毒木马的特征码的云查杀等等。stl库的map采用二分查找,性能最差。Google的哈希map性能和内存目前是最优的,但是有重复碰撞的机率。我在电信行业和信息安全行业里的工作经历发现,目前网络上的哈希算法都在查询速度上远远无法满足日趋增长的网络大数据要求。因此产生了自己写算法的想法。现在我把自己的算法发布出来。大家可以测试对比发现,我的算法属于零碰撞的几率,但是性能比哈希算法还优。声明:该代码不能用于商业用途,只能用于科学研究。
- 2022-12-29 05:00:04下载
- 积分:1
-
PASCAL编译器
项目描述:该项目源代码用C++语言描述,针对扩充的PASCAL文法,实现了对扩充PL0源程序进行词法分析、语法分析、语义分析、代码生成以及最终解释执行的编译器的编写。并完成了错误处理和符号表管理等程序。该工程可以将符合文法的正确程序进行编译得到结果,也可以对错误的程序进行精确报错。
- 2023-03-01 18:25:04下载
- 积分:1
-
交通仿真(排队论)小程序
This is the project of my course in the USA:
Customers
arrive at a service station (with a single server) according to the Poisson
process with a mean arrival rate of lambda = 0.3 (customers/min). Each customer
waits in queue (if present), proceeds to receive service upon his/her turn, and
departs the system when the service is completed. The service time is uniformly
distributed between 2.5 and 4.5 minutes. On each day, the service station is
open for two hours. Any customers in queue at the end of work hours are served
before closing the service station for the day. Use simulation (do 100
simulation runs) to determine
- 2023-02-02 14:55:04下载
- 积分:1
-
自编FFT谱分析中的栅栏效应演示
自编FFT谱分析中的栅栏效应演示-self FFT spectrum analysis of the effect of the fence demonstration
- 2022-12-29 17:05:03下载
- 积分:1
-
解小数问题(c实现)
解小数问题(c实现)-Solutions decimal (c realization)
- 2022-06-17 22:31:09下载
- 积分:1
-
C语言验证歌德巴赫猜想
C语言验证歌德巴赫猜想-C language test Goldbach conjecture
- 2022-07-21 01:02:04下载
- 积分:1