Practice Discrete Math

Graphs / Rooted Trees

Least You Need to Know: Rooted Trees

A rooted tree picks one vertex as the root, which gives every other vertex a parent-child relationship and a level.

جو کم از کم جاننا ضروری ہے

اہم علامتیں

root distinguished top vertex
parent(v) the vertex directly above v
depth distance from the root

مختصر حل شدہ مثال

  • In a rooted tree with root r and edges `r-a, r-b, a-c`, the parent of c is a.
  • The leaves are b and c.
  • The depth of c is 2 because it is two edges from r.

عام غلطیاں

اس قسم کے سوال کو کیسے پہچانیں

Next recommended lesson

Continue through this topic with Least You Need to Know: Trees.

Least You Need to Know: Trees

Related lessons

Keep going with nearby lessons in the same topic.

More ways to explore

مشق شروع کریں