1.

For a given graph G having v vertices and e edges which is connected and has no cycles, which of the following statements is true?(a) v=e(b) v = e+1(c) v + 1 = e(d) v = e-1My doubt is from Graph topic in portion Graph of Data Structures & Algorithms II had been asked this question in an international level competition.

Answer»

Correct answer is (b) v = e+1

For EXPLANATION: For any CONNECTED GRAPH with no CYCLES the equation holds true.



Discussion

No Comment Found

Related InterviewSolutions