Machine-translated by Google. Questions are authored in English.
Top

Discussion

In Sethi Ullman labelling, a leaf that is the left child is labelled 1 and a leaf that is the right child is labelled 0. What label does an interior node whose children are labelled 2 and 2 receive?

  • A.1
  • B.3
  • C.2
  • D.4

Answer: B

When the two labels are equal the node is labelled one more than either, so two and two give three. When they differ the node takes the larger of the two labels unchanged. Working a small tree by hand is the quickest way to fix the rule in mind.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.