We address the enumeration of walks with small steps confined to a two-dimensional cone, for example the quarter plane, three-quarter plane or the slit plane. In the quarter plane case, the solutions for unweighted step-sets are already well understood, in the sense that it is known precisely for which cases the generating function is algebraic, D-finite or D-algebraic, and exact integral expressions are known in all cases. We derive similar results in a much more general setting: we enumerate walks on an $M$-quadrant cone for any positive integer $M$, with weighted steps starting at any point. The main breakthrough in this work is the derivation of an analytic functional equation which characterises the generating function of these walks, which is analogous to one now used widely for quarter-plane walks. In the case $M=3$, which corresponds to walks avoiding a quadrant, we provide exact integral-expression solutions for walks with weighted small steps which determine the generating function ${\sf C}(x,y;t)$ counting these walks. Moreover, for each step-set and starting point of the walk we determine whether the generating function ${\sf C}(x,y;t)$ is algebraic, D-finite or D-algebraic as a function of $x$ and $y$. In fact we provide results of this type for any $M$-quadrant cone, showing that this nature is the same for any odd $M$. For $M$ even we find that the generating functions counting these walks are D-finite in $x$ and $y$, and algebraic if and only if the starting point of the walk is on the same axis as the boundaries of the cone.
我们研究从一个给定的点(i\_0,j\_0)开始,在一个有限集S的步骤,并限制在第一象限的平面行走。它们的计数可以用一种系统的方式来攻击:通过它们的长度(变量t)和端点的坐标(变量x,y)来计数它们的生成函数Q(x,y,t)满足一个线性泛函方程,该方程编码了行走的逐步描述。例如,对于从原点开始的正方形晶格行走,该等式为(xy-t(x + y + x^2 y + x y^2))Q(x,y,t)= xy-xtQ(x,0,t)-ytQ(0,y,t)。本文讨论的中心问题是级数Q(x,y,t)的性质。什么时候是代数?什么时候是D有限的(或完整的)?这些性质能从函数方程本身导出吗?我们的第一个结果是一个新的证明旧定理由于Kreweras,根据这些步行模型之一,神秘的原因,一个代数生成函数。然后,我们给出了M. Petkovsek和作者。在这两种情况下,我们都直接从函数方程出发。
Generating 2-Gray codes for grand Motzkin paths and grand Dyck paths with air pockets in constant amortized time
School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);Faculty of Applied Sciences, Macao Polytechnic University(澳门理工大学应用科学学院)