+1 vote
in Data Structures & Algorithms I by (110k points)
How many edges are present in Edge cluster?

(a) 0

(b) 1

(c) 2

(d) 4

This intriguing question originated from Binary Trees topic in portion Binary Trees of Data Structures & Algorithms I

This question was posed to me during an internship interview.

1 Answer

+1 vote
by (672k points)
Correct answer is (b) 1

For explanation: A cluster containing only single edge is known as Edge cluster. So there are in total 1 edge present in edge cluster. Cluster in data structure is defined as the subtree that is connect having maximum of 2 vertices known as Boundary Vertices.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...