Exhaustive generation of some lattice paths and their prefixes

被引:5
作者
Barcucci, Elena [1 ]
Bernini, Antonio [1 ]
Pinzani, Renzo [1 ]
机构
[1] Univ Firenze, Dipartimento Matemat & Informat U Dini, Viale Morgagni 65, I-50134 Florence, Italy
关键词
Exhaustive generation; Motzkin and Schroder paths; CAT algorithm;
D O I
10.1016/j.tcs.2020.12.013
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We refer to positive lattice paths as to paths in the discrete plane constituted by different kinds of steps (north-east, east and south-east), starting from the origin and never going under the x-axis. They have been deeply studied both from a combinatorial and an algorithmic point of view. We propose some algorithms for the exhaustive generation of positive paths which are Motzkin and Schroder paths and their prefixes, according to their length. For each kind of paths we define a recursive algorithm as well as an iterative one, specifying which path follows a given one in the lexicographic order. Furthermore we study the complexity of these algorithms by using the relations between the number of paths of a given size and the number of final north-east or south-east steps. (C) 2020 Elsevier B.V. All rights reserved.
引用
收藏
页码:47 / 52
页数:6
相关论文
共 14 条