Recent questions tagged breadth-first-search

0 votes
0 answers
31
Is there any graph whose number of BFS and DFS traversals are different?If so which graph.
0 votes
0 answers
32
Please give an example i didn't get itThe depth of any DFS tree rooted at a vertex is at least as much as thedepth of any BFS tree rooted at the same vertex.
0 votes
2 answers
33
How through a BFS we can find graph is connected or disconnected? Plz give some example and explain
4 votes
2 answers
34
Which of the following is application of Breath First Search on the graph?Finding diameter of the graphFinding bipartite graphBoth (a) and (b)None of the above
2 votes
0 answers
39
0 votes
0 answers
40
0 votes
0 answers
41
$State \ TRUE \ OR \ FALSE :\\ Given \ an \ undirected \ connected \ graph \ with \ binary \ edge \ weights \ the \\ shortest \ path \ b/w \ any \ two \ nodes \ can \ be ...
0 votes
1 answer
43
0 votes
1 answer
45
2 votes
3 answers
46
The max possible height of BFS tree , if BFS is run on a complete bipartite graph Km,n where m>=1 , n>=1 with starting vertex S is
0 votes
0 answers
48
0 votes
1 answer
49
BFS algo is applied on graph as well as Binary tree. So, is it different for both graph and Binary tree?As on youtube some people showing BFS on graph and some on Binary ...
10 votes
8 answers
50
Which of the following data structure is useful in traversing a given graph by breadth first search?StackQueueListNone of the above
0 votes
1 answer
51
here S1 ans S2 seems confusing for me can someone help me to varify this answer i think given 3 are true in some case??
1 votes
1 answer
52
6 votes
3 answers
54
a)(d,c)b)(d,b)c)(e,b)d)(e,f)
1 votes
1 answer
58
0 votes
1 answer
59
1. Does space complexity includes both input space and extra space needed for algorithm or only extra space?2.What will be Space complexity for BFS algorithm with adjacen...
0 votes
1 answer
60
What is the running time of BFS if we represent its input graph by an adjacency matrix and modify the algorithm to handle this form of input?