471 views
1 votes
1 votes

I think the answer to this problem is 9 whereas given answer is 8. My approach was using sum of degree theorm,

6(no. of vertex with degree 3) * 3 + x(no.of vertices which we need to find out) *( degree less than 3)  = 2*|E| {|E| = 12 given}

i.e 18 + x*(deg less than 3) = 24

so as degree of x is less than 3 so at max it can be 2 and to make no.of vertices min. it should be 2

therefor x*2 = 6 i.e x = 3

and total vertices = 9 whereas ans.given is 8. please provide a clear explanation.

1 Answer

1 votes
1 votes

Minimum number of vertices G can have is 9 and graph can either be connected or disconnected having 2 component

If disconnected:

First component having 6 vertices and 9 edges and

Second component having 3 vertices complete graph.

If connected

edited by

Related questions

0 votes
0 votes
0 answers
1
Malusi asked Jan 12
125 views
Consider a weighted undirected graph with positive edge weights and let (u, v) be an edge in the graph. It is known that the shortest path from source vertex r to u hasw...
0 votes
0 votes
2 answers
2
radha gogia asked Jun 30, 2015
1,801 views
Does a DFS for an undirected graph always produce the same number of tree edges irrespective of the order in which we visit the vertices ?
2 votes
2 votes
1 answer
3
Sanjay Sharma asked Dec 9, 2016
996 views