NAME

Math::DyckWords - Perl module for generating Dyck words. The functions in this moduloe are based on those presented in the scholarly paper "Generating and ranking of Dyck words" by Zoltan Kasa available on-line at http://arxiv4.library.cornell.edu/pdf/1002.2625

SYNOPSIS

use Math::DyckWords qw( dyck_words_by_lex
                        dyck_words_by_position
                        dyck_words_by_swap
                        ranking
                        unranking );

foreach my $word ( dyck_words_by_lex( 4 ) ) {
    print "word: $word\n";
    print "rank:" . ranking( $word ) . "\n";
}

DESCRIPTION

EXPORT

None by default.