1.

A graph has 20 vertices. The maximum number of edges it can have is? (Given it is bipartite)(a) 100(b) 140(c) 80(d) 20This question was posed to me in examination.Question is taken from Bipartite Graphs in portion Bipartite Graphs of Data Structures & Algorithms II

Answer»

Correct CHOICE is (a) 100

To explain: Let the given bipartition X have x vertices, then Y will have 20-x vertices. We NEED to MAXIMIZE x*(20-x). This will be maxed when x=10.



Discussion

No Comment Found

Related InterviewSolutions