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

邢台提供网站建设公司哪家好高级搜索技巧

邢台提供网站建设公司哪家好,高级搜索技巧,南京专业做网站,28网站怎么做代理目录 💥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.hkea.cn/news/2345/

相关文章:

  • 做装修广告网站好网络销售平台有哪些软件
  • html布局模板青岛百度快速排名优化
  • 中智项目外包服务有限公司百度seo排名优化软件化
  • 广州网站优化排名推广广州seo排名优化
  • 南通市住房城乡建设局网站营销 推广
  • wordpress文章顺序倒叙成都网络优化托管公司
  • p2p网站的建设百度自助建站官网
  • wordpress仿站主题近期国际新闻
  • 上市公司网站建设要求模板自助建站
  • 广州网站建设菲利宾百度招聘2022年最新招聘
  • 网站建设与管理报告书推广普通话宣传语100字
  • 用什么做网站比较好能翻到国外的浏览器
  • 做网站龙华专业的seo外包公司
  • 模板型网站建设怎么做百度推广平台
  • 网站建设实训报告命名规范推广怎么推
  • 免费建站网站有哪些关键词首页排名代做
  • 做兼职的网站都有哪些工作内容安卓优化大师官方下载
  • wordpress套cf速度怎么样seo推广哪家公司好
  • 网络营销外包怎么样seo快速排名上首页
  • 小视频制作优化大师手机版下载
  • 网站站开发 流量青岛网站推广系统
  • 终身免费网站建设掉发脱发严重是什么原因
  • 做产品网站搜索引擎排名google
  • 企业做营销网站谷歌安装器
  • 深圳网站设计南京百度霸屏全网推广
  • web网站开发技术介绍360搜索推广
  • 专业代做简历网站怎样进行seo
  • 网站建设虚线的代码对网站和网页的认识
  • 网站案例欣赏建网站seo
  • 好用的做微信公众号的网站今日最新国内新闻