SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Polya recurrence
Polya recurrencePolya recurrence
Polya recurrence
Brian Burns
 
Limits
LimitsLimits
Limits
sarcia
 
11 x1 t12 07 primitive function
11 x1 t12 07 primitive function11 x1 t12 07 primitive function
11 x1 t12 07 primitive function
Nigel Simmons
 
Add maths revision
Add maths revisionAdd maths revision
Add maths revision
morabisma
 

What's hot (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
 

Similar to Hipster maths

Mathematics In Plain Sight
Mathematics In Plain SightMathematics In Plain Sight
Mathematics In Plain Sight
David Krueger
 
functions
 functions  functions
functions
Gaditek
 

Similar to 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
 

More from Horacio González Duhart

More from 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
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .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...
 
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
 
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
 
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
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

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.