Question

In the network below, let us suppose that the link between nodes ‘k’ and ‘m’ has been failed. Using your knowledge of link-state routing, calculate the shortest path from node ‘i’ to node ‘j’ before failure and after failure. Also, mention the costs from node ‘i’ to node ‘j’ before failure and after failure.

[Hint = For example, the cost from node ‘i’ to node ‘r’ is 1 and the path is i-r]

m 4 n 5 r 1

0 0
Add a comment Improve this question Transcribed image text
Answer #1

PLEASE LIKE THE SOLUTION

FEEL FREE TO DISCUSS IN COMMENT SECTION

SOLUTION

Solution Dijkstra Algorithm Algorithm 1. S = . 2. Q = V[Source] 3. while Q! =0 (Q = Quene) u= extract Min (Q). s= s= {u}. for

7 (Parent) Nil :> ☺ x Ę ç lable distance 04 - 32 xe & c.noQueue 1. Si 2. Pop i and add adjacent verten and update in distance tableabore 4. Popr asr is min 5. [klm In 6 Popk 7. Pop nREVER And path we trace from parent Parent of j in table is on Parent of m intable is k Parent of k is i (source) So path Sho

So we got that

when path from k to m exist

Shortest Distance = 5 and path = i -> k -> m -> j

when path from k to m does not exist

Shortest Distance = 10 and path = i -> r -> q -> p -> n -> j

Add a comment
Know the answer?
Add Answer to:
In the network below, let us suppose that the link between nodes ‘k’ and ‘m’ has...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT