[SOLVED] CS453 - Assignmenta 6

30.00 $

Category:

Description

5/5 - (1 vote)

Show that for any ๐‘˜ โ‰ฅ 3, if a tree ๐‘‡ has fewer than ๐‘˜ leaves, then the maximum degree ฮ”(๐‘‡) among the vertices of ๐‘‡ must satisfy ฮ”(๐‘‡) < ๐‘˜. It can help to consider the summations

๐‘› ย ๐‘›๐‘— ;ย ย ย ย ย ย ย  2(๐‘› โˆ’ 1) = total degree .

๐‘—=1ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  ๐‘—=1

The phrase โ€œ๐‘‡ has fewer than ๐‘˜ leavesโ€ means ๐‘›1 < ๐‘˜.

The two sums can be combined into the single sum

๐‘›

โˆ‘(2 โˆ’ ๐‘—)๐‘›๐‘— = 2

๐‘—=1

It suffices to show that ๐‘›๐‘— = 0 for all ๐‘— โ‰ฅ ๐‘˜.

 

  1. Let (๐‘‡, ๐‘Ÿ) be a rooted tree. Recall that the level of a vertex ๐‘ฅ is ๐ฟ(๐‘ฅ) = ๐ท(๐‘Ÿ, ๐‘ฅ).ย  Also, the height of a rooted tree ๐ป is the maximum of the levels of its vertices.
    1. Show that if ๐‘Ÿ is on the unique ๐‘ข, ๐‘ฃ-path, then ๐ท(๐‘ข, ๐‘ฃ) = ๐ฟ(๐‘ข) +

๐ฟ(๐‘ฃ).

  1. Show that if ๐ฟ(๐‘ข) + ๐ฟ(๐‘ฃ) = ๐ท(๐‘ข, ๐‘ฃ), then ๐‘Ÿ must be on the unique ๐‘ข, ๐‘ฃ-path.
  2. Show that for any two vertices ๐‘ข and ๐‘ฃ, ๐ท(๐‘ข, ๐‘ฃ) โ‰ค 2๐ป.
  3. Show that if ๐ท(๐‘ข, ๐‘ฃ) = 2๐ป, then ๐‘ข and ๐‘ฃ must be non-parents. Equivalently, you can show that if either ๐‘ข or ๐‘ฃ is a parent, then ๐ท(๐‘ข, ๐‘ฃ) < 2๐ป.

 

  1. Suppose (๐‘‡, ๐‘Ÿ) is a rooted ๐‘ž-ary tree where every parent has exactly ๐‘ž children; such a tree is said to be saturated.
    1. Show that ๐‘‡ has ๐‘๐‘ž edges for some integer ๐‘.
    2. Find a formula for the number of vertices of ๐‘‡ in terms of ๐‘, ๐‘ž.
    3. Find a formula for the number of non-parents in terms of ๐‘, ๐‘ž.

 

  1. Suppose (๐‘‡, ๐‘Ÿ) is a rooted tree with exactly 1012 Recall that a lower bound or an upper bound on ๐ป is tight if there exists an example ๐‘‡ where that bound is attained.
    1. Find tight lower and upper bounds for ๐ป, the height of ๐‘‡.
    2. Find tight lower and upper bounds for ๐ป if ๐‘‡ is a saturated rooted binary tree. Recall that saturated means every parent has the maximum allowed number of children; here, that number is