Recent questions tagged graph-algorithms

1 votes
1 answer
151
Is this statement correct?? and why?.If there are negative weight cycles than dijkstra will surely fail but if there are negative weight edges(need not be cycle) then dij...
4 votes
2 answers
152
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
3 votes
2 answers
153
Please give some example regarding number of edges in dense graph is - |E| < |V2|I get that when we take log both sides we get O(ElogV), but I can't get this |E| < |V2|
0 votes
1 answer
154
0 votes
0 answers
159
1 votes
0 answers
161
35 votes
9 answers
163
3 votes
3 answers
166
2 votes
2 answers
172
If DFS algorithm applied starting from vertex ‘A’ which uses stack data structure then the height of stack is needed in worst case for DFS traversal is _________.
2 votes
0 answers
174
5 votes
0 answers
175
2 votes
0 answers
176