Figure 1 Network Consisting Nodes U X V Y W 2 2 Network Illustrated Fig 1 Use Dijkstra S A Q43858288

Figure 1: A network consisting of nodes {U, x, v, y, W, 2} 2. (a) A network is illustrated in Fig. 1. Use Dijkstra’s algorithm to find the shortest paths from node U to all other nodes in the network. Show all intermediate steps. [10 marks) (b) Given a graph G which consists of |N| nodes and El edges. In the worst case, the computation that must be done to compute Dijkstra’s algorithm incurs a cost of O(N12) flops. Explain (or prove) why this is the case. Show transcribed image text Figure 1: A network consisting of nodes {U, x, v, y, W, 2} 2. (a) A network is illustrated in Fig. 1. Use Dijkstra’s algorithm to find the shortest paths from node U to all other nodes in the network. Show all intermediate steps. [10 marks) (b) Given a graph G which consists of |N| nodes and El edges. In the worst case, the computation that must be done to compute Dijkstra’s algorithm incurs a cost of O(N12) flops. Explain (or prove) why this is the case.
Expert Answer
Answer to Figure 1: A network consisting of nodes {U, x, v, y, W, 2} 2. (a) A network is illustrated in Fig. 1. Use Dijkstra’s alg…
OR