SlideShare uma empresa Scribd logo
1 de 20
Horacio G. Duhart
hgd20@bath.ac.uk
09/10/2014
How many ways are there to partition a set of size N?
{a} {a,b} {a,b,c}
N=1 N=2 N=3
{a} {a} {b}
{a,b}
{a} {b} {c} {d}
{a} {b,c,d}
{b} {a,c,d}
{c} {a,b,d}
{d} {a,b,c}
{a,b} {c} {d}
{a,c} {b} {d}
{a,d} {b} {c}
{b,c} {a} {d}
{b,d} {a} {c}
{c,d} {a} {b}
{a,b} {c,d}
{a,c} {b,d}
{a,d} {b,c}
{a,b,c,d}
S=1 S=2
N=4
{a,b,c,d}
{a} {b} {c}
{a} {b,c}
{b} {a,c}
{c} {a,b}
{a,b,c}
S=5 S=15
Follow strategies in this book:
Specification
Generating
function
Asymptotic
estimate
Desired result!
Symbolic
method
Complex
asymptotics
We start with a simple example:
How many binary words are there of size N?
We first need to define a combinatorial class, namely the alphabet, say {a,b}
We then define a size function from the combinatorial class
to the non-negative integers.
In our example, we want this function to represent the
length of the word, so each character has size 1, that is
|a|=|b|=1.
We need to go through some of the basics:
Combinatorial class: A countable non empty set, finite or infinite.
Size of an element: A function from the combinatorial class to the non-negative
integers. The number of elements of any given size is finite.
Counting sequence: The counting sequence of a combinatorial class is the sequence of
integers where the n-th term is the number of elements in the combinatorial class that
have size n.
Ordinary generating function: This is the formal power series
The set of binary words is another combinatorial class. We can think of it as the set of
words of length 1 or 2 or 3, etc… this is what we will call a sequence.
In our example, if we define the combinatorial classes:
Then, we can think of the combinatorial class of the binary words as
These “sequence” operator and addition of combinatorial classes are examples of the
possible operators of the symbolic method.
We now want to find a generating function…
Note that the binary words satisfy the following recursion:
Therefore, the OGF is given by:
This is, clearly, a geometric series:
(only say it when
talking about the
geometric series… or
the exponential
Taylor expansion… or
other clear stuff…)
Fortunately, we don’t need to find the generating function of all possible operators on
combinatorial classes… someone else has.
Check the book! I got this table from there…
The magic, of course, is to find the coefficient of the n-th power of z in the series
expansion of the generating function.
This task is sometimes easy…
But sometimes hard… for the partitions of a set:
So we also define the exponential generating function (EGF) of a counting sequence
For the partition example:
This gif has nothing to do with what we’re talking about… but since the most interesting
bit is about to start it is worth start paying attention once more.
In order to find the coefficients of the generating functions we first assume they are
defined on the complex numbers.
Basic concepts of complex analysis:
A function f is analytic at if
It is holomorphic at if it is differentiable at
Interestingly, a function is analytic if and only if it is holomorphic.
Finally, a function is meromorphic at if there exists a neighbourhood of where
the function can be represented as
If we say that h has a pole of order M at. The coefficient is called the
residue.
With this in mind, if the generating function is analytic
Then is meromorphic at 0, and it is a pole of order n+1
And the coefficient of the n-th power of z of the generating function is precisely the
residue of this quotient
So we just need to find the residue…
According to the Cauchy Integral Formula, we can calculate the residue at 0 to find the
n-th coefficient of the generating function by
Where the contour is a simple closed curved around 0 that has no other pole in its
enclosed area.
For the example:
For the curious ones, this is
done by partial fractions…
and yes, I did it by hand.
How does the magic work? Here we go… (pay attention because I’ll do this only once)
Close to the saddle point: Taylor
Far from the saddle point: Negligible
Close to saddle point Far from saddle point
Write the second derivative in polar coordinates:
And do a change of variable:
Approximate by a Gaussian integral:
Putting all together, we get this:
Where the saddle point is the unique solution to:
So… I did this to the binary word problem and found
What about the partition question?
Well… apparently is not that easy.
Hipster maths

Mais conteúdo relacionado

Mais procurados

Mais procurados (19)

Limit and continuity (2)
Limit and continuity (2)Limit and continuity (2)
Limit and continuity (2)
 
Polya recurrence
Polya recurrencePolya recurrence
Polya recurrence
 
Limits
LimitsLimits
Limits
 
