arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0706.0694math.CO
收藏

终极路径

Culminating paths

Mireille Bousquet-Mélou, Yann Ponty

摘要:

设a和b是两个正整数。顶点路径是Z^2的一条路径,它从(0,0)开始,由步骤(1,a)和(1,-b)组成,停留在x轴上方,并在它所到达的最高纵坐标处结束。这些路径首先在生物信息学中遇到,在相似性搜索算法的分析中。它们也与理论物理学中洛伦兹引力的某些模型有关。我们首先表明,语言的两个字母表,自然编码的最终路径是不上下文无关的。然后,我们集中在枚举的最终路径。一个逐步的方法,结合核方法,提供了一个封闭的形式的生成函数的顶点路径结束于(通用)高度k。在a=b的情况下,我们从这个表达式导出长度为n的最终路数的渐近行为。当a>b时,我们用一个更简单的论证得到了渐近性态.当a<b时,我们只确定顶点路径数的指数增长性。最后,我们研究了通过各种方法得到的顶点路的均匀随机生成问题。拒绝的方法,加上一个对称的论点,给出了一个算法,是线性的,当a>= b,没有预先计算阶段,也不需要非线性存储。当a<b时,最佳算法的选择就不那么清楚了。初等递归方法在涉及O(n^3)算术运算的预计算阶段之后产生线性算法,但我们也提出了一些在实践中可能更有效的替代方案。

英文摘要:

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 fucntion 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 practise.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