Culminating paths

被引:0
作者
Bousquet-Melou, Mireille [1 ]
Ponty, Yann [2 ]
机构
[1] Univ Bordeaux 1, CNRS, LaBRI, F-33405 Talence, France
[2] Univ Paris 11, LRI, F-91405 Orsay, France
关键词
lattice paths; enumeration; random generation;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Let a and b be two positive integers. A culminating path is a path of Z(2) that starts from (0, 0), consists of steps (1, a) and (1, -b), stays above the x-axis and ends at the highest ordinate it ever reaches. These paths were first encountered in bioinformatics, in the analysis of similarity search algorithms. They are also related to certain models of Lorentzian gravity in theoretical physics. We first show that the language on a two letter alphabet that naturally encodes culminating paths is not context-free. Then, we focus on the enumeration of culminating paths. A step by step approach, combined with the kernel method, provides a closed form expression for the generating function of culminating paths ending at a (generic) height k. In the case a - b, we derive from this expression the asymptotic behaviour of the number of culminating paths of length n. When a > b, we obtain the asymptotic behaviour by a simpler argument. When a < b, we only determine the exponential growth of the number of culminating paths. Finally, we study the uniform random generation of culminating paths via various methods. The rejection approach, coupled with a symmetry argument, gives an algorithm that is linear when a >= b, with no precomputation stage nor non-linear storage required. The choice of the best algorithm is not as clear when a < b. An elementary recursive approach yields a linear algorithm after a precomputation stage involving O(n(3)) arithmetic operations, but we also present some alternatives that may be more efficient in practice.
引用
收藏
页码:125 / 152
页数:28
相关论文
共 39 条
[1]   BASIC LOCAL ALIGNMENT SEARCH TOOL [J].
ALTSCHUL, SF ;
GISH, W ;
MILLER, W ;
MYERS, EW ;
LIPMAN, DJ .
JOURNAL OF MOLECULAR BIOLOGY, 1990, 215 (03) :403-410
[2]  
[Anonymous], 1981, CANAD J STAT
[3]  
[Anonymous], 1986, Non-Uniform Random Variate Generation
[4]  
[Anonymous], P INT C MATH
[5]  
AYYER A, ARXIVCONDMAT0701674
[6]   Basic analytic combinatorics of directed lattice paths [J].
Banderier, C ;
Flajolet, P .
THEORETICAL COMPUTER SCIENCE, 2002, 281 (1-2) :37-80
[7]   Generating functions for generating trees [J].
Banderier, C ;
Bousquet-Mélou, M ;
Denise, A ;
Flajolet, P ;
Gardy, D ;
Gouyou-Beauchamps, D .
DISCRETE MATHEMATICS, 2002, 246 (1-3) :29-55
[8]  
BANDERIER C, 2001, THESIS U PARIS
[9]   THE RANDOM GENERATION OF DIRECTED ANIMALS [J].
BARCUCCI, E ;
PINZANI, R ;
SPRUGNOLI, R .
THEORETICAL COMPUTER SCIENCE, 1994, 127 (02) :333-350
[10]  
BARCUCCI E, 1992, P 4 C FORM POW SER A