edited by
1,144 views
0 votes
0 votes

Consider the following statements:

$A.$ In a weighted undirected graph $G = (V, E, w)$, breadth-first search from a vertex s finds single-source shortest paths from s (via parent pointers) in $O(V + E)$ time.

$B.$ In a weighted undirected tree $G = (V, E, w)$, breadth-first search from a vertex s finds single-source shortest paths from s (via parent pointers) in $O(V + E)$ time.

$C.$ If a graph represents tasks and their inter-dependencies (i.e., an edge $(u, v)$ indicates that $u$ must happen before $v$ happens), then the breadth-first search order of vertices is a valid order in which to tackle the tasks.

Which of the above is TRUE?

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
2
Magma asked Dec 27, 2018
653 views
…………………………..
0 votes
0 votes
1 answer
3