hello dear,
to solve this question we will go one by one.
A. BFS:
to solve in BFS, there is three-step:
1. visiting a vertex in any order.
2. exploration of the vertex.
3. repeat the above step to reach all vertex.
in BFS, I have traversed all vertex, In BFS, we always take a queue.

B. DFS:
to solve in BFS, there is fouth-step:
1. visiting the first vertex which can be exploring further vertex.
2. exploration of the vertex.
3. further don't have to explore anything vertex then come back and traverse left vertex by backward.
4. repeat the above step to reach all vertex.
in DFS, we always take a stack to traverse all vertex.

you are asking for discovery time and return time. which is not possible because it undirected graph and doesn't have weights value to wait we can take value in alphabetical form but we have to direct graph because when it will undirected graph then we can traverse anywhere. if anywhere asking about this then just write vertex value which you are processing.
thanks you.
PI) Given undirected graph answer the following questions: (30 points) (a) Show how a Breath-First Search...
Solve (a) and (b) using BFS and DFS diagram
BFS Given an undirected graph below (a) Show the shortest distance to each vertex from source vertex H and predecessor tree on the graph that result from running breadth-finst search (BFS).Choose adjacen vertices in al phabetical order b) Show the start and finsh time for each vertex, starting from source vertex H, that result from running depth-first search (DFS)Choose aljacent vertices in alphabet- ical order DFS
BFS Given an undirected graph...
BFS Given an undirected graph below (a) Show the shortest distance to each vertex from source vertex H and predecessor tree on the graph that result from running breadth-finst search (BFS).Choose adjacen vertices in al phabetical order b) Show the start and finsh time for each vertex, starting from source vertex H, that result from running depth-first search (DFS)Choose aljacent vertices in alphabet- ical order DFS
BFS Given an undirected graph below (a) Show the shortest distance to each vertex...
Show the operation of depth-first search (DFS) on the graph of Figure 1 starting from vertex q. Always process vertices in alphabetical order. Show the discovery and finish times for each vertex, and the classification of each edge. (b) A depth-first forest classifies the edges of a graph into tree, back, forward, and cross edges. A breadth-first search (BFS) tree can also be used to classify the edges reachable from the source of the search into the same four categories....
3. (8 points-7+1) Figure 4 shows an undirected graph G. Assume that the adjacency list lists the edges in alphabetical order. Figure 3: Graph for P3 (a) Apply depth first search (DFS) to graph G, and show the discovery and finish times of each vertex. In the main-loop of DFS, check the vertices in alphabetical the form dsc/fin, where dsc is the discovery time and fin is the finish time. (b) Draw the DFS tree obtained.
3. (8 points-7+1) Figure...
From the given graph discover the structure of the graph using 1. breadth first search(BFS) a. depth first search(DFS) b. Show the steps and techniques used for each method (20 points)
From the given graph discover the structure of the graph using 1. breadth first search(BFS) a. depth first search(DFS) b. Show the steps and techniques used for each method (20 points)
Please answer all three parts. And show step-by-step
answers for each part. Draw anything if necessary. And
please don't copy other answers to be at risk being downvoted.
Thank you.
Question 1 (50 POINTS): Given a graph G and the Breadth First Search (BFS) and Depth First Search (DFS) traversal algorithms as follows: BFSG) 1 for each vertex u € G.V – {3} 1 2 u.color = WHITE 3 u.d = 0 4 un = NIL 3 5 S.color =...
Problem 2 [10 points] Depth-First Search Write inside each vertex in the following graph the discovery and finishing times in the format discovery/finish. Assume DFS considers the vertices in alphabetical order (A,B,C,....X,Y,Z), and assume that each adjacency list is ordered alphabetically W 1/ х у
Show how depth-first search
works on the graph of Figure 22.6. Assume that the for loop of
lines 5–7 of the DFS procedure considers the vertices in reverse
alphabetical order, and assume that each adjacency list is ordered
alphabetically. Show the discovery and finishing times for each
vertex, and show the classification of each edge.
DIJKSTRA(G,w,s)
1INITIALIZE-SINGLE-SOURCE(G,s)
2 S ??
3 Q ? V[G]
4 while Q =?
5 do u ? EXTRACT-MIN(Q)
6 S ? S?{u}
7 for each...
please help I will upvote.
pts) Show how depth-first search works on the following graph. Assume hat the that the DES procedure considers vertices in alphabetical order. Assume also that eachi adjateu ordered alphabetically. Show the discovery and inishing times tor the classification of each edge for each vertex, and show
pts) Show how depth-first search works on the following graph. Assume hat the that the DES procedure considers vertices in alphabetical order. Assume also that eachi adjateu ordered alphabetically....
Help !! I need help with Depth-First Search using an
undirected graph.
Write a program, IN JAVA, to implement the
depth-first search algorithm using the pseudocode given.
Write a driver program, which reads input file mediumG.txt as an
undirected graph and runs
the depth-first search algorithm to find paths to all the other
vertices considering 0 as the
source. This driver program should display the paths in the
following manner:
0 to ‘v’: list of all the vertices traversed to...