Pertemuan 4
Pertemuan 4 Pertemuan 4
Pertemuan 4
 
Rational numbers ppt
Rational numbers pptRational numbers ppt
Rational numbers ppt
 
Real number Class 10th
Real number Class 10thReal number Class 10th
Real number Class 10th
 
Daryl
DarylDaryl
Daryl
 
Real numbers
Real numbersReal numbers
Real numbers
 
Gradient of a curve and equation of a
Gradient of a curve and equation of aGradient of a curve and equation of a
Gradient of a curve and equation of a
 
Limits
LimitsLimits
Limits
 
Ms2 gradient of a curve and equation
Ms2 gradient of a curve and equationMs2 gradient of a curve and equation
Ms2 gradient of a curve and equation
 
3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs3.4 Polynomial Functions and Their Graphs
3.4 Polynomial Functions and Their Graphs
 
Limit of Function And Its Types
Limit of Function And Its TypesLimit of Function And Its Types
Limit of Function And Its Types
 
Limit & continuity, B.Sc . 1 calculus , Unit - 1
Limit & continuity, B.Sc . 1 calculus , Unit - 1Limit & continuity, B.Sc . 1 calculus , Unit - 1
Limit & continuity, B.Sc . 1 calculus , Unit - 1
 
11 x1 t12 07 primitive function
11 x1 t12 07 primitive function11 x1 t12 07 primitive function
11 x1 t12 07 primitive function
 
Add maths revision
Add maths revisionAdd maths revision
Add maths revision
 
4.3 Logarithmic Functions
4.3 Logarithmic Functions4.3 Logarithmic Functions
4.3 Logarithmic Functions
 
Complex analysis book by iit
Complex analysis book by iitComplex analysis book by iit
Complex analysis book by iit
 
4.1 Inverse Functions
4.1 Inverse Functions4.1 Inverse Functions
4.1 Inverse Functions
 

Semelhante a Hipster maths

Unit 05 - Limits and Continuity.pdf
Unit 05 - Limits and Continuity.pdfUnit 05 - Limits and Continuity.pdf
Unit 05 - Limits and Continuity.pdfSagarPetwal
 
Mathematics In Plain Sight
Mathematics In Plain SightMathematics In Plain Sight
Mathematics In Plain SightDavid Krueger
 
Difference between logistic regression shallow neural network and deep neura...
Difference between logistic regression  shallow neural network and deep neura...Difference between logistic regression  shallow neural network and deep neura...
Difference between logistic regression shallow neural network and deep neura...Chode Amarnath
 
3.3 Logarithmic Functions
3.3 Logarithmic Functions3.3 Logarithmic Functions
3.3 Logarithmic FunctionsVictoria Ryburn
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp scienceRaghu nath
 
Calculus ii power series and functions
Calculus ii   power series and functionsCalculus ii   power series and functions
Calculus ii power series and functionsmeezanchand
 
ML Study Jams Session 2.pptx
ML Study Jams Session 2.pptxML Study Jams Session 2.pptx
ML Study Jams Session 2.pptxMayankChadha14
 
Quadratic functions
Quadratic functionsQuadratic functions
Quadratic functionsACdeGuzman30
 
functions
 functions  functions
functions Gaditek
 

Semelhante a Hipster maths (20)

1 1 number theory
1 1 number theory1 1 number theory
1 1 number theory
 
Algorithms DM
Algorithms DMAlgorithms DM
Algorithms DM
 
Unit 05 - Limits and Continuity.pdf
Unit 05 - Limits and Continuity.pdfUnit 05 - Limits and Continuity.pdf
Unit 05 - Limits and Continuity.pdf
 
Mathematics In Plain Sight
Mathematics In Plain SightMathematics In Plain Sight
Mathematics In Plain Sight
 
Difference between logistic regression shallow neural network and deep neura...
Difference between logistic regression  shallow neural network and deep neura...Difference between logistic regression  shallow neural network and deep neura...
Difference between logistic regression shallow neural network and deep neura...
 
1543 integration in mathematics b
1543 integration in mathematics b1543 integration in mathematics b
1543 integration in mathematics b
 
Algorithm Assignment Help
Algorithm Assignment HelpAlgorithm Assignment Help
Algorithm Assignment Help
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Solution 3.
Solution 3.Solution 3.
Solution 3.
 
3.3 Logarithmic Functions
3.3 Logarithmic Functions3.3 Logarithmic Functions
3.3 Logarithmic Functions
 
Function
Function Function
Function
 
Big o
Big oBig o
Big o
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp science
 
