当前位置: 首页 > news >正文

邢台提供网站建设公司哪家好和业务多一样的平台

邢台提供网站建设公司哪家好,和业务多一样的平台,响应式旅游网站模板下载,学生做兼职哪个网站目录 💥1 概述 📚2 运行结果 🎉3 参考文献 👨‍💻4 Matlab代码 💥1 概述 A*(念做:A Star)算法是一种很常用的路径查找和图形遍历算法。它有较好的性能和准确度。本文…

    目录

💥1 概述

📚2 运行结果

🎉3 参考文献

👨‍💻4 Matlab代码

💥1 概述

A*(念做:A Star)算法是一种很常用的路径查找和图形遍历算法。它有较好的性能和准确度。本文使用 A* 搜索算法来优化无线传感器节点网络的平均电池寿命。​​

📚2 运行结果

主函数部分代码:

close all;
clear;
clc;
%-------------------------------
%Number of Nodes in the fieldn=200;
%n=input('Enter the number of nodes in the space : '); 
%Energy Model (all values in Joules)
%Initial Energy 
Eo=0.1;
%Eo=input('Enter the initial energy of sensor nJ : ');
%Field Dimensions - x and y maximum (in meters)
% xm=input('Enter x value for area plot : ');
% ym=input('Enter y value for area plot : ');  
xm=100;
ym=100;
​
%x and y Coordinates of the Sink
sink.x=1.5*xm;
sink.y=0.5*ym;
​
%Optimal Election Probability of a node
%to become cluster head
p=0.2;
​
%Eelec=Etx=Erx
ETX=50*0.000000001;
ERX=50*0.000000001;
%Transmit Amplifier types
Efs=10*0.000000000001;
Emp=0.0013*0.000000000001;
%Data Aggregation Energy
EDA=5*0.000000001;
​
%Values for Hetereogeneity
%Percentage of nodes than are advanced
m=0.5;
%\alpha
a=1;
​
%maximum number of rounds
%rmax=input('enter the number of iterations you want to run : '); 
rmax=200;
%------------------
​
%Computation of do
do=sqrt(Efs/Emp);
​
%Creation of the random Sensor Network
figure(1);
hold off;
for i=1:1:nS(i).xd=rand(1,1)*xm;XR(i)=S(i).xd;S(i).yd=rand(1,1)*ym;YR(i)=S(i).yd;S(i).G=0;%initially there are no cluster heads only nodesS(i).type='N';temp_rnd0=i;%Random Election of Normal Nodesif (temp_rnd0>=m*n+1) S(i).E=Eo;S(i).ENERGY=0;plot(S(i).xd,S(i).yd,'o-r');hold on;end%Random Election of Advanced Nodesif (temp_rnd0<m*n+1)  S(i).E=Eo*(1+a);S(i).ENERGY=1;plot(S(i).xd,S(i).yd,'+');hold on;end
end
​
S(n+1).xd=sink.x;
S(n+1).yd=sink.y;
plot(S(n+1).xd,S(n+1).yd,'o', 'MarkerSize', 12, 'MarkerFaceColor', 'r');
figure(1);  
% figure(1)
%  plot(o1,o2,'^','LineWidth',1, 'MarkerEdgeColor','k', 'MarkerFaceColor','y', 'MarkerSize',12);
%    hold on
%First Iteration
%counter for CHs
countCHs=0;
%counter for CHs per round
rcountCHs=0;
cluster=1;
​
countCHs;
rcountCHs=rcountCHs+countCHs;
flag_first_dead=0;
​
for r=0:1:rmaxr;
​%Operation for epochif(mod(r, round(1/p) )==0)for i=1:1:nS(i).G=0;S(i).cl=0;endend

🎉3 参考文献

[1]梁艺凡,谭丽,冯挺.A~*进路搜索算法的研究与实现[J].铁道标准设计,2013,No.613(02):117-119+127.

部分理论引用网络文献,若有侵权联系博主删除。

http://www.rdtb.cn/news/21372.html

相关文章:

  • h5 php mysql网站开发百度搜索网页版
  • 网站建设中的主要功能中国没有限制的搜索引擎
  • wordpress向小程序获取数据长沙seo优化首选
  • 怎么利用源码做网站亚马逊seo关键词优化软件
  • 北京网站建设降龙网络百度seo关键词排名查询
  • 建站seo课程百度推广怎么联系
  • wordpress app源码电脑系统优化软件十大排名
  • 辽宁网站推广国外网站设计
  • 太原谁家网站做的好营销qq下载
  • 国内做的比较大的外贸电商网站百度推广关键词怎么设置好
  • 网站怎么做移动图片不显示搜索引擎优化的主要手段
  • 成品免费ppt网站seo关键词优化报价
  • 怎么用html做百度首页网站学seo需要学什么专业
  • 深圳网站建设 公司爱站网站长百度查询权重
  • 佛山新网站建设服务个人推广app的妙招
  • 建筑公司网站首页网络营销方式有哪些分类
  • 茂名模板建站代理信息流广告公司一级代理
  • 如何做网站的逻辑结构图神马移动排名优化
  • pdf做电子书下载网站网店seo是什么意思
  • lnmp怎么做网站seo网站优化流程
  • 泸州免费做网站淘宝指数入口
  • 个人养老金制度的利弊灰色行业seo大神
  • 郑州建设公司网站泉州关键词排名工具
  • 龙岗网站建设培训惠州优化怎么做seo
  • 温州微网站制作电话营销公关
  • 怎么做网站的寄生免费网站制作平台
  • 那个网站可以做家具效果图站长平台网站
  • 企业网站建设是什么广州做seo的公司
  • 微信怎么做网站好口碑的关键词优化
  • 苏州网站建设制作网上推广app怎么做