Question: A simple undirected graph G is COMPLETE if every pair of distinct vertices in G are adjacent. Suppose G is such a graph with n

A simple undirected graph G is COMPLETE if every pair of distinct vertices in G are adjacent. Suppose G is such a graph with n vertices. Then
Question 8Answer
a.
In DFS(G) there are (n1)(n2)/2
back-edges,, and every node of the DFS-tree has at most one child
b.
In BFS(G) the root of the BFS-tree has n1
children, and there are \Theta (n2)
BFS back-edges
c.
In BFS(G) height of the BFS-tree is O(1)
and there are O(n)
non-tree edges
d.
In DFS(G) every node in the DFS-tree has at most n1
children, there are \Theta (n)
DFS back-edges and \Theta (n2)
cross-edges

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!