Calculus ii power series and functions
Calculus ii   power series and functionsCalculus ii   power series and functions
Calculus ii power series and functions
 
L16
L16L16
L16
 
ML Study Jams Session 2.pptx
ML Study Jams Session 2.pptxML Study Jams Session 2.pptx
ML Study Jams Session 2.pptx
 
project
projectproject
project
 
Quadratic functions
Quadratic functionsQuadratic functions
Quadratic functions
 
1.5 all notes
1.5 all notes1.5 all notes
1.5 all notes
 
functions
 functions  functions
functions
 

Mais de Horacio González Duhart

R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der holi...
R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der  holi...R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der  holi...
R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der holi...Horacio González Duhart
 
Social Media Meets Artificial Intelligence
Social Media Meets Artificial IntelligenceSocial Media Meets Artificial Intelligence
Social Media Meets Artificial IntelligenceHoracio González Duhart
 
Semi infinite TASEP: Large Deviations and Matrix Products
Semi infinite TASEP: Large Deviations and Matrix ProductsSemi infinite TASEP: Large Deviations and Matrix Products
Semi infinite TASEP: Large Deviations and Matrix ProductsHoracio González Duhart
 
Small to big: Equations under a microscope
Small to big: Equations under a microscopeSmall to big: Equations under a microscope
Small to big: Equations under a microscopeHoracio González Duhart
 
LDP of the hydrodynamic limit of the TASEP to Burgers's Equation
LDP of the hydrodynamic limit of the TASEP to Burgers's EquationLDP of the hydrodynamic limit of the TASEP to Burgers's Equation
LDP of the hydrodynamic limit of the TASEP to Burgers's EquationHoracio González Duhart
 
A glimpse into mathematical finance? The realm of option pricing models
A glimpse into mathematical finance? The realm of option pricing modelsA glimpse into mathematical finance? The realm of option pricing models
A glimpse into mathematical finance? The realm of option pricing modelsHoracio González Duhart
 
An abnormally short talk on large deviations
An abnormally short talk on large deviationsAn abnormally short talk on large deviations
An abnormally short talk on large deviationsHoracio González Duhart
 

Mais de Horacio González Duhart (19)

R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der holi...
R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der  holi...R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der  holi...
R&R - Marken- und Werbe-Trackings waren gestern. Die Zukunft gehört der holi...
 
Social Media Meets Artificial Intelligence
Social Media Meets Artificial IntelligenceSocial Media Meets Artificial Intelligence
Social Media Meets Artificial Intelligence
 
Semi infinite TASEP: Large Deviations and Matrix Products
Semi infinite TASEP: Large Deviations and Matrix ProductsSemi infinite TASEP: Large Deviations and Matrix Products
Semi infinite TASEP: Large Deviations and Matrix Products
 
Small to big: Equations under a microscope
Small to big: Equations under a microscopeSmall to big: Equations under a microscope
Small to big: Equations under a microscope
 
The Marvels of Gamma Convergence
The Marvels of Gamma ConvergenceThe Marvels of Gamma Convergence
The Marvels of Gamma Convergence
 
TASEP: LDP via MPA
TASEP: LDP via MPATASEP: LDP via MPA
TASEP: LDP via MPA
 
Large Deviations: An Introduction
Large Deviations: An IntroductionLarge Deviations: An Introduction
Large Deviations: An Introduction
 
LDP of the hydrodynamic limit of the TASEP to Burgers's Equation
LDP of the hydrodynamic limit of the TASEP to Burgers's EquationLDP of the hydrodynamic limit of the TASEP to Burgers's Equation
LDP of the hydrodynamic limit of the TASEP to Burgers's Equation
 
Life Insurance Mathematics
Life Insurance MathematicsLife Insurance Mathematics
Life Insurance Mathematics
 
A glimpse into mathematical finance? The realm of option pricing models
A glimpse into mathematical finance? The realm of option pricing modelsA glimpse into mathematical finance? The realm of option pricing models
A glimpse into mathematical finance? The realm of option pricing models
 
An abnormally short talk on large deviations
An abnormally short talk on large deviationsAn abnormally short talk on large deviations
An abnormally short talk on large deviations
 
Excel stuff
Excel stuffExcel stuff
Excel stuff
 
Matemáticas hasta en la sopa
Matemáticas hasta en la sopaMatemáticas hasta en la sopa
Matemáticas hasta en la sopa
 
WASEP
WASEPWASEP
WASEP
 
