paper

Random Generation of -coloured Motzkin Paths

arXiv:2606.13151 · doi:10.4204/EPTCS.445.2

Abstract

We study k-coloured Motzkin paths, namely Motzkin paths in which horizontal steps can be coloured in k different ways, and investigate their connection with the number of prefixes ending at odd height from both an analytical and a combinatorial point of view. Moreover, the combinatorial approach provides a random generation algorithm for k-coloured Motzkin paths in linear-time.

In Proceedings GASCom 2026, arXiv:2606.09910