Counting-Examples

pdf

School

University of Southern California *

*We aren’t endorsed by this school

Course

407

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

2

Uploaded by GeneralBoulder9843

Report
Some counting problems 1 Ordered non-negative partitions of an integer : the number S N,n of non-negative solutions of x 1 + x 2 + . . . + x n = N (1) is S N,n = ( N + n 1 n 1 ) . (2) One way to see it: put N + n 1 boxes in a row, then put the plus sign in n 1 of them; this establishes a bijection between the box configurations and solutions of the equation (1). For example, with N = 9, n = 4, the following configuration corresponds to the ordered partition 9 = 2 + 0 + 6 + 1. The total number of these box configurations is given by (2). Variation: ordered partitions with lower bound , that is, non-negative integer solutions of (1) satisfying x k i for some positive integers k . This is reduced to the original problem with the same n , but with N n i =1 i instead of N . The reason: corresponding box configuration will have only N + n n k =1 k places to put the pluses. Equivalently, replacing x k with x k k reduces the problem to an unrestricted one. For example, S + N,n = ( N 1 n 1 ) is the number of positive solutions of (1) and corresponds to taking i = 1 for all i . The general counting technique, establishing a bijection between the objects we want to count and the linear configurations of two types of objects, is known under names stars and bars , sticks and stones , balls and bars , and dots and dividers (and maybe more). Multinomial formula: ( x 1 + · · · + x n ) N = k 1 + ... + k n = N N ! k 1 ! k 2 ! · · · k n ! x k 1 1 x k 2 2 · · · x k n n Example: ( a + b + c ) 3 = a 3 + b 3 + c 3 [3 = 3 + 0 + 0] + 3( ab 2 + ba 2 + ac 2 + ca 2 + bc 2 + cb 2 ) [3 = 2 + 1 + 0] + 6 abc [3 = 1 + 1 + 1] Further reading: Young tableau, Young diagram, etc. Runs in Bernoulli trials: In a finite sequence of tosses of a coin, a run of heads is a consecutive appearance of heads. For example, each of the following three sequences ( a ) HH TTT H T HH TTT ( b ) T HH TTT H T HH TT ( c ) TTT HH TTT H T HH (3) has three runs of heads and the total length 12. By convention, the number of runs of tails in each case is four : the first sequence started with H , and the convention is to say that the first run of tails has length 0; similarly, the third sequence ends with heads, and the convention is to say with the fourth run of tails has length 0 When the coin is fair and the tosses are independent, all 2 N sequences of length N are equally likely. Then, given that the sequence contains n heads and m = N n tails, the probability to have r runs of heads is R n,m ; r = ( n 1 r 1 )( m +1 r ) ( n + m n ) . 1 Sergey Lototsky, USC. Updated August 28, 2022 1
2 Indeed , if x k is the number of heads in the k -th run, we are counting the number of positive solutions of x 1 + · · · + x r = n ; similarly, with tails, we have y 1 + · · · + y r +1 = m , with y 1 0, y r +1 0 and y k 1 for k = 2 , . . . , r . For each of the three sequences in (3), N = 12 , n = 5 , m = 7 , r = 3, and R 5 , 7;3 = 14 33 . By comparison, R 5 , 7;1 = 1 42 R 5 , 7;3 , quantifying our intuition that each of the three sequences in (3) is a more “reasonable” outcome of 12 tosses of a fair coin than either HHHHHTTTTTTT or TTTTTTTHHHHH . Given that each of the five sequences has the same probability to appear (namely, 2 12 ), these considerations can lead to a much deeper investigation of what “random” actually means. An antenna system: Have N antennas in a row, of which m are defective. The system works if no two defective antennas are next to each other. Then the probability p N,m that the system works is p N,m = ( N m +1 m ) ( N m ) . (4) Indeed , the total number of ways to place m defective antennas among the total of N is ( N m ) ; the number of places for defective antennas in a working configuration is N m + 1: ( d ) w ( d ) w ( d ) w · · · ( d ) w ( d ), where w represents a working antenna and ( d ) represents a possible location of a defective antenna; the number of working arrangements is therefore ( N m +1 m ) . Ice cream cone: Have N flavors, can put m scoops in the cone; order does not matter; repetitions are allowed. Then the total number C N,m of different cones is C N,m = ( N + m 1 m ) . (5) One way to see this : automated procedure for generating the cone using a sequence of black and white squares. order the flavor somehow by assigning a number to each flavor; each cone is represented by sequence like 1 2 3 4 5 6 7 8 (6) a black square next to the number means a scoop of that flavor is included in the cone; a white square mean move to the next flavor. In (6), N = 8 , m = 7; flavors 3,4, 6, 7 are not included, 1 and 5 are scooped once, 2 is scooped twice, and the last flavor 8 is scooped three times. As a result, we have N + m 1 white squares to begin, m of which will become black [giving the instruction to scoop]. The total number of the resulting sequences is given by (5).
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Sales and production budgets Bowser Inc. manufactures two models of speakers, Rumble and Thunder.…
Q: 3x+y-2z=10  6x-2y+z=-2  x+4y+3z=7  solve using the elimination method
Q: in Attributional Retraining: reducing the likelihood of failure, what type of research method/…
Q: Lightning and thunder are produced at the same instant during a storm, but each travel at different…
Q: An alpha particle (4He) undergoes an elastic collision with a stationary uranium nucleus (235U).…
Q: A 10 foot ladder is leaning against a wall. If the top of the ladder slides down the wall at a rate…
Q: Find an equivalent expression without parentheses -(8x - 9)
Q: If a company resells treasury stock at a loss, and that amount exceeds any balance in the treasury…
Q: Python File Path: Whenever I execute this code it keeps saying the name "__File__" cannot be…
Q: At time t, the position of a body moving along the s-axis is s=-t3+9t2-24t m. a. Find the body's…
Q: The Rolling Department of Jabari Steel Company had 800 tons in beginning work in process inventory…
Q: 21. A PM field servo motor may be equipped with a resolver that is used to A. prevent the brushes…
Q: Find any critical numbers for f and then use the second derivative test to decide whether the…
Q: The area of a rectangle is 6 square inches. The length of the rectangle is 8 inches more than the…
Q: Problem 11.40 - Enhanced - with Feedback Calculate the [H3O+] value of each aqueous solution. ▼ Part…
Q: Equipment was sold for $3,000. What is the journal entry to record the sale if the equipment had a…
Q: limx→π-3−  cot(3x)
Q: Some banks now have biweekly mortgages (that is, with payments every other week). Compare a 20-year,…
Q: What is Leadership and Delegation in nursing and give examples?
Q: The costs per equivalent unit of direct materials and conversion in the Rolling Department of Jabari…
Q: Subject is structural analysis Please show each steps to the question and make it easy for me to…
Q: What is the relationship between mol of carbon and mol of ethanol, CH3CH₂OH? 1 mol of CH3CH₂OH…