Problemilla
ProblemillaProblemilla
Problemilla
 
Structural Equation Modelling
Structural Equation ModellingStructural Equation Modelling
Structural Equation Modelling
 
A random talk on random trees
A random talk on random treesA random talk on random trees
A random talk on random trees
 
Angry Birds are Happy with Maths
Angry Birds are Happy with MathsAngry Birds are Happy with Maths
Angry Birds are Happy with Maths
 
Transition State Theory
Transition State TheoryTransition State Theory
Transition State Theory
 

Último

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Último (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Hipster maths

  • 2.
  • 3.
  • 4. How many ways are there to partition a set of size N? {a} {a,b} {a,b,c} N=1 N=2 N=3 {a} {a} {b} {a,b} {a} {b} {c} {d} {a} {b,c,d} {b} {a,c,d} {c} {a,b,d} {d} {a,b,c} {a,b} {c} {d} {a,c} {b} {d} {a,d} {b} {c} {b,c} {a} {d} {b,d} {a} {c} {c,d} {a} {b} {a,b} {c,d} {a,c} {b,d} {a,d} {b,c} {a,b,c,d} S=1 S=2 N=4 {a,b,c,d} {a} {b} {c} {a} {b,c} {b} {a,c} {c} {a,b} {a,b,c} S=5 S=15
  • 5. Follow strategies in this book: Specification Generating function Asymptotic estimate Desired result! Symbolic method Complex asymptotics
  • 6. We start with a simple example: How many binary words are there of size N? We first need to define a combinatorial class, namely the alphabet, say {a,b} We then define a size function from the combinatorial class to the non-negative integers. In our example, we want this function to represent the length of the word, so each character has size 1, that is |a|=|b|=1.
  • 7. We need to go through some of the basics: Combinatorial class: A countable non empty set, finite or infinite. Size of an element: A function from the combinatorial class to the non-negative integers. The number of elements of any given size is finite. Counting sequence: The counting sequence of a combinatorial class is the sequence of integers where the n-th term is the number of elements in the combinatorial class that have size n. Ordinary generating function: This is the formal power series
  • 8. The set of binary words is another combinatorial class. We can think of it as the set of words of length 1 or 2 or 3, etc… this is what we will call a sequence. In our example, if we define the combinatorial classes: Then, we can think of the combinatorial class of the binary words as These “sequence” operator and addition of combinatorial classes are examples of the possible operators of the symbolic method. We now want to find a generating function…
  • 9. Note that the binary words satisfy the following recursion: Therefore, the OGF is given by: This is, clearly, a geometric series: (only say it when talking about the geometric series… or the exponential Taylor expansion… or other clear stuff…)
  • 10. Fortunately, we don’t need to find the generating function of all possible operators on combinatorial classes… someone else has. Check the book! I got this table from there…
  • 11. The magic, of course, is to find the coefficient of the n-th power of z in the series expansion of the generating function. This task is sometimes easy… But sometimes hard… for the partitions of a set: So we also define the exponential generating function (EGF) of a counting sequence For the partition example:
  • 12. This gif has nothing to do with what we’re talking about… but since the most interesting bit is about to start it is worth start paying attention once more.
  • 13. In order to find the coefficients of the generating functions we first assume they are defined on the complex numbers. Basic concepts of complex analysis: A function f is analytic at if It is holomorphic at if it is differentiable at Interestingly, a function is analytic if and only if it is holomorphic. Finally, a function is meromorphic at if there exists a neighbourhood of where the function can be represented as If we say that h has a pole of order M at. The coefficient is called the residue.
  • 14. With this in mind, if the generating function is analytic Then is meromorphic at 0, and it is a pole of order n+1 And the coefficient of the n-th power of z of the generating function is precisely the residue of this quotient So we just need to find the residue…
  • 15. According to the Cauchy Integral Formula, we can calculate the residue at 0 to find the n-th coefficient of the generating function by Where the contour is a simple closed curved around 0 that has no other pole in its enclosed area. For the example: For the curious ones, this is done by partial fractions… and yes, I did it by hand.
  • 16.
  • 17. How does the magic work? Here we go… (pay attention because I’ll do this only once) Close to the saddle point: Taylor Far from the saddle point: Negligible Close to saddle point Far from saddle point Write the second derivative in polar coordinates: And do a change of variable: Approximate by a Gaussian integral:
  • 18. Putting all together, we get this: Where the saddle point is the unique solution to: So… I did this to the binary word problem and found
  • 19. What about the partition question? Well… apparently is not that easy.