SlideShare a Scribd company logo
Generating Function


               < an >= a0 , a1 , a2 , a3 , ...



                                                      
                                                 2             n
                    G(z) = a0 + a1 z + a2 z + ... =         an z .
                                                      n≥0
Generating Function
                                                 
                                      2                   n
               G(z) = a0 + a1 z + a2 z + ... =         an z .
                                                 n≥0


                   an = a0 , a1 , a2 , ...

                           an 
               G(z)
Generating Function
                                                 
                                      2                   n
               G(z) = a0 + a1 z + a2 z + ... =         an z .
                                                 n≥0


                   an = a0 , a1 , a2 , ...

                           an 
               G(z)
Generating Function
G(z) =

                H(z) =
                         

                         n≥0
                         
                                    n
                               an z = a0 + a1 z + a2 z + ...

                                    n
                               bn z = b0 + b1 z + b2 z + ...
                                                               2



                                                               2
                                                                       A
                         n≥0
                                             
                                        n                  n
αG(z) + βH(z) = α                  an z + β         bn z
                          n≥0                 n≥0
                         
                    =          (αan + βbn )z n .
                         n≥0

                    =          +        +      + ... +             +       +         + ...
                    =(         +        )+(    +           ) +(        +       )   + ...
m
          z G(z) = a0 z + a1 z
                 =
                   
                              m

                              n
                       an−m z .
                                        m+1
                                           2
                   G(z) = a0 + a1 z + a2 z + ...
                                               + a2 z   m+2
                                                              + ...
                                                                      B
                          n≥m
                                                         2
                        = a0−m + a1−m z + a2−m z + ...

                        = 0·z 0 + 0·z 1 + 0·z 2 + ... + a0 z m + a1 z m+1 + ...
                                                          n≺0     an=0
                                       n     m          n
                        =      an−m z = z           an z .
                          n≥0                    n≥0

      an−m = 0, ..., 0, a0 , a1 , a2 , ...
                 
                  m
z    −m
               (G(z) −
                         

                         nm
                                  n
                               an z ) = z   −m
                                                 

                                                 n≥m
                                                       an z   n
                                                                         B
                                            −m           m              m+1
                                      =z         (am z       + am+1 z         + ...)
                                                                          2
                                      = a0+m + a1+m z + a2+m z + ...
                                        
                                                 n
                                      =    an+m z .
                                        n≥0


                an+m = am , am+1 , am+2 , ...
G(z) = 1, 1, 1, ...
                                                    B
                    zG(z) = 0, 1, 1, ...
               (1 − z)G(z) = 1
                             1             2
                     G(z) =     = 1 + z + z + ...
                            1−z
G(z)
                   ‣   zG(z)
                             Fn 
                                          A+B
                                    Fn−1 
                   ‣    2
                       z G(z)        Fn−2 
               ‣               2
                   (1 − z − z )G(z)       Fn − Fn−1 − Fn−2 


                   n2              Fn − Fn−1 − Fn−2 = 0
               (1 − z − z 2 )G(z) = F0 + (F1 − F0 )z + (F2 − F1 − F0 )z 2
                                          =1
                                                    + (F3 − F2 − F1 )z 3 + ...
                                   =z
                                     z
                            G(z) =       2
                                           .
                                   1−z−z
A+B
     an = c1 an − 1 + ... + cm an−m                    G(z)

                                     X
                    G(z) =                       m
                                                   .
                           1 − c1 z − ... − cm z
                                z
                    G(z) =
                           1 − z − z2
2
               G(z) = a0 + a1 z + a2 z + ...
               H(z) = b0 + b1 z + b2 z 2 + ...
G(z)H(z) = (a0 + a1 z + a2 z 2 + ...)(b0 + b1 z + b2 z 2 + ...)
                                                                        C
                     = (a0 b0 ) + (a0 b1 + a1 b0 )z + (a0 b2 + a1 b1 + a2 b0 )z 2 + ...
                                         2
                     = c0 + c1 z + c2 z + ...
                                             n
                                             
                                     cn =          ak bn−k
                                             k=0

                                         z m G(z)
G(z) = a0 + a1 z + a2 z 2 + ...
                                                                   C
                   H(z) = b0 + b1 z + b2 z 2 + ...     bn = 1
                                     2
                        = 1 + z + z + ...
                            1
                        =
                          1−z
                            1
               G(z)H(z) =       G(z)
                          1−z
                        = a0 + (a0 + a1 )z + (a0 + a1 + a2 )z 2 + ...
F (z)G(z)H(z) = d0 , d1 , d2 , ...

                              dn =
                                    
                                         a i bj c k .
                                                                           C
                                       i,j,k≥0
                                      i+j+k=n

                                                                           n
                                                                           
                                            from   F (z)G(z),       cn =         ak bn−k
                                                                           k=0
                                                 
                         ajk z k =         zn                    a0k0 a1k1 . . .
               j≥0 k≥0               n≥0         k0 ,k1 ,...≥0
                                                k0 +k1 +...=n
z
                                                             D
                       G(z) = a0 + a1 z + a2 z 2 + a3 z 3 + ...
                      G(−z) = a0 − a1 z + a2 z 2 − a3 z 3 + ...
               G(z) + G(−z) = 2a0 + 2a2 z 2 + 2a4 z 4 + ...
          1                              2         4
            (G(z) + G(−z)) = a0 + a2 z + a4 z + . . .
          2

                            G(z) = a0 + a1 z + a2 z 2 + a3 z 3 + ...
                           G(−z) = a0 − a1 z + a2 z 2 − a3 z 3 + ...
                   G(z) − G(−z) = 2a1 z + 2a3 z 3 + 2a5 z 5 + ...
          1
               (G(z) − G(−z)) = a1 z + a3 z 3 + a5 z 5 + . . .
          2
Im
                              m
                                            z
                                                  D
                   ri       eiθ = cosθ + i sinθ

                            sinθ
                        θ
     -r        0                   r   Re
                    cosθ



                   -ri
Im
                               m
                                         z
                                                                    D
                   ri        e2π/im = cos(2π/m) + i sin(2π/m) =ω

                             sin(2π/m)
                         2π/m                                 1 
                                                            n        −kr    k
                                                        an z =     ω     G(ω z)
     -r        0                   r   Re n                    m
                   cos(2π/m)                  mod m=r           0≤km

                                                                        0 ≤ r  m.
                   -ri
Im

                         i
                                             z

                                e2π/im = cos(2π/m) + i sin(2π/m) =ω
                                                                            D
sin(2π/3)
   √                                                                        √
= 3/2                    120°                                      1   3
                                                       m=3      ω=− +    i
      -1             0              1   Re                         2  2
                cos(2π/3)
                = 1/2
                                                     r=1
                                                                 1  −k
                                                               n           k
                                                           an z =     ω G(ω z)
                                                                  3
                         -i                  n   mod 3=1            0≤k3
                                                           4    7
                                              a1 z + a4 z + a7 z + . . .
                                              1
                                             = (G(z) + ω −1 G(ωz) + ω −2 G(ω 2 z)).
                                              3
G(z) = a0 + a1 z + a2 z 2 + ... =
                                                   
                                                         an z n
                                                                     E
                                                   n≥0
                                                       
               G (z) = a1 + 2a2 z + 3a3 z 2 + ... =         (k + 1)ak+1 z k .
                                                       k≥0
                                
                                         n
                     zG (z) =         nan z .  nan 
                                n≥0
