edited by
14,144 views
53 votes
53 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} $
edited by

6 Answers

0 votes
0 votes
With n vertices no. of possible edges = n C 2
Each subset of these edges will be form a graph.
No. of possible undirected graphs is 2(n C 2)
⇒ 2(n(n-1)/2)
0 votes
0 votes
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]
Answer:

Related questions

29 votes
29 votes
3 answers
5
46 votes
46 votes
6 answers
7
Kathleen asked Sep 14, 2014
8,684 views
Which of the following relational calculus expression is not safe?$\left\{t \mid \exists u \in R_1\left(t[A] = u[A]\right) \land \neg \exists s \in R_2 \left(t[A] = s[A]\...
128 votes
128 votes
6 answers
8