


下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(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)益歸上傳用戶所有。
- 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ì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 電子商務(wù)物流服務(wù)合同協(xié)議書(shū)
- 全新贖樓合同
- 林業(yè)碳匯項(xiàng)目開(kāi)發(fā)合作合同
- 關(guān)于合同簽訂的往來(lái)文書(shū)范例集
- 購(gòu)銷(xiāo)合同書(shū)集合
- 《稅率》(教學(xué)設(shè)計(jì))-2024-2025學(xué)年六年級(jí)下冊(cè)數(shù)學(xué)人教版
- 四川大學(xué)《城市設(shè)計(jì)Ⅰ》2023-2024學(xué)年第二學(xué)期期末試卷
- 河南農(nóng)業(yè)大學(xué)《電子商務(wù)網(wǎng)絡(luò)安全》2023-2024學(xué)年第二學(xué)期期末試卷
- 廣西培賢國(guó)際職業(yè)學(xué)院《試驗(yàn)設(shè)計(jì)與分析》2023-2024學(xué)年第二學(xué)期期末試卷
- 湖南涉外經(jīng)濟(jì)學(xué)院《畢業(yè)設(shè)計(jì)展示》2023-2024學(xué)年第二學(xué)期期末試卷
- 2024年法律職業(yè)資格考試(試卷一)客觀題試卷與參考答案
- 高考化學(xué)一輪復(fù)習(xí)課件微專題19 電解質(zhì)溶液圖像分析
- 2024年中考語(yǔ)文復(fù)習(xí)分類必刷:非連續(xù)性文本閱讀(含答案解析)
- 全國(guó)川教版信息技術(shù)八年級(jí)下冊(cè)第一單元第3節(jié)《打印展示作品》教學(xué)設(shè)計(jì)
- 現(xiàn)代家譜名人錄范文
- 課件:舉手意識(shí)課件講解
- 中考體育培訓(xùn)合同
- 固定式、車(chē)載式、便攜式反無(wú)人機(jī)實(shí)施方案
- 美術(shù)基礎(chǔ)試題庫(kù)含答案
- 鄉(xiāng)村研學(xué)旅行方案
- 《養(yǎng)老機(jī)構(gòu)認(rèn)知障礙照護(hù)專區(qū)設(shè)置與服務(wù)規(guī)范》
評(píng)論
0/150
提交評(píng)論