1.

The number of possible undirected graphs which may have self loops but no multiple edges and have n verticesis ________(a) 2^((n*(n-1))/2)(b) 2^((n*(n+1))/2)(c) 2^((n-1)*(n-1))/2)(d) 2^((n*n)/2)This interesting question is from Undirected Graph in portion Graph of Data Structures & Algorithms IThe question was posed to me in an internship interview.

Answer»

Correct option is (d) 2^((N*n)/2)

The EXPLANATION is: There can be at most, n*n EDGES in an undirected graph.



Discussion

No Comment Found

Related InterviewSolutions