• edited by
25,900 views
76 76 votes

How many undirected graphs (not necessarily connected) can be constructed out of a given set $V=\{v_1, v_2, \dots v_n\}$ of $n$ vertices?

  1. $\frac{n(n-1)} {2}$
  2. $2^n$
  3. $n!$
  4. $2^\frac{n(n-1)} {2} $

9 Answers

Best answer
99 99 votes
With $n$ vertices we have max possible $^{n}C_{2}$ edges in a simple graph. and each subset of these edges will form a graph, so total number of undirected  graph possible = $2^{\frac{n(n-1)}{2}}$

Correct Answer: $D$
• edited by
22 22 votes

No. of vertices in the given questions $= n$

In an undirected simple graph, the maximum no. of edges that are possible $= n(n-1)/2$

Now, each edge can be either present or absent in a graph. So, there are 2 possibilities for each vertices.

Therefore, total no. of possible graphs $= 2*2*2*...  n(n-1)/2$ times

=$2^{n(n-1)/2}$ 

So, correct answer is option no. D.

• edited by
1 1 vote

I have doubt in this answer , in this question it is not mentioned that graph is labeled. 

hence for n=3 above answer gives number of graphs as 8. But in reality they are 4.

Please refer answer of this question , https://gateoverflow.in/2443/gate1994_1-6-isro2008-29 

Your answer could be correct if graph is labeled 

1 1 vote
We can take a small value of n like n=2 and n=3 and validate in  exam using the options  but lets see full analysis of this question

 

Let there be n vertices as stated in the question.An undirected simple graph will not contain self loops and multiple edges.So between any two vertices only an edge is possible

 

If we have 3 vertices v1,v2 and v3  we can put edges between {v1,v2},{v1,v3} and {v2,v3}.Since these are undirected so (v1,v2) ==(v2,v1).So only three edges(atmost) are possible.Similarly for n vertices utmost n edges are possible.wrong!Consider n=4 we can have 6 edges rather than 4 [{v1,v2},{v1,v3},{v1,v4},{v2,v3},{v2,v4},{v3,v4}].If we closely inspect we are rather choosing any pair of vertices and placing an edge between them.So the no of ways to pair from n elements is $^{n}$C$_{2}^{}\textrm{}$.

Every edge has two possibilities either the edge will be present or the edge will be absent.So the total no of simple undirected graphs are 2*2*2*...*2(nC2-times)=2^($^{n}$C$_{2}^{}\textrm{}$)=2^(n(n-1)/2)[Option d]
1 1 vote
We could think from a vertex point of view, since each vertex is labelled then first vertex $v_1$ has $n-1$ other vertices to chose to form an edge with or not i.e it has 2 options for each of $n-1$ vertices, overall $v_1$ will produce have $2^{(n-1)}$ possible combinations.

Now since the graph is undirected an edge from $v_1$ to $v_2$ is same as an edge from $v_2$ to $v_1$ so the next vertex $v_2$ will have $2^{n-2}$ options and so for $v_3, v_4, ....v_n....$ we will have $2^{n-3.},2^{n-4}...2^{n-n}$ combinations .

In total we will have :

                                                  Total Graphs = $2^{n-1}*2^{n-2}*......2^{0}$

                                                                      = $2^{(n^2)-(1+2+3+.....n)}$

                                                                      = $2^{(n^2)-\frac{n*(n+1)}{2}}$

                                                                      = $2^{\frac{n*(n-1)}{2}}$

 Which is the answer $(D)$

 

 

 

 
• edited by
Answer:
Position:
Show:

Related questions

38 38 votes
3 answers 3 answers
7.9k
7.9k views
Kathleen asked Sep 14, 2014
7,946 views
Consider a weighted undirected graph with vertex set $V = \{n1, n2, n3, n4, n5, n6 \}$ and edge set $E = \{(n1,n2,2), (n1,n3,8), (n1,n6,3), (n2,n4,4), (n2,n5,12), (n3,n4,...
51 51 votes
6 answers 6 answers
13.8k
13.8k views
Misbah Ghaya asked Nov 29, 2016
13,810 views
How many substrings (of all lengths inclusive) can be formed from a character string of length $n$? Assume all characters to be distinct, prove your answer.
43 43 votes
6 answers 6 answers
17.3k
17.3k views
Kathleen asked Sep 23, 2014
17,311 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above
51 51 votes
8 answers 8 answers
17.9k
17.9k views
Kathleen asked Sep 14, 2014
17,857 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...