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 x and the Catalan generating function [Formula presented], where x 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.

On the generating functions of pattern-avoiding Motzkin paths / Bean C.; Bernini A.; Cervetti M.; Ferrari L.. - In: JOURNAL OF SYMBOLIC COMPUTATION. - ISSN 0747-7171. - STAMPA. - 113:(2022), pp. 126-138. [10.1016/j.jsc.2022.02.006]

On the generating functions of pattern-avoiding Motzkin paths

Bernini A.;Cervetti M.;Ferrari L.
2022

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 x and the Catalan generating function [Formula presented], where x 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.
2022
113
126
138
Bean C.; Bernini A.; Cervetti M.; Ferrari L.
File in questo prodotto:
File Dimensione Formato  
motzkin_revised_version.pdf

Open Access dal 25/03/2024

Descrizione: Articolo principale
Tipologia: Versione finale referata (Postprint, Accepted manuscript)
Licenza: Creative commons
Dimensione 319.51 kB
Formato Adobe PDF
319.51 kB Adobe PDF

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1262218
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 2
  • ???jsp.display-item.citation.isi??? 2
social impact