-
leach算法
该算法基本思想是:以循环的方式随机选择蔟首节点,将整个网络的能量负载平均分配到每个传感器节点中,从而达到降低网络能源消耗、提高网络整体生存时间的目的。仿真表明,与一般的平面多跳路由协议和静态分层算法相比,LEACH协议可以将网络生命周期延长15%。LEACH在运行过程中不断的循环执行蔟的重构过程,每个蔟重构过程可以用回合的概念来描述。每个回合可以分成两个阶段:蔟的建立阶段和传输数据的稳定阶段。为了节省资源开销,稳定阶段的持续时间要大于建立阶段的持续时间。蔟的建立过程可分成4个阶段:蔟首节点的选择、蔟首节点的广播、蔟首节点的建立和调度机制的生成。
- 2022-03-24 03:15:23下载
- 积分:1
-
文件MD5 生产算法
char *MD5_file (char *path, int md5_len)
{
FILE *fp = fopen (path, "rb");
MD5_CTX mdContext;
int bytes;
unsigned char data[1024];
char *file_md5;
int i;
if (fp == NULL) {
fprintf (stderr, "fopen %s failed
", path);
return NULL;
}
MD5Init (&mdContext);
while ((bytes = fread (data, 1, 1024, fp)) != 0)
{
MD5Update (&mdContext, data, bytes);
}
MD5Final (&mdContext);
file_md5 = (char
- 2022-07-11 22:12:17下载
- 积分:1
-
Classification algorithm based on support vector machine, after test results, we...
基于支持向量机分类算法,经试验效果不错,取得了很好的分类效果-Classification algorithm based on support vector machine, after test results, well, and achieved very good classification results
- 2022-03-05 15:28:17下载
- 积分:1
-
AC-BM算法的实现的压缩包,很流行的字符串匹配算法,已经测试,-AC-BM algorithm for the realization of the compressed, the very popular string matching algorithm has been tested,
- 2022-02-02 16:56:07下载
- 积分:1
-
calculating the determinant of the matrix source
计算矩阵行列式值的源程序-calculating the determinant of the matrix source
- 2022-02-04 18:31:22下载
- 积分:1
-
数值分析中的高斯消去法解方程组问题,含输入输出界面。
数值分析中的高斯消去法解方程组问题,含输入输出界面。-Numerical analysis of Gaussian elimination solution of the problem equations, including input and output interface.
- 2022-07-04 00:10:45下载
- 积分:1
-
C常用数值算法集,很有用,同时也是学习C的好帮手。
C常用数值算法集,很有用,同时也是学习C的好帮手。-C commonly used numerical algorithm sets, useful, but also a good learning C helper.
- 2022-06-17 01:34:03下载
- 积分:1
-
利用自动机上加语义动作实现对所有常数的正确处理以及显示其结果。...
利用自动机上加语义动作实现对所有常数的正确处理以及显示其结果。-The use of automatic machines plus semantic actions to achieve the proper handling of all constants and display the results.
- 2022-01-28 03:16:49下载
- 积分:1
-
c语言五子棋功能的实现
设计五子棋的棋盘,绘制棋子,清除棋子,以及能够按照游戏的规则进行游戏过程,程序能够判断键盘的输入的键值,如果用上下左右的方向键,就能在键盘移动。
- 2022-06-20 00:52:49下载
- 积分:1
-
fft111算法实现通过对相应参数的人机界面对话输入绘制出相应的采样图及频谱图
fft111算法实现通过对相应参数的人机界面对话输入绘制出相应的采样图及频谱图-fft111 algorithm corresponding parameters of the man-machine interface dialogue draw the corresponding input sampling plan and the spectrum
- 2022-02-05 00:18:30下载
- 积分:1