


下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、第四章P450-22: Consider the fol lowing network With the indicated link costs, use Di jkstra s shortest-path algorithm to compute the shortest path from x to all network nodes Show hov/ the algor ithm works by computing a tabIeAnswerProb Iem 22StepND (s), p (s)D(t)fp(t)D(u),p( u)D(v),p( v)D(w),p( w)D(y)
2、,p(y )D(z),p(z)0X8OOOO& X6, x6, xOO1xw8OO14, w& X6, xOO2xwyOO15, y14, w7,y3xwyvOO11,v10, v4xwyvu14, u11,vl&y5xwyvut12,t16, t6xwyvuts16, t7xwyvutszRouting Table:DESCOSTNEST HOPX0y6yw6wV7yt11yu10yz16ys12yP451-25: Con sider the net work f ragme nt shown below xhas only two att ached neighbors, w and y.
3、 w has a minimum-cos t path to des tin at i on u of 5, and y has a mini mum-cos t path to u of 6. The comp I e te paths from w and y to tz (and bet wee n w and y) are not shown Al I Iink costs in the network have str ictly positive integer valuesa. Give x* s distance vector for destinations wf y, an
4、d u.b. Gi ve a I ink-cost change for either c(xfw) or c(x, y) such that x wi I I inform i ts neighbors of a new minimum-cost path to as a resuIt of executing the distance-vector algor ithm.c. Gi ve a I i nk-cost change for e i ther c(xfw) or c (x, y) such that “will not i nforin its neighbors of a n
5、ew minimum-cost path to “ as a resuIt of executing the distance-vector algor ithm.AnswerProb Iem 25a. Dx(y) = 5, Dx (w) = 2, Dx(u) = 7b. Fi rst consider what happens if c(x, y) changes If c(x, y) becomesI arger or sma I I er (as long as c (x, y) 0), the leas t cost path from x to u wi I I still have
6、 cos t at I eas t 7. Thus a change in c (x, y) wi I I not cause x to inform its neighbors of any changes Now consider if c (x, w) changesI f c (x, w) =1, then the least-cost path to u cont inues to pass throughw and its cost changes to 5 + ; x wiI I inform its neighbors of this new cost If c(x,w)二 6, then the least cost path now passes through y and has cost 11 ; again x wi I I inform its neighbors of this new costc. Any change
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 杭州中學(xué)分班考數(shù)學(xué)試卷
- 淮安九年級(jí)期末數(shù)學(xué)試卷
- 貴港三模數(shù)學(xué)試卷
- 健康管理師課件講義
- 2025屆河南省洛陽(yáng)市偃師高中物理高一第二學(xué)期期末調(diào)研試題含解析
- 2025-2030年中國(guó)錫鉛焊絲項(xiàng)目投資可行性研究分析報(bào)告
- 健康社區(qū)課件
- 2025年中國(guó)微信營(yíng)銷(xiāo)行業(yè)市場(chǎng)深度調(diào)研分析及投資前景研究預(yù)測(cè)報(bào)告
- 花椒加工廠(chǎng)可行性研究報(bào)告
- 中國(guó)維生素B12行業(yè)市場(chǎng)調(diào)研分析及投資戰(zhàn)略咨詢(xún)報(bào)告
- 呼吸困難的識(shí)別與護(hù)理
- 常用母材與焊材選用表
- 2025年中國(guó)遠(yuǎn)洋海運(yùn)集團(tuán)限公司校園招聘高頻考題難、易錯(cuò)點(diǎn)及模擬試題(共500題)附帶答案詳解
- 熱射病的護(hù)理
- 2025年電子束蒸發(fā)設(shè)備行業(yè)深度研究報(bào)告
- 2025年浙江臨海市交通投資集團(tuán)有限公司招聘筆試參考題庫(kù)附帶答案詳解
- 小學(xué)英語(yǔ)學(xué)科融合教學(xué)心得體會(huì)
- 《高級(jí)工程師施工管理》課件
- 中國(guó)2型糖尿病防治指南(2024版)解讀課件
- 2025-2030中國(guó)不銹鋼材行業(yè)發(fā)展分析及發(fā)展趨勢(shì)與投資前景預(yù)測(cè)研究報(bào)告
- 2025年道路運(yùn)輸安全員核心備考題庫(kù)(含典型題、重點(diǎn)題)
評(píng)論
0/150
提交評(píng)論