计算机网络第四章作业.doc

计算机网络第四章作业.doc

ID:56397676

大小:43.50 KB

页数:3页

时间:2020-06-23

计算机网络第四章作业.doc_第1页
计算机网络第四章作业.doc_第2页
计算机网络第四章作业.doc_第3页
资源描述:

《计算机网络第四章作业.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、第四章P450-22:Considerthefollowingnetwork.Withtheindicatedlinkcosts,useDijkstra’sshortest-pathalgorithmtocomputetheshortestpathfromxtoallnetworknodes.Showhowthealgorithmworksbycomputingatable.zxyVwtus126681483425914AnswerProblem22StepN’D(s),p(s)D(t),p(t)D(u),p(u)D(v),p(v)D(w),p(w)D(y),p(y)D(z),p(z)0x∞∞

2、∞8,x6,x6,x∞1xw∞∞14,w8,x6,x∞2xwy∞15,y14,w7,y18,y3xwyv∞11,v10,v18,y4xwyvu14,u11,v18,y5xwyvut12,t16,t6xwyvuts16,t7xwyvutszytzxvswuRoutingTable:DESCOSTNESTHOPx0y6yw6wv7yt11yu10yz16ys12yP451-25:Considerthenetworkfragmentshownbelow.xhasonlytwoattachedneighbors,wandy.whasaminimum-costpathtodestinationuof5,

3、andyhasaminimum-costpathtouof6.Thecompletepathsfromwandytou(andbetweenwandy)arenotshown.Alllinkcostsinthenetworkhavestrictlypositiveintegervalues.a.Givex’sdistancevectorfordestinationsw,y,andu.b.Givealink-costchangeforeitherc(x,w)orc(x,y)suchthatxwillinformitsneighborsofanewminimum-costpathtouasares

4、ultofexecutingthedistance-vectoralgorithm.c.Givealink-costchangeforeitherc(x,w)orc(x,y)suchthatxwillnotinformitsneighborsofanewminimum-costpathtouasaresultofexecutingthedistance-vectoralgorithm.wxy25AnswerProblem25a.Dx(y)=5,Dx(w)=2,Dx(u)=7b.Firstconsiderwhathappensifc(x,y)changes.Ifc(x,y)becomeslarg

5、erorsmaller(aslongasc(x,y)>0),theleastcostpathfromxtouwillstillhavecostatleast7.Thusachangeinc(x,y)willnotcausextoinformitsneighborsofanychanges.Nowconsiderifc(x,w)changes.Ifc(x,w)=e£1,thentheleast-costpathtoucontinuestopassthroughwanditscostchangesto5+e;xwillinformitsneighborsofthisnewcost.Ifc(x,w)

6、=d>6,thentheleastcostpathnowpassesthroughyandhascost11;againxwillinformitsneighborsofthisnewcost.c.Anychangeinlinkcostc(x,y)willnotcausextoinformitsneighborsofanewminimum-costpathtou.

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。