Combinatorics, Assigning Occurrence Numbers to Integers

In summary, the degree sequence of a simple graph corresponds to the number of code words with the given pattern, and counting the number of n-vertex numbered trees with a given degree sequence is the same as counting the number of length n − 2 code words with a given occurrence sequence.
  • #1
QuietMind
42
2

Homework Statement


This problem is from MIT OpenCourseWare- a diagram is attached to clarify certain definitions. I'd like to check my answers.

The degree sequence of a simple graph is the weakly decreasing sequence of degrees of its vertices. For example, the degree sequence for the 5-vertex numbered tree pictured in the Figure 1 is (2, 2, 2, 1, 1) and for the 7-vertex tree it is (3, 3, 2, 1, 1, 1, 1). We’re interested in counting how many numbered trees there are with a given degree sequence. We’ll do this using the bijection defined in Problem 16.5 between n-vertex numbered trees and length n − 2 code words whose characters are integers between 1 and n. The occurrence number for a character in a word is the number of times that the character occurs in the word. For example, in the word 65622, the occurrence number for 6 is two, and the occurrence number for 5 is one. The occurrence sequence of a word is the weakly decreasing sequence of occurrence numbers of characters in the word. The occurrence sequence for this word is (2, 2, 1) because it has two occurrences of each of the characters 6 and 2, and one occurrence of 5.

(a) There is simple relationship between the degree sequence of an n-vertex numbered tree and the occurrence sequence of its code. Describe this relationship and explain why it holds. Conclude that counting n-vertex numbered trees with a given degree sequence is the same as counting the number of length n − 2 code words with a given occurrence sequence. Hint: How many times does a vertex of degree, d, occur in the code?
Screen Shot 2016-04-19 at 2.22.12 PM.png


For simplicity, let’s focus on counting 9-vertex numbered trees with a given degree sequence. By part (a), this is the same as counting the number of length 7 code words with a given occurrence sequence.

Any length 7 code word has a pattern, which is another length 7 word over the alphabet a,b,c,d,e,f,g that has the same occurrence sequence.

(b) How many length 7 patterns are there with three occurrences of a, two occurrences of b, and one occurrence of c and d?

(c) How many ways are there to assign occurrence numbers to integers 1, 2, . . . , 9 so that a code word with those occurrence numbers would have the occurrence sequence 3, 2, 1, 1, 0, 0, 0, 0, 0?

In general, to find the pattern of a code word, list its characters in decreasing order by number of occurrences, and list characters with the same number of occurrences in decreasing order. Then replace successive characters in the list by successive letters a,b,c,d,e,f,g. The code word 2468751, for example, has the pattern fecabdg, which is obtained by replacing its characters 8,7,6,5,4,2,1 by a,b,c,d,e,f,g, respectively. The code word 2449249 has pattern caabcab, which is obtained by replacing its characters 4,9,2 by a,b,c, respectively.

(d) What length 7 code word has three occurrences of 7, two occurrences of 8, one occurrence each of 2 and 9, and pattern abacbad?

(e) Explain why the number of 9-vertex numbered trees with degree sequence (4, 3, 2, 2, 1, 1, 1, 1, 1) is the product of the answers to parts (b) and (c).

Homework Equations

The Attempt at a Solution


a) The degree sequence tells you the number of degrees each vertex has. In the code, a vertex will be represented by a value that is one less than its degree. So, to go from the degree sequence to occurrence sequence, subtract 1 from each of its elements. If any values are 0 after the subtraction, they are omitted.

b) This is a permutation, I believe. There are 7! total possibilities, but to account for the possible redundancies from the 3 a's and 2 b's, divide total possibilities by 3! and 2! respectively.
##\frac{7!}{3!2!}##

c)
I thought about assigning the integers 1-9 to the various values of the occurrence sequence. This is how I visualized it:

{ _ } { _ } { _ _ } {_ _ _ _ _}
3 2 1's 0's

So of 9! total possibilities for assignment, but divide by a factor of 2! to account for redundancy of the 1's, a factor of 5! to account for redundancy of the 0's

and a factor of 4! to account for redundancy of the permutations of the brackets ie

{ _ } { _ } { _ _ } {_ _ _ _ _}
3 2 1's 0's
vs
{_ _ _ _ _}{ _ } { _ } { _ _ }
0's 3 2 1's
should not be counted as two.
This gives me the result
##\frac{9!}{2!5!4!}##

Is this reasoning correct? b and c are the ones I'm most uncertain about

d) Ordering according to their rules
7,8,9,2
correspond to
a,b,c,d
respectively.
So I get 7879872

e) The answer from part b gives the number of code words possible for each occurrence sequence, and answer from part c gives the number of different ways an occurrence sequence could have its occurrences assigned. Total possibilities is the product.
 
Physics news on Phys.org
  • #2
Your answer to b looks correct. For c I would have thought the answer was 9x8x7x6/2=1512, since we are making four draws without replacement from the set {1,...,9} and the order for the last two draws does not matter. The ##k##th draw is a choice of the integer (code character) that has occurrence number ##a_k## where ##a_1=3,a_2=2,a_3=a_4=1##.

I get the same as you for d.
 
  • Like
Likes QuietMind
  • #3
Ok, so my answer for c differs from yours by the 4! in the denominator. I think this was an inappropriate case to try to account for permutations of the brackets.
 

1. What is combinatorics and its role in assigning occurrence numbers to integers?

Combinatorics is a branch of mathematics that deals with counting, arranging, and selecting objects or events. It is used in assigning occurrence numbers to integers by providing a systematic way of counting and organizing the possible outcomes.

2. What is the difference between permutation and combination in combinatorics?

In combinatorics, permutation refers to the arrangement of objects in a specific order, while combination refers to the selection of objects without considering the order. Permutation involves all the objects in a set, while combination can involve a subset of the objects.

3. How can occurrence numbers be assigned to integers using combinatorics?

Occurrence numbers can be assigned to integers using combinatorial techniques such as permutations, combinations, and binomial coefficients. These techniques provide a systematic way of counting and organizing the possible outcomes.

4. What is the importance of assigning occurrence numbers to integers?

Assigning occurrence numbers to integers is important in various fields such as statistics, computer science, and cryptography. It allows for the analysis and prediction of outcomes, the creation of secure codes, and the efficient use of resources.

5. Can combinatorics be applied to real-life scenarios?

Yes, combinatorics can be applied to real-life scenarios such as in sports scheduling, lottery games, and election predictions. It provides a mathematical framework for analyzing and solving real-world problems involving counting and arrangement of objects or events.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
2K
Replies
3
Views
492
  • Calculus and Beyond Homework Help
Replies
7
Views
792
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
396
Replies
4
Views
223
  • Precalculus Mathematics Homework Help
Replies
1
Views
581
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
Back
Top