Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
Asymptotic analysis of weighted walks in A2. Supplement to AofA submission.
Project: AofA-A2Walks
Path: A2Asymptotics.ipynb
Views: 19Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu2204Kernel: SageMath 10.2
Companion code for Asymptotics of weighted reflectable walks in (extended abstract)
Torin Greenwood
Samuel Simon
This worksheet takes the Tandem stepset and computes the critical points and the asymptotics at each critical point.
Step 1: Expressing the walks as the diagonal of a rational generating function.
The following code block is from Steve Melczer's book, An Invitation to Analytic Combinatorics. Code available online: https://melczer.ca/files/TextbookCode/Chapter4/Example4-3-5-6-GeneratingWalkGroupsAndGFs.html
In [3]:
In [4]:
Computing the GF:
In [5]:
(b^2*x - a*y^2)*(b*x^2 - a^2*y)*(a*b - x*y)/((b^2*t*x^2 + a^2*b*t*y + a*t*x*y^2 - a*b)*a^2*b^2*(x - 1)*x*(y - 1)*y)
In [6]:
Step 2: Finding Critical Points
We again borrow code from Steve Melczer's book to compute critical points and smooth asymptotics. The code is available online here: https://melczer.ca/files/TextbookCode/Chapter5/Example5-SmoothASM.html
In [7]:
Computing the critical points:
In [8]:
Define V_0 to be the vanishing set of the main factor of H, V_1 to be the vanishing set of 1 - x, and V_2 to be the vanishing set of 1 - y.
-----------------------------------------------------------------------
Critical points for S_0:
-----------------------------------------------------------------------
Critical points for S_{0, 1}:
-----------------------------------------------------------------------
Critical points for S_{0, 2}:
-----------------------------------------------------------------------
Critical points for S_{0, 1, 2}:
Step 3: Contributions to Asymptotics
Free:
In [36]:
The GF after two residues:
Asymptotics in the free case:
Axial:
In [38]:
The axial case, when a = b^2 > 1:
Axial:
In [39]:
Asymptotics for the axial case, when b = a^2 > 1:
Directed:
In [40]:
Asymptotics for the directed case, when a > 1 and b < sqrt(a):
Directed:
In [41]:
Asymptotics for the directed case, when b > 1 and a < sqrt(b):
Balanced: and
In [37]:
Asymptotics in the balanced case:
Reluctant: and
In [7]:
In [11]:
The asymptotics from the first critical point are:
3^n
1/n
-27*sqrt(3)*(a*b - 1)/(pi*(a - 1)^3*(b - 1)^3*n^3)
In [1]:
In [2]: