0
$\begingroup$

I have a connected undirected graph with V vertices and V(V - 1)/2 edges. Then, I remove K edges (a[i], b[i]). I want to know if the graph is still connected after performing all the operations (so I want to delete those edges and then answer the question). Is there any faster way to do this than performing BFS/DFS algorithm? Those are linear time algorithms but in terms of edges which may be quite big to compute on a home PC for graphs with approximately 10^6 vertices. K of course will not be too big, let's say 10^6.

| cite | |
$\endgroup$

Browse other questions tagged or ask your own question.