Combinatorial Generation Algorithms for Some Lattice Paths Using the Method Based on AND/OR Trees

被引:1
作者
Shablya, Yuriy [1 ]
机构
[1] Tomsk State Univ Control Syst & Radioelect, Lab Algorithms & Technol Discrete Struct Res, Tomsk 634050, Russia
基金
俄罗斯科学基金会;
关键词
combinatorial generation; ranking; unranking; AND; OR tree; lattice path; Dyck path; Delannoy path; Schroder path; Motzkin path;
D O I
10.3390/a16060266
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Methods of combinatorial generation make it possible to develop algorithms for generating objects from a set of discrete structures with given parameters and properties. In this article, we demonstrate the possibilities of using the method based on AND/OR trees to obtain combinatorial generation algorithms for combinatorial sets of several well-known lattice paths (North-East lattice paths, Dyck paths, Delannoy paths, Schroder paths, and Motzkin paths). For each considered combinatorial set of lattice paths, we construct the corresponding AND/OR tree structure where the number of its variants is equal to the number of objects in the combinatorial set. Applying the constructed AND/OR tree structures, we have developed new algorithms for ranking and unranking their variants. The performed computational experiments have confirmed the obtained theoretical estimation of asymptotic computational complexity for the developed ranking and unranking algorithms.
引用
收藏
页数:27
相关论文
共 29 条
[1]   Why Delannoy numbers? [J].
Banderier, C ;
Schwer, S .
JOURNAL OF STATISTICAL PLANNING AND INFERENCE, 2005, 135 (01) :40-54
[2]  
Barcucci E, 1999, J DIFFER EQU APPL, V5, P435
[3]  
Barcucci E., 2018, P 11 INT C RAND EXH
[4]   Exhaustive generation of some lattice paths and their prefixes [J].
Barcucci, Elena ;
Bernini, Antonio ;
Pinzani, Renzo .
THEORETICAL COMPUTER SCIENCE, 2021, 878 :47-52
[5]  
BENT SW, 1990, LECT NOTES COMPUT SC, V447, P132
[6]  
combos, COMB OBJ SERV
[7]   Skew Dyck paths [J].
Deutsch, Emeric ;
Munarini, Emanuele ;
Rinaldi, Simone .
JOURNAL OF STATISTICAL PLANNING AND INFERENCE, 2010, 140 (08) :2191-2203
[8]   A CALCULUS FOR THE RANDOM GENERATION OF LABELED COMBINATORIAL STRUCTURES [J].
FLAJOLET, P ;
ZIMMERMAN, P ;
VANCUTSEM, B .
THEORETICAL COMPUTER SCIENCE, 1994, 132 (1-2) :1-35
[9]   A history and a survey of lattice path enumeration [J].
Humphreys, Katherine .
JOURNAL OF STATISTICAL PLANNING AND INFERENCE, 2010, 140 (08) :2237-2254
[10]  
Knuth D.E., 2011, Combinatorial Algorithms, V1st