489 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

159
views
0 answers
0 votes
Malusi asked Jan 12
159 views
Consider a weighted undirected graph with positive edge weights and let (u, v) be an [2]edge in the graph. It is known that the shortest path from source ... and shortest path from r to v has weight 65. Which statement is always true?
1.8k
views
2 answers
0 votes
radha gogia asked Jun 30, 2015
1,844 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 ?
1.0k
views
1 answers
2 votes
Sanjay Sharma asked Dec 9, 2016
1,041 views