計算機網(wǎng)絡第四章作業(yè)_第1頁
計算機網(wǎng)絡第四章作業(yè)_第2頁
計算機網(wǎng)絡第四章作業(yè)_第3頁
全文預覽已結(jié)束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論