-
二分搜索CPP算法代码
二分查找又称折半查找,优点是比较次数少,查找速度快,平均性能好;其缺点是要求待查表为有序表,且插入删除困难。因此,折半查找方法适用于不经常变动而查找频繁的有序列表。首先,假设表中元素是按升序排列,将表中间位置记录的关键字与查找关键字比较,如果两者相等,则查找成功;否则利用中间位置记录将表分成前、后两个子表,如果中间位置记录的关键字大于查找关键字,则进一步查找前一子表,否则进一步查找后一子表。重复以上过程,直到找到满足条件的记录,使查找成功,或直到子表不存在为止,此时查找不成功。
- 2022-03-20 05:11:34下载
- 积分:1
-
In this note we make a critical comparison of some matlab programs for the digit...
详细表述了分数阶傅立叶变换的离散实现,将现有的算法进行比较。-In this note we make a critical comparison of some matlab programs for the digital computation of the
fractional Fourier transform that are freely available and we describe our own implementation that lters
the best out of the existing ones. Two types of transforms are considered: First the fast approximate
fractional Fourier transform algorithm for which two algorithms are available. The method is described
in H.M. Ozaktas, M.A. Kutay, and G. Bozdagi. Digital computation of the fractional Fourier transform.
IEEE Trans. Signal Process., 44:2141{2150, 1996. There are two implementations: one is written by
A.M. Kutay the other is part of package written by J. O Neill. Secondly the discrete fractional Fourier
transform algorithm described in the master thesis C . Candan. The discrete fractional Fourier transform,
Bilkent Univ., 1998 and an algorithm described by S.C. Pei, M.H. Yeh, and C.C Tseng: Digital fractional
Fourier transform base
- 2022-02-09 21:16:41下载
- 积分:1
-
巴特渥斯滤波器设计(butterworth),根据设计参数需要,设计出符合要求的滤波器,并提供示意图...
巴特渥斯滤波器设计(butterworth),根据设计参数需要,设计出符合要求的滤波器,并提供示意图-Bateoushi Filter Design (3.8mA), according to the design parameters, designed to meet the requirements of filters, and to provide diagram
- 2022-02-04 01:46:08下载
- 积分:1
-
测试高 led 和低led
这个软件描述C语言用 16f877 触发一个LED,与所有配置的计时器和寄存器。
- 2022-11-14 10:40:03下载
- 积分:1
-
散列一条信息的代码
这是基于叉 256 的哈希函数的代码。它生成的代码生成的哈希值或指纹图谱的一条消息。
- 2023-02-19 22:35:04下载
- 积分:1
-
对数回归方程logarithmregress.cs方程模型y = * LN…
对数回归方程 LogarithmRegress.cs
方程模型为 Y=a*LnX+b
public override double[] buildFormula()
得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。
public override double forecast(double x)
预测函数,根据模型得到预测结果。
public override double computeR2()
计算相关系数(决定系数),系数越接近1,数据越满足该模型。
-Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
- 2022-08-31 23:15:03下载
- 积分:1
-
大鱼吃小鱼游戏VC源码
《大鱼吃小鱼》游戏是目前在白领阶层非常流行的一款休闲类游戏,在看似风平浪静的大海里,却隐藏着与人类世界相同的危机,海底生物在弱肉强食的竞争下,不但得觅食以填饱肚子,更重要的是学会保护自己!在休闲的同时让你了解一些海洋生物,同时也让你掌握生存能力,真是一举两得。本代码是用VC6.0MFC实现,能使玩家在娱乐的同时更好的学习该游戏的设计思想。
- 2022-01-24 18:18:26下载
- 积分:1
-
OLED 64X48点阵驱动程序
OLED 64X48点阵驱动程序,包括各种借口SPI,I2C,等等,是经过实测可以用的代码,不明的地方可以问我。 是开发OLED的屏的实用工具。最少50字,应该够了吧。各种驱动都有的。
- 2022-05-18 12:46:32下载
- 积分:1
-
A Reader Anti-collision Protocol for RFID-Enhanced Wireless Sensor Networks
资源描述Abstract Considering rapid developments in the technologies of both radio-frequency identification
(RFID) systems and wireless sensor networks (WSN), an integration of the two
technologies may lead to the formation of an RFID-enhanced WSN which would possess
improved functions and capabilities. In the RFID-enhanced WSN, many reader-enhanced
nodes have increasingly been employed. In such networks, RFID data contains a lot of duplication,
because the same tag may be read multiple times, and collision may occur among
readers, while energy constraints are also a serious problem. These three could in turn cause
serious problems. In this paper, we have proposed our CSMA-based algorithm since it is light,
efficiently minimizes all kinds of reader collision, and eliminates the duplicate data. For this
purpose, we have used a separate control channel and a tag ID forwarding mechanism with a
special co
- 2023-05-06 18:20:03下载
- 积分:1
-
recorrer una 玛特
数组也可以是不同的数据类型如 char,浮法、 双等......数组在 C + + 中存储为载体在连续的内存位置。
通常一个想法是矩阵是作为板,但内部处理是其定义意味着,向量的向量,ie 向量是一个后面其他在一起。
访问矩阵的元素的方法使用你的名字,指示两个下标在括号中。
- 2022-03-12 11:47:56下载
- 积分:1