Dyck词的生成与排序
Generating and ranking of Dyck words
摘要:
提出了一种新的生成所有Dyck词的算法,用于Dyck词的排序和去排序。我们强调的重要性,使用戴克的话在编码对象有关的加泰罗尼亚数字。作为排名算法中使用的公式的结果,我们可以获得第n个Catalan数的递归公式。
英文摘要:
A new algorithm to generate all Dyck words is presented, which is used in ranking and unranking Dyck words. We emphasize the importance of using Dyck words in encoding objects related to Catalan numbers. As a consequence of formulas used in the ranking algorithm we can obtain a recursive formula for the nth Catalan number.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。