下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年鷹潭大客車從業(yè)資格證考試
- 人教A版高中數(shù)學(必修第一冊)同步講義 1.2集合間的基本關系(原卷版)
- 高考物理一輪復習課時練習 第9章第2練 靜電場中能的性質(zhì)(含詳解)
- 河南省周口市河南省基礎教育教學研究院(普通合伙)等2校2022-2023學年高一上學期期末數(shù)學試卷(解析)
- 2024年鈮酸鋰、鉭酸鋰單晶項目建議書
- 《 當代蒙古族戲劇批評研究》范文
- 2024年電動飛機項目發(fā)展計劃
- 2024年電波特性測試儀器項目合作計劃書
- 2024年磁懸浮軸承渦輪膨脹機項目發(fā)展計劃
- 2024年醫(yī)用傳感器項目發(fā)展計劃
- 供應商、承包商檔案
- 研究生數(shù)學建模經(jīng)驗分享(景傳奇)課件
- 課題中期報告3500字
- 衛(wèi)浴五金產(chǎn)品常見故障及處理方法
- 保護洱海課件
- 子宮脫垂講稿
- (完整版)英語四線格(A4打印)
- 生產(chǎn)交接班記錄表
- (售后服務方案)物料、設備采購售后服務方案
- 蘇教牛津譯林版初中英語八年級上冊Unit3Reading課件1
- 人教版八年級上冊美術《第1課造型的表現(xiàn)力》(一等獎課件)
評論
0/150
提交評論