On the generating functions of pattern-avoiding Motzkin paths
Combinatorics
2022-02-28 v2
Abstract
Using a recursive approach, we show that the generating function for sets of Motzkin paths avoiding a single (not necessarily consecutive) pattern is rational over and the Catalan generating function , where keeps track of the length of the path. Moreover, an algorithm is provided for finding the generating function in the more general case of an arbitrary set of patterns. In addition, this algorithm allows us to find a combinatorial specification for pattern-avoiding Motzkin paths, which can be used not only for enumeration, but also for exhaustive and random generation.
Keywords
Cite
@article{arxiv.2108.03037,
title = {On the generating functions of pattern-avoiding Motzkin paths},
author = {Christian Bean and Antonio Bernini and Matteo Cervetti and Luca Ferrari},
journal= {arXiv preprint arXiv:2108.03037},
year = {2022}
}