Question: Figure 1 : Graph for Question 6 6 . 1 ) Draw the subproblem graph for finding the shortest path from s to t in

Figure 1: Graph for Question 6
6.1) Draw the subproblem graph for finding the shortest path from s
to t in Figure 1 using the dynamic programming formulation \delta (s, t)= min_(w in N(s))\delta (s,w)+weight(w, t) where N(s) denotes the out-neighborhood of s (that is all the vertices u for which s -> u is an edge in the graph)
6.2) Argue that in the following dynamic programming formulation for
computing the shortest path (which takes edges on the path as an extra paramter) there are no cyclic dependencies in the subproblem graph.
\delta k(s, t)= min w for which w->t in E(G)\delta _(k1)(s,w)+ weight(w ->t)
Here \delta k(a, b) denotes the shortest path from a to b using at most k edges.Question 6
Question 6.1(3 points) Draw the subproblem graph for finding the shortest path from s
to t in Figure 1 using the dynamic programming formulation (s,t)=minwinN(s)(s,w)+
weight (w,t) where N(s) denotes the out-neighborhood of s(that is all the vertices u for
which su is an edge in the graph)
Question 6.2(4 points) Argue that in the following dynamic programming formulation for
computing the shortest path (which takes edges on the path as an extra paramter) there are
no cyclic dependencies in the subproblem graph.
k(s,t)=minwforwhichwtinE(G)k-1(s,w)+ weight (wt)
Here k(a,b) denotes the shortest path from a to b using at most k edges.
 Figure 1: Graph for Question 6 6.1) Draw the subproblem graph

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!