logo

Question detail

Explain the difference between a tree and a rooted tree. Include the meaning of root, parent, child and descendant in your answer.

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

Question

Type

practice

Style

Topic

Trees

Exam-style question

Try this first

Explain the difference between a tree and a rooted tree. Include the meaning of root, parent, child and descendant in your answer.

Model answer

What a good answer should say

  • A tree is a connected, undirected graph with no cycles, and it does not have to have a root.
  • A rooted tree is a tree in which one vertex has been designated as the root.
  • The root is the only node with no parent.
  • The other nodes have parent-child relationships, and all of them are descendants of the root.

Explanation

Why this works

The key distinction is that a root is not required in a general tree but is designated in a rooted tree. Once a root is chosen, parent-child relationships can be described.

The root has no parent, while every other node is a descendant of it.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.