PRACTICE / UNDERSTAND / REPEAT

Data Structures & Algorithms: Trees

Practice trees with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Trees · MCQQuestion link ↗

A nonempty tree has 6 vertices. How many edges does it have?

Choose one answer
Answer & explanation

Answer: 5

A tree is connected and acyclic, and therefore has V - 1 edges.