Question

In: Computer Science

Let d1, d2, ..., dn, with n at least 2, be positive integers. Use mathematical induction...

Let d1, d2, ..., dn, with n at least 2, be positive integers. Use mathematical induction to explain why, if d1+ d2+…+dn = 2n-2, then there must be a tree with n vertices whose degrees are exactly d1, d2, ..., dn. (Be careful with reading this statement. It is not the same as saying that any tree with vertex degrees d1, d2, ..., dn must satisfy d1+ d2+...+dn = 2n-2, although this is also true. Rather, it says that if you begin with the numbers d1, d2, ..., dn, then you can find such a tree.) Note: For this problem we are concerned with the total degree. Normally in trees we are only concerned with out-degree and usually just say "degree" since the in-degree is always fixed at one in a tree.

Solutions

Expert Solution

Assume di = 2n − 2 where the di’s are all positive integers. Proceed by induction on the number if integers in the sequence d1, d2, · · ·, dn.

Base Step: n = 2. Then 2n − 2 = 2, and the sequence must be 1,1 which is the degree sequence of K2.

Inductive Step: Assume the conclusion holds for all acceptable sequences of length n − 1 or less. Recall that by assumption, the smallest integer in the sequence is at least 1. On the other hand, the average of di’s is (2n − 2)/n = 2 − 2/n < 2.

So, at least one of the di’s is exactly 1, call it dn, and at least one of the di’s is at least 2, call it dn−1. Since the sequence d1, d2, · · ·, dn−2, (dn−1) − 1 consists of all positive integers and di = (2n − 2) − (2) = 2(n − 1) − 2, the inductive hypothesis implies that there exists a tree on n − 1 vertices with this degree sequence. To this tree, add an additional leaf to whichever vertex has a degree (dn−1)− 1 and we have a tree with the original degree sequence.


Related Solutions

Let Dn be the set of positive integers that divide evenly into n. List the elements...
Let Dn be the set of positive integers that divide evenly into n. List the elements of each of the sets D6, D16, D12, and D30
Use double induction to prove that (m+ 1)^n> mn for all positive integers m; n
Use double induction to prove that (m+ 1)^n> mn for all positive integers m; n
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2)...
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2) Prove that a finite set with n elements has 2n subsets (3) Prove that every amount of postage of 12 cents or more can be formed using just 4-cent and 5-cent stamps
Let n greater than or equal to 2 and let k1,...,kn be positive integers. Recall that...
Let n greater than or equal to 2 and let k1,...,kn be positive integers. Recall that Ck1,..., Ckn denote the cyclic groups of order k1,...,kn. Prove by induction that their direct product Ck1×Ck2×....×Ckn is cyclic if and only if the ki's are pairwise coprime which means gcd(ki,kj)=1 for every i not equals j in {1,...n}.
Use mathematical induction to prove that for every integer n >=2, if a set S has...
Use mathematical induction to prove that for every integer n >=2, if a set S has n elements, then the number of subsets of S with an even number of elements equals the number of subsets of S with an odd number of elements. pleases send all detail solution.
a. Use mathematical induction to prove that for any positive integer ?, 3 divide ?^3 +...
a. Use mathematical induction to prove that for any positive integer ?, 3 divide ?^3 + 2? (leaving no remainder). Hint: you may want to use the formula: (? + ?)^3= ?^3 + 3?^2 * b + 3??^2 + ?^3. b. Use strong induction to prove that any positive integer ? (? ≥ 2) can be written as a product of primes.
Use induction to prove that 8^n - 3^n is divisible by 5 for all integers n>=1.
Use induction to prove that 8^n - 3^n is divisible by 5 for all integers n>=1.
The integers satisfy a property known as mathematical induction. This is a familiar topic in high...
The integers satisfy a property known as mathematical induction. This is a familiar topic in high school textbooks. (a) The First Principle of Mathematical Induction is stated as follows. Suppose S is a subset of N with the following properties: (i) The number 1 is in S. (ii) If n is in S, then n + 1 is in S. Using well-ordering, prove S = N. (b) The Second Principle of Mathematical Induction is stated as follows. Suppose S is...
prove 2 is a factor of (n+1)(n+2) for all positive integers
prove 2 is a factor of (n+1)(n+2) for all positive integers
Use induction to prove that for any positive integer n, 8^n - 3^n is a multiple...
Use induction to prove that for any positive integer n, 8^n - 3^n is a multiple of 5.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT