2000 character limit reached
Generating and ranking of Dyck words (1002.2625v1)
Published 12 Feb 2010 in cs.DM
Abstract: 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.