-
消息机制实现Exe程序间的数据交换
VC++通过消息机制实现Exe程序间的数据交换,一个简单的示例,初学者可以看下。
- 2022-01-26 02:47:58下载
- 积分:1
-
一个用来计算每年1月1号星期几的c小程序!实现比较简单,其实就是计算闰年的小程序,不过小程序可能有点小bug,希望大家包含!...
一个用来计算每年1月1号星期几的c小程序!实现比较简单,其实就是计算闰年的小程序,不过小程序可能有点小bug,希望大家包含!-one used to calculate the annual January 1 several weeks of c small program! Achieving a relatively simple calculation of leap year is actually a small, but a small program might have a small bug, we hope that contain!
- 2022-04-29 02:07:05下载
- 积分:1
-
蚁群算法解决TSP旅游商问题
function [R_best,L_best,L_ave,Shortest_Route,Shortest_Length]=ACATSP(C,NC_max,m,Alpha,Beta,Rho,Q)%%-------------------------------------------------------------------------%% 主要符号说明%% C n个城市的坐标,n×2的矩阵%% NC_max 最大迭代次数%% m 蚂蚁个数%% Alpha 表征信息素重要程度的参数%% Beta 表征启发式因子重要程度的参数%% Rho 信息素蒸发系数%% Q 信息素增加强度系数%% R_best 各代最佳路线%% L_best 各代最佳路线的长度%%========================================================================= %%第一步:变量初始化n=size(C,1);%n表示问题的规模(城市个数)D=zeros(n,n);%D表示完全图的赋权邻接矩阵for i=1:nfor j=1:nif i~=jD(i,j)=((C(i,1)-C(j,1))^2+(C(i,2)-C(j,2))^2)^0.5;elseD(i,j)=eps; %i=j时不计算,应该为0,但后面的启发因子要取倒数,用eps(浮点相对精度)表示endD(j,i)=D(i,j); %对称矩阵endend%{1.C就是城市坐标 x y城市1 0
- 2022-08-25 13:59:52下载
- 积分:1
-
经典排序算法
经典排序算法-Classical sorting algorithm
- 2022-02-04 23:33:21下载
- 积分:1
-
C实现RS编码
用C实现RS码纠错仿真
RS码的编码程序 编码效率高,且经实际验证符合RS纠错码的要求-RS code using C realize simulation RS
error correction code encoding procedure coding efficient and practical
to verify compliance with the requirements of RS error-correcting codes
- 2023-05-05 14:10:03下载
- 积分:1
-
高斯在 c + + 代码
高斯代码段 ecuaciones lineales。1 2 32 2 33 3 3
- 2022-06-21 10:16:22下载
- 积分: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
-
高斯消去法,解四元一次方程组
高斯消去法,解四元一次方程组-Gaussian elimination method, solutions of quaternion linear equation group. . . . . . . . . . . . . . .
- 2022-11-25 01:00:03下载
- 积分:1
-
用C编的龙贝格算法函数,程序简单明了,可直接使用,也可较快地修改应用于MATLAB中。...
用C编的龙贝格算法函数,程序简单明了,可直接使用,也可较快地修改应用于MATLAB中。-Rhomberg compiled with the C algorithm is a function, the program simple and clear, can be used directly, but also quickly modify the application in MATLAB.
- 2022-02-22 01:26:07下载
- 积分:1
-
This code is used to find shortest path by using dijkstra algorithm
This code is used to find shortest path by using dijkstra algorithm
- 2023-01-01 01:20:12下载
- 积分:1