z
                        1    2 1    3
                                      2
                G(z) = a0 + a1 z + a2 z + ... =
                                      n≥0
                                             an z
                                                1
                                                  
                                                       n


                                                          k
                                                            E
         G(t)dt = a0 z + a1 z + a2 z + . . . =      ak−1 z .
      0                 2      3                  k
                                                      k≥1


                     1               2
          G(z) =          = 1 + z + z + ...
                   1−z
                       1                          
                                         2                   k
          G (z) =           = 1 + 2z + 3z + ... =     (k + 1)z .
                   (1 − z)2
                                                  k≥0
      z                                         1
                        1         1 2 1 3               k
         G(t)dt = ln        = z + z + z ... =          z .
      0              1−z          2     3           k
                                                      k≥1
0
                         z
                             G(t)dt = ln
                                          1
                                         1−z
                                                  1 2 1 3
                                             = z + z + z ... =
                                                  2   3
                                                               E
                                                               1
                                                                k
                                                              k≥1
                                                                   k
                                                                  z .



              1
 G(z)H(z) =      G(z) = a0 + (a0 + a1 )z + (a0 + a1 + a2 )z 2 + ...
            1−z
 1     1                            1 2              1 1 3
   ln      = 0 + (0 + 1)z + (0 + 1 + )z + (0 + 1 + + )z + ...
1−z 1−z                             2                2 3
                 3 2 11 3           
           = z + z + z + ... =          Hk z k .
                 2       6
                                                   k≥0
r
                 (1 + z) = 1 + rz +
                                    r(r − 1) 2
                                        2
                                            z + ... =
                                                       r 
                                                         k
                                                             zk .
                                                               k≥0
                                                                             F
                                    r
                                                                         
                    1                   −n − 1          k            n+k
                          =                          (−z) =                       zk .
               (1 − z)n+1                 k                           n
                              k≥0                             k≥0




                                                                       
          r       r(r − 2t − 1) 2                               r − kt         r     k
     x = 1 + rz +              z + ··· =                                            z .
                        2                                         k          r − kt
                                                        k≥0
1 2
                exp z = ez = 1 + z + z + · · · =
                                    2!
                                                  1
                                                   k!
                                                      zk .
                                                      k≥0
                                                                   F
                                                                     
       z    n   n   1           n+1                                  k       zk
     (e − 1) = z +                        z n+1 + · · · = n!                    .
                   n+1           n                                   n       k!
                                                               k
1 2 1 3
                  ln(1 + z) = z − z + z − · · · =
                                  2    3
                                                   (−1)k+1

                                                  k≥1
                                                        k
                                                            zk ,
                                                                          F
                                                           
                    1           1                       m+k
                          ln(      )=    (Hm+k − Hm )            zk .
               (1 − z)m+1     1−z                         k
                                       k≥1




                                                                            
          1 n    n   1                 n+1                                  k       zk
     (ln     ) =z +                              z n+1 + · · · = n!                    .
         1−z        n+1                 n                                   n       k!
                                                                      k
z(z + 1) . . . (z + n − 1) =
                                                  

                                                    k
                                                      k
                                                      n
                                                           k
                                                          z ,
                                                             
                                                                    F
                                 z n                  k 
                                                  =          zk ,
                   (1 − z)(1 − 2z) . . . (1 − nz)       n
                                                   k


                        z       1   1 2         Bk z k
                      z −1
                           = 1 − z + z + ··· =          .
                    e           2   12            k!
                                                       k≥0


                             r(r + 2t) 2         r(r + kt)k−1
               xr = 1 + rz +          z + ··· =                zk .
                                 2                     k!
                                                 k≥0
G(z)     z   n            [z n ]G(z)
                                                                G
                                       2                  n
               G(z) = a0 + a1 z + a2 z + · · ·          [z ]G(z) = an

                                           
                          n         1                  G(z)dz
                        [z ]G(z) =
                                   2πi         |z|=r    z n+1
110218 [아꿈사발표자료] taocp#1 1.2.9. 생성함수

More Related Content

What's hot

iTute Notes MM
iTute Notes MMiTute Notes MM
iTute Notes MM
coburgmaths
 
009 solid geometry
009 solid geometry009 solid geometry
009 solid geometry
physics101
 
