Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. How many undirected graphs (not necessarily connected) can be constructed out of a given set V = {v1 , v2 ,....,vn }of n vertices ?
    1. n(n - 1)
      2

    2. 2n
    3. n!
    4. 2n(n - 1) / 2
Correct Option: D

Here, we need to find the number of undirected graphs to be constructed
Now, S = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8... n – 1
= n (n – 1)/2 → constructed graphs = 2S
= 2n(n - 1) / 2



Your comments will be displayed only after manual approval.