E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email:...

15
E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: [email protected] Office Hours: Tue. 1:00pm - 3:00pm or by appointment 1

Transcript of E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email:...

Page 1: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

E&CE 418: Tutorial-10

Instructor: Prof. Xuemin (Sherman) ShenTA: Ning Zhang

Email: [email protected] Hours: Tue. 1:00pm - 3:00pm or by appointment

1

Page 2: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 1

Page 3: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 1

Page 4: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

The number shown in the following figure is the probability of the link failing during the lifetime of a virtual circuit from node A to node B. It is assumed that links fail independently of each other.(a) Find the most reliable path from A to B, i.e., the path for which the probability that all links stay intact during the virtual circuit’s lifetime is maximal.(b) Find the second most reliable path from A to B which does not share any link belonging to the path found in (a).

Problem 2

Page 5: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.
Page 6: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

The Bellman-Ford algorithm:

1. Label each node i with (di, j) where di is the distance from node i to the destination node through the neighboring node j.

2. Initialization: label node i with (di0,.) where

3. Shortest distance labeling of all nodes: for each successive run h > 0, determine j which minimizes di

h+1=d(i,j)+djh, and update label at each

node i with (dih+1,j).

4. Repeat step 3 until no change of any di occurs.

Page 7: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.
Page 8: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

(b) Find the second most reliable path from A to B which does not share any link belonging to the path found in (a).

The second most reliable path from A to B that does not share any link belonging to the shortest path can be found by: first remove all links passing by the shortest path from the diagram, then find the shortest path from the residue diagram. The residue diagram is as follows:

Page 9: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

From the table, we can the second shortest path is A → 5 → 3 → 2 → B.

Page 10: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 4

Page 11: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 4

Page 12: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 4

Page 13: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 4

Page 14: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Problem 3

Page 15: E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment.

Thanks !