Bookkeeper Rule # perms bo 1 o 2 k 1 k 2 e 1 e 2 pe 3 r = 10! map - - PowerPoint PPT Presentation

bookkeeper rule
SMART_READER_LITE
LIVE PREVIEW

Bookkeeper Rule # perms bo 1 o 2 k 1 k 2 e 1 e 2 pe 3 r = 10! map - - PowerPoint PPT Presentation

Mathematics for Computer Science bookkeeper rule MIT 6.042J/18.062J # permutations of the word bookkeeper ? Bookkeeper Rule # perms bo 1 o 2 k 1 k 2 e 1 e 2 pe 3 r = 10! map perm o 1 be 1 o 2 k 1 rk 2 e 2 pe 3 to Multinomial Theorem o be


slide-1
SLIDE 1

1

Albert R Meyer, April 22, 2013

Mathematics for Computer Science

MIT 6.042J/18.062J

Bookkeeper Rule Multinomial Theorem

bookkeeper.1 Albert R Meyer, April 22, 2013

bookkeeper rule # permutations of the word bookkeeper ?

  • # perms bo1o2k1k2e1e2pe3r = 10!
  • map perm o1be1o2k1rk2e2pe3 to
  • be o k rk e pe
  • 10

2 o’s, 2 k’s, 3 e’s:

!

map is 2!·2!·3!-to-1

2!2!3!

bookkeeper.2

  • beokrkepe

Albert R Meyer, April 22, 2013

bookkeeper rule

# permutations of length-n word with n1 a’s, n2 b’s, …, nk z’s:

n! n1!n2!⋯nk!

bookkeeper.3

 n    ::= n1,n2,⋯,nk

multinomial coefficient

Albert R Meyer, April 22, 2013

binomial coefficients

binomial a special case:

 n  

n

   k  =    k, n-k  

bookkeeper.4

slide-2
SLIDE 2

2

Albert R Meyer, April 22, 2013

What is the coefficient of EMS3TY in the expansion of (E + M + S + T + Y)7 ? multinomials

The number of ways to rearrange the letters in the word SYSTEMS

bookkeeper.6 Albert R Meyer, April 22, 2013

applying the BOOKKEEPER rule

What is the coefficient of EMS3TY in the expansion of (E + M + S + T + Y)7 ?

7

     1,1, 3,1,1  

bookkeeper.7

What is the coefficient of BA3N2 in the expansion of (B + A + N)6 ?

The number of ways to rearrange the letters in the word BANANA

Albert R Meyer, April 22, 2013 bookkeeper.10

multinomial coefficients multinomial coefficients

What is the coefficient of BA3N2 in the expansion of (B + A + N)6 ?

6     1,3,2  

Albert R Meyer, April 22, 2013 bookkeeper.11

slide-3
SLIDE 3

3

Albert R Meyer, April 22, 2013 bookkeeper.12

multinomial coefficients

Take 14 mile walk including 3 Northward miles, 4 Southward, 5 Eastward and 3

  • Westward. How many different walks?

= #rearrangements of N3S4E5W2

⎛ ⎜ 14 ⎞  = ⎜  ⎜  ⎝ ⎜3, 4,5,2 ⎠ 

Albert R Meyer, April 22, 2013

What is the coefficient of

X

r r

2

r3 r k 2X3 ⋯X

1

1 X k

in the expansion of

(X1+X +X3+…+Xk)n

2

?

 n  r ,r ,r ,...,r 

multinomial coefficients

1 2 3 k

bookkeeper.13 Albert R Meyer, April 22, 2013

The Multinomial Formula n  X1+X2+...+ X 

k

=

n

r r

 X 1X 2

1 2X r3⋯X rk

r +⋯+r =nr

1,r 2,r3,...,r  3 k k

1

k

bookkeeper.14 Albert R Meyer, April 22, 2013 bookkeeper.15

multinomial coefficients

 n   r ,r ,r ,...,r  

1 2 3 k

::= 0 if r

1

+r

2 +...+r

k ≠ n

slide-4
SLIDE 4

4

Albert R Meyer, April 22, 2013

Preceding slides adapted from: Great Theoretical Ideas In Computer Science Carnegie Mellon Univ., CS 15-251, Spring 2004 Lecture 10 Feb 12, 2004 by Steven Rudich Applied Combinatorics, by Alan Tucker

bookkeeper.17

slide-5
SLIDE 5

MIT OpenCourseWare http://ocw.mit.edu

6.042J / 18.062J Mathematics for Computer Science

Spring 2015 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.