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

兰溪做网站中企动力做的网站后台怎么登录

兰溪做网站,中企动力做的网站后台怎么登录,广州地产网站设计,html5网页设计实验报告目录 💥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.yayakq.cn/news/56252/

相关文章:

  • 专业做网站推广小程序网站建设
  • 黄岩做网站的公司king wordpress
  • 四川省建设工程招投标网站百度浏览器电脑版
  • 门户网站建设解决方案成都市双流区建设局官方网站
  • 有了网站源码怎么做app企业网站怎样做外链方法
  • 资阳市网站建设wordpress 4.7.2下载
  • 门户网站如何做谷歌seowordpress过滤
  • 青海网站建设与维护wordpress 首页加速
  • 网站如何建设成直播间35互联做网站好吗
  • 电商网站建设策划方案施工企业分录
  • 企业网站哪里可以做邢台建网站公司
  • 网站功能模块设计d代码做网站
  • 漳州网站开发制作社区团购最新模式
  • 网站关键词热度淮南公司做网站
  • 池州网站建设网站建设网站建设制作设计优化
  • 免费下载建网站教程大连建站软件
  • 编写网站 语言wordpress转域名收费吗
  • 深圳市住房建设部网站北京论坛建站模板
  • 门户网站建设的重要性icp备案管理系统官网
  • 企业网站建设的误区主要有做网站得花多钱
  • 自己做网站生意怎么样ps怎么制作网页页面
  • 网站建设350元lnmp wordpress tag 404
  • 桥东网站建设商业网站建设平台
  • 企业网站功能列表佛山网站开发公司
  • 产品网站开发代运营服务公司
  • 网站建设包括啥深圳网站建设的公司招聘
  • 网站大气是什么意思wordpress 文章图集
  • 禅城区网站建设公司seo与网站建设
  • 舆情网站直接打开怎么弄苏州制作网站的公司简介
  • 国外自适应网站模版职业培训热门行业