Figures
FiguresFigures
Figures
Drradz Maths
 
Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006
akabaka12
 
Test
TestTest
Test
Kinni MEW
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
ramiz100111
 
Formulario de calculo
Formulario de calculoFormulario de calculo
Formulario de calculo
Henry Romero
 
กลศาสตร์เพิ่มเติม Ppt
กลศาสตร์เพิ่มเติม Pptกลศาสตร์เพิ่มเติม Ppt
กลศาสตร์เพิ่มเติม Ppt
tuiye
 
Lesson 13: Derivatives of Logarithmic and Exponential Functions
Lesson 13: Derivatives of Logarithmic and Exponential FunctionsLesson 13: Derivatives of Logarithmic and Exponential Functions
Lesson 13: Derivatives of Logarithmic and Exponential Functions
Matthew Leingang
 
數學測試
數學測試數學測試
數學測試
s9007912
 
One way to see higher dimensional surface
One way to see higher dimensional surfaceOne way to see higher dimensional surface
One way to see higher dimensional surface
Kenta Oono
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
ramiz100111
 
Lesson 16: Derivatives of Logarithmic and Exponential Functions
Lesson 16: Derivatives of Logarithmic and Exponential FunctionsLesson 16: Derivatives of Logarithmic and Exponential Functions
Lesson 16: Derivatives of Logarithmic and Exponential Functions
Matthew Leingang
 
0002
00020002
F2004 formulas final
F2004 formulas finalF2004 formulas final
F2004 formulas final
Abraham Prado
 

What's hot (15)

iTute Notes MM
iTute Notes MMiTute Notes MM
iTute Notes MM
 
009 solid geometry
009 solid geometry009 solid geometry
009 solid geometry
 
Figures
FiguresFigures
Figures
 
Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006
 
Test
TestTest
Test
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
 
Formulario de calculo
Formulario de calculoFormulario de calculo
Formulario de calculo
 
กลศาสตร์เพิ่มเติม Ppt
กลศาสตร์เพิ่มเติม Pptกลศาสตร์เพิ่มเติม Ppt
กลศาสตร์เพิ่มเติม Ppt
 
Lesson 13: Derivatives of Logarithmic and Exponential Functions
Lesson 13: Derivatives of Logarithmic and Exponential FunctionsLesson 13: Derivatives of Logarithmic and Exponential Functions
Lesson 13: Derivatives of Logarithmic and Exponential Functions
 
數學測試
數學測試數學測試
數學測試
 
One way to see higher dimensional surface
One way to see higher dimensional surfaceOne way to see higher dimensional surface
One way to see higher dimensional surface
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
 
Lesson 16: Derivatives of Logarithmic and Exponential Functions
Lesson 16: Derivatives of Logarithmic and Exponential FunctionsLesson 16: Derivatives of Logarithmic and Exponential Functions
Lesson 16: Derivatives of Logarithmic and Exponential Functions
 
0002
00020002
0002
 
F2004 formulas final
F2004 formulas finalF2004 formulas final
F2004 formulas final
 

Similar to 110218 [아꿈사발표자료] taocp#1 1.2.9. 생성함수

Copy of appendices
Copy of appendicesCopy of appendices
Copy of appendices
Chethan Nt
 
Pde unit 1
Pde unit 1Pde unit 1
Pde unit 1
Rajini10
 
Formulario de matematicas
Formulario de matematicasFormulario de matematicas
Formulario de matematicas
Carlos
 
S101-52國立新化高中(代理)
S101-52國立新化高中(代理)S101-52國立新化高中(代理)
S101-52國立新化高中(代理)
yustar1026
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbers
guestf1c1708
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
Dr. Nirav Vyas
 
Algebra formulae
Algebra formulaeAlgebra formulae
Algebra formulae
Tamizhmuhil
 
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
Destiny Nooppynuchy
 
