logo

AQA A-Level Computer Science practice

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 first, then check the answer and practise the same topic again.

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.

Answer and explanation

Concise answer

A tree is a connected, undirected graph with no cycles, and it does not have to have a root.

Why this is correct

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.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions