首页 行业 电信     /    基于dijkstra的低耗路由matlab仿真

基于dijkstra的低耗路由matlab仿真

上传者: simao00 | 上传时间:2024/8/21 4:46:22 | 文件大小:4KB | 文件类型:zip
基于dijkstra的低耗路由matlab仿真
Inputs:[AorV]EitherAorVwhereAisaNxNadjacencymatrix,whereA(I,J)isnonzeroifandonlyifanedgeconnectspointItopointJNOTE:WorksforbothsymmetricandasymmetricAVisaNx2(orNx3)matrixofx,y,(z)coordinates[xyCorE]EitherxyorCorE(orE3)wherexyisaNx2(orNx3)matrixofx,y,(z)coordinates(equivalenttoV)NOTE:onlyvalidwithAasthefirstinputCisaNxNcost(perhapsdistance)matrix,whereC(I,J)containsthevalueofthecosttomovefrompointItopointJNOTE:onlyvalidwithAasthefirstinputEisaPx2matrixcontainingalistofedgeconnectionsNOTE:onlyvalidwithVasthefirstinputE3isaPx3matrixcontainingalistofedgeconnectionsinthefirsttwocolumnsandedgeweightsinthethirdcolumnNOTE:onlyvalidwithVasthefirstinput[SID](optional)1xLvectorofstartingpoints.Ifunspecified,thealgorithmwillcalculatetheminimalpathfromallNpointstothefinishpoint(s)(automaticallysetsSID=1:N)[FID](optional)1xMvectoroffinishpoints.Ifunspecified,thealgorithmwillcalculatetheminimalpathfromthestartingpoint(s)toallNpoints(automaticallysetsFID=1:N)Outputs:[costs]isanLxMmatrixofminimumcostvaluesfortheminimalpaths[paths]isanLxMcellcontainingtheshortestpatharrays[showWaitbar](optional)ascalarlogicalthatinitializesawaitbarifnonzeroNote:Iftheinputsare[A,xy]or[V,E],thecostisassumedtobe(andiscalculatedas)thepointtopointEuclideandistanceIftheinputsare[A,C]or[V,E3],thecostisobtainedfromeithertheCmatrixorfromtheedgeweightsinthe3rdcolumnofE3Example:%Calculatethe(allpairs)shortestdistancesandpathsusing[A,C]inputsn=7;A=zeros(n);xy=10*rand(n,2)tri=delaunay(xy(:,1),xy(:,2));I=tri(:);J=tri(:,[231]);J=J(:);IJ=I+n*(J-1);A(IJ)=1a=(1:n);b=a(ones(n,1),:);C=round(reshape(sqrt(sum((xy(b,:)-

文件下载

资源详情

[{"title":"(2个子文件4KB)基于dijkstra的低耗路由matlab仿真","children":[{"title":"license.txt <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"dijkstra.m <span style='color:#111;'>10.63KB</span>","children":null,"spread":false}],"spread":true}]

评论信息

  • qq_37500909:
    感谢分享!2019-04-29
  • qq_37500909:
    感谢分享!2019-04-29

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明