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)
The origin of the question is Undirected Graph in portion Graph of Data Structures & Algorithms I
I have been asked this question during an interview for a job.