Question

The maximum number of edges in a bipartite graph on 12 vertices is _____.

Official answer and solution
Official answer
36
From
Official GATE 2014 answer key

Solution

Maximize the product of the partition sizes in a bipartite graph on 12 vertices.

  1. Let V1V_1 and V2V_2 be the two disjoint independent sets of vertices in the bipartite graph, with ∣V1∣=n1|V_1| = n_1 and ∣V2∣=n2|V_2| = n_2.

  2. Given total vertices n1+n2=12n_1 + n_2 = 12.

  3. The maximum possible number of edges occurs in the complete bipartite graph Kn1,n2K_{n_1, n_2}, where every vertex in V1V_1 is connected to every vertex in V2V_2:

    ∣E∣=n1×n2.|E| = n_1 \times n_2.
  4. For a fixed sum n1+n2=12n_1 + n_2 = 12, the product n1n2n_1 n_2 is maximized when the two parts are as equal as possible:

    n1=n2=6.n_1 = n_2 = 6.
  5. The maximum number of edges is:

    ∣E∣max⁡=6×6=36.|E|_{\max} = 6 \times 6 = 36.
Final answer

36

Common trap

Using the complete graph edge formula 12 * 11 / 2 = 66, ignoring the bipartite restriction.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 2
Question
13 of 65, printed as CS Q.3
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.