Digital fiiter
Digital fiiterDigital fiiter
Digital fiiter
Senthil Kumar
 
Integral table
Integral tableIntegral table
Integral table
bags07
 
Integral table
Integral tableIntegral table
Integral table
Sasidhar Jannu
 
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Hayato Watanabe
 
Unexpected ineq
Unexpected ineqUnexpected ineq
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
Kuan-Lun Wang
 
Complex Number From Jayant for TV
Complex Number From Jayant for TVComplex Number From Jayant for TV
Complex Number From Jayant for TV
Jayant Singh
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
Aleksandr Yampolskiy
 
S05
S05S05
1 complex numbers
1 complex numbers 1 complex numbers
1 complex numbers
gandhinagar
 
Last+minute+revision(+Final)+(1) (1).pptx
Last+minute+revision(+Final)+(1) (1).pptxLast+minute+revision(+Final)+(1) (1).pptx
Last+minute+revision(+Final)+(1) (1).pptx
AryanMishra860130
 
ejercicio 140 libro de baldor resuelto
ejercicio 140 libro de baldor resueltoejercicio 140 libro de baldor resuelto
ejercicio 140 libro de baldor resuelto
Ivan Lobato Baltazar
 

Similar to 110218 [아꿈사발표자료] taocp#1 1.2.9. 생성함수 (20)

Copy of appendices
Copy of appendicesCopy of appendices
Copy of appendices
 
Pde unit 1
Pde unit 1Pde unit 1
Pde unit 1
 
Formulario de matematicas
Formulario de matematicasFormulario de matematicas
Formulario de matematicas
 
S101-52國立新化高中(代理)
S101-52國立新化高中(代理)S101-52國立新化高中(代理)
S101-52國立新化高中(代理)
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbers
 
Beta gamma functions
Beta gamma functionsBeta gamma functions
Beta gamma functions
 
Algebra formulae
Algebra formulaeAlgebra formulae
Algebra formulae
 
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
ตัวอย่างข้อสอบเก่า วิชาคณิตศาสตร์ ม.6 ปีการศึกษา 2553
 
Digital fiiter
Digital fiiterDigital fiiter
Digital fiiter
 
Integral table
Integral tableIntegral table
Integral table
 
Integral table
Integral tableIntegral table
Integral table
 
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
Sparse Representation of Multivariate Extremes with Applications to Anomaly R...
 
Unexpected ineq
Unexpected ineqUnexpected ineq
Unexpected ineq
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
 
Complex Number From Jayant for TV
Complex Number From Jayant for TVComplex Number From Jayant for TV
Complex Number From Jayant for TV
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
S05
S05S05
S05
 
1 complex numbers
1 complex numbers 1 complex numbers
1 complex numbers
 
Last+minute+revision(+Final)+(1) (1).pptx
Last+minute+revision(+Final)+(1) (1).pptxLast+minute+revision(+Final)+(1) (1).pptx
Last+minute+revision(+Final)+(1) (1).pptx
 
ejercicio 140 libro de baldor resuelto
ejercicio 140 libro de baldor resueltoejercicio 140 libro de baldor resuelto
ejercicio 140 libro de baldor resuelto
 

Recently uploaded

GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 

Recently uploaded (20)

GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 

