What would the time complexity to check if an undirected graph with V vertices and E edges is Bipartite or not given its adjacency matrix?

What would the time complexity to check if an undirected graph with V vertices and E edges is Bipartite or not given its adjacency matrix?
A. O(E*E)
B. O(V*V)
C. O(E)
D. O(V)
 

Tìm kiếm

Back
Top