taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 2.3-5

Exercise 2.3-5

not stated yet in Lean solution written

Rating02
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 2.3 of Volume 1

The task

Node AA has three siblings, and BB is the parent of AA. Find the degree of BB.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

The siblings of AA are the other children of BB.

Solution

Show the solution

The children of BB are AA and the three siblings of AA. That is 4 children. The degree of a node is its number of children.

Answer: 4.

Check

The count is 1+3=41 + 3 = 4.

Remarks

The word sibling excludes the node itself. The wrong answer 3 comes from forgetting AA.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.