Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph is/are TRUE?
- (A)
A DFS tree of is a Shortest Path tree of .
- (B)
Every non-tree edge of with respect to a DFS tree is a forward/back edge.
- (C)
If is a non-tree edge of with respect to a BFS tree, then the distances from the source vertex to and in the BFS tree are within of each other.
- (D)
Both BFS and DFS can be used to find the connected components of .
