- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
According to my lecture notes:
Suppose that we want to find the shortest path of a graph from $s$ to $v$ for some $s, v \in V$.
- Subproblem dependency should be acyclic.
#subproblems=$|V|$
time per subproblem: indegree $(v) $time= $\sum_{v \in V}$ indegree $(v)$+1=$\Theta(V+E)$
Why does it hold that [m]time per subproblem: indegree $(v)$[/m] ?
According to my lecture notes:
Suppose that we want to find the shortest path of a graph from $s$ to $v$ for some $s, v \in V$.
- Subproblem dependency should be acyclic.
#subproblems=$|V|$
time per subproblem: indegree $(v) $time= $\sum_{v \in V}$ indegree $(v)$+1=$\Theta(V+E)$
Why does it hold that [m]time per subproblem: indegree $(v)$[/m] ?