[SOLVED] CPTS553-Assignment 6

24.99 $

Programming resource
Digital learning resource
Category:
โœ“ Practical programming resource
โœ“ Suitable for guided study and reference
โœ“ Tutor guidance available when needed

Description

Rate this product
  1. Show that for any ๐‘˜ โ‰ฅ 3, any tree with a vertex of degree ๐‘˜ must have at least ๐‘˜ The proof that uses summations of the result that a tree always has two leaves is probably easiest to adapt here.ย  You will want to assume ๐‘›๐‘˜ โ‰ฅ 1 in the summations

๐‘› ๐‘›๐‘— ;ย  total degree .

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

 

  1. Suppose ๐‘‡ is a binary tree of height ๐ป with ๐‘›
    1. As a function of ๐ป, what are the minimum and maximum possible values of ๐‘›?
    2. Suppose every parent has exactly two children in ๐‘‡. Show that ๐‘› must be odd.

 

  1. Let (๐‘‡, ๐‘Ÿ) be a rooted tree.
    1. Show that if ๐ท(๐‘ข, ๐‘ฃ) = 2๐ป where ๐ป is the height of ๐‘‡, then ๐‘ข and ๐‘ฃ are non-parents.
    2. Show that ๐ท(๐‘ข, ๐‘ฃ) is the sum of the levels of ๐‘ข and ๐‘ฃ if and only if ๐‘Ÿ is on the unique ๐‘ข, ๐‘ฃ-path.

 

  1. Suppose ๐บ is a simple graph (no loops; no parallel edges) with ๐‘› = 14 vertices and ๐‘š = 7 What are the possible values for ๐‘˜, the number of components of ๐บ?

 

  1. Suppose ๐‘‡ is a binary tree with 109 What are the minimum and maximum possible values of ๐ป, the height of ๐‘‡?
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.