110218 [아꿈사발표자료] taocp#1 1.2.9. 생성함수

  • 1.
  • 2. Generating Function < an >= a0 , a1 , a2 , a3 , ... 2 n G(z) = a0 + a1 z + a2 z + ... = an z . n≥0
  • 3. Generating Function 2 n G(z) = a0 + a1 z + a2 z + ... = an z . n≥0 an = a0 , a1 , a2 , ... an G(z)
  • 4. Generating Function 2 n G(z) = a0 + a1 z + a2 z + ... = an z . n≥0 an = a0 , a1 , a2 , ... an G(z)
  • 6.
  • 7. G(z) = H(z) = n≥0 n an z = a0 + a1 z + a2 z + ... n bn z = b0 + b1 z + b2 z + ... 2 2 A n≥0 n n αG(z) + βH(z) = α an z + β bn z n≥0 n≥0 = (αan + βbn )z n . n≥0 = + + + ... + + + + ... =( + )+( + ) +( + ) + ...
  • 8. m z G(z) = a0 z + a1 z = m n an−m z . m+1 2 G(z) = a0 + a1 z + a2 z + ... + a2 z m+2 + ... B n≥m 2 = a0−m + a1−m z + a2−m z + ... = 0·z 0 + 0·z 1 + 0·z 2 + ... + a0 z m + a1 z m+1 + ... n≺0 an=0 n m n = an−m z = z an z . n≥0 n≥0 an−m = 0, ..., 0, a0 , a1 , a2 , ... m
  • 9. z −m (G(z) − nm n an z ) = z −m n≥m an z n B −m m m+1 =z (am z + am+1 z + ...) 2 = a0+m + a1+m z + a2+m z + ... n = an+m z . n≥0 an+m = am , am+1 , am+2 , ...
  • 10. G(z) = 1, 1, 1, ... B zG(z) = 0, 1, 1, ... (1 − z)G(z) = 1 1 2 G(z) = = 1 + z + z + ... 1−z
  • 11. G(z) ‣ zG(z) Fn A+B Fn−1 ‣ 2 z G(z) Fn−2 ‣ 2 (1 − z − z )G(z) Fn − Fn−1 − Fn−2 n2 Fn − Fn−1 − Fn−2 = 0 (1 − z − z 2 )G(z) = F0 + (F1 − F0 )z + (F2 − F1 − F0 )z 2 =1 + (F3 − F2 − F1 )z 3 + ... =z z G(z) = 2 . 1−z−z
  • 12. A+B an = c1 an − 1 + ... + cm an−m G(z) X G(z) = m . 1 − c1 z − ... − cm z z G(z) = 1 − z − z2
  • 13. 2 G(z) = a0 + a1 z + a2 z + ... H(z) = b0 + b1 z + b2 z 2 + ... G(z)H(z) = (a0 + a1 z + a2 z 2 + ...)(b0 + b1 z + b2 z 2 + ...) C = (a0 b0 ) + (a0 b1 + a1 b0 )z + (a0 b2 + a1 b1 + a2 b0 )z 2 + ... 2 = c0 + c1 z + c2 z + ... n cn = ak bn−k k=0 z m G(z)
  • 14. G(z) = a0 + a1 z + a2 z 2 + ... C H(z) = b0 + b1 z + b2 z 2 + ... bn = 1 2 = 1 + z + z + ... 1 = 1−z 1 G(z)H(z) = G(z) 1−z = a0 + (a0 + a1 )z + (a0 + a1 + a2 )z 2 + ...
  • 15. F (z)G(z)H(z) = d0 , d1 , d2 , ... dn = a i bj c k . C i,j,k≥0 i+j+k=n n from F (z)G(z), cn = ak bn−k k=0 ajk z k = zn a0k0 a1k1 . . . j≥0 k≥0 n≥0 k0 ,k1 ,...≥0 k0 +k1 +...=n
  • 16. z D G(z) = a0 + a1 z + a2 z 2 + a3 z 3 + ... G(−z) = a0 − a1 z + a2 z 2 − a3 z 3 + ... G(z) + G(−z) = 2a0 + 2a2 z 2 + 2a4 z 4 + ... 1 2 4 (G(z) + G(−z)) = a0 + a2 z + a4 z + . . . 2 G(z) = a0 + a1 z + a2 z 2 + a3 z 3 + ... G(−z) = a0 − a1 z + a2 z 2 − a3 z 3 + ... G(z) − G(−z) = 2a1 z + 2a3 z 3 + 2a5 z 5 + ... 1 (G(z) − G(−z)) = a1 z + a3 z 3 + a5 z 5 + . . . 2
  • 17. Im m z D ri eiθ = cosθ + i sinθ sinθ θ -r 0 r Re cosθ -ri
  • 18. Im m z D ri e2π/im = cos(2π/m) + i sin(2π/m) =ω sin(2π/m) 2π/m 1 n −kr k an z = ω G(ω z) -r 0 r Re n m cos(2π/m) mod m=r 0≤km 0 ≤ r m. -ri
  • 19. Im i z e2π/im = cos(2π/m) + i sin(2π/m) =ω D sin(2π/3) √ √ = 3/2 120° 1 3 m=3 ω=− + i -1 0 1 Re 2 2 cos(2π/3) = 1/2 r=1 1 −k n k an z = ω G(ω z) 3 -i n mod 3=1 0≤k3 4 7 a1 z + a4 z + a7 z + . . . 1 = (G(z) + ω −1 G(ωz) + ω −2 G(ω 2 z)). 3
  • 20. G(z) = a0 + a1 z + a2 z 2 + ... = an z n E n≥0 G (z) = a1 + 2a2 z + 3a3 z 2 + ... = (k + 1)ak+1 z k . k≥0 n zG (z) = nan z . nan n≥0
  • 21. z 1 2 1 3 2 G(z) = a0 + a1 z + a2 z + ... = n≥0 an z 1 n k E G(t)dt = a0 z + a1 z + a2 z + . . . = ak−1 z . 0 2 3 k k≥1 1 2 G(z) = = 1 + z + z + ... 1−z 1 2 k G (z) = = 1 + 2z + 3z + ... = (k + 1)z . (1 − z)2 k≥0 z 1 1 1 2 1 3 k G(t)dt = ln = z + z + z ... = z . 0 1−z 2 3 k k≥1
  • 22. 0 z G(t)dt = ln 1 1−z 1 2 1 3 = z + z + z ... = 2 3 E 1 k k≥1 k z . 1 G(z)H(z) = G(z) = a0 + (a0 + a1 )z + (a0 + a1 + a2 )z 2 + ... 1−z 1 1 1 2 1 1 3 ln = 0 + (0 + 1)z + (0 + 1 + )z + (0 + 1 + + )z + ... 1−z 1−z 2 2 3 3 2 11 3 = z + z + z + ... = Hk z k . 2 6 k≥0
  • 23. r (1 + z) = 1 + rz + r(r − 1) 2 2 z + ... = r k zk . k≥0 F r 1 −n − 1 k n+k = (−z) = zk . (1 − z)n+1 k n k≥0 k≥0 r r(r − 2t − 1) 2 r − kt r k x = 1 + rz + z + ··· = z . 2 k r − kt k≥0
  • 24. 1 2 exp z = ez = 1 + z + z + · · · = 2! 1 k! zk . k≥0 F z n n 1 n+1 k zk (e − 1) = z + z n+1 + · · · = n! . n+1 n n k! k
  • 25. 1 2 1 3 ln(1 + z) = z − z + z − · · · = 2 3 (−1)k+1 k≥1 k zk , F 1 1 m+k ln( )= (Hm+k − Hm ) zk . (1 − z)m+1 1−z k k≥1 1 n n 1 n+1 k zk (ln ) =z + z n+1 + · · · = n! . 1−z n+1 n n k! k
  • 26. z(z + 1) . . . (z + n − 1) = k k n k z , F z n k = zk , (1 − z)(1 − 2z) . . . (1 − nz) n k z 1 1 2 Bk z k z −1 = 1 − z + z + ··· = . e 2 12 k! k≥0 r(r + 2t) 2 r(r + kt)k−1 xr = 1 + rz + z + ··· = zk . 2 k! k≥0
  • 27. G(z) z n [z n ]G(z) G 2 n G(z) = a0 + a1 z + a2 z + · · · [z ]G(z) = an n 1 G(z)dz [z ]G(z) = 2πi |z|=r z n+1