We consider in this paper the class M_k^n of generalized Motzkin paths of length n, that is, lattice paths using steps (1, 1), (1,−1), (k, 0), where k is a fixed positive integer, starting at the origin (0, 0), running above the x-axis, and ending at (n, 0). The area is the region bounded by the path and the x-axis. We first establish a bijection between the area of paths in M_k^n and some lattice paths of length n +1. Then, by using a rejection technique, we obtain a linear algorithm with an average time complexity (k mod 2 + 1)(n + 1).

Non uniform random generation of generalized Motzkin paths / S. BRLEK; E. PERGOLA; O. ROQUES. - In: ACTA INFORMATICA. - ISSN 0001-5903. - STAMPA. - 42:(2006), pp. 603-616. [10.1007/s00236-006-0008-x]

Non uniform random generation of generalized Motzkin paths

PERGOLA, ELISA;
2006

Abstract

We consider in this paper the class M_k^n of generalized Motzkin paths of length n, that is, lattice paths using steps (1, 1), (1,−1), (k, 0), where k is a fixed positive integer, starting at the origin (0, 0), running above the x-axis, and ending at (n, 0). The area is the region bounded by the path and the x-axis. We first establish a bijection between the area of paths in M_k^n and some lattice paths of length n +1. Then, by using a rejection technique, we obtain a linear algorithm with an average time complexity (k mod 2 + 1)(n + 1).
2006
42
603
616
S. BRLEK; E. PERGOLA; O. ROQUES
File in questo prodotto:
File Dimensione Formato  
Acta06.pdf

Accesso chiuso

Tipologia: Versione finale referata (Postprint, Accepted manuscript)
Licenza: Tutti i diritti riservati
Dimensione 341.25 kB
Formato Adobe PDF
341.25 kB Adobe PDF   Richiedi una copia

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/219939
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 4
  • ???jsp.display-item.citation.isi??? 4
social impact