OFFSET
0,3
LINKS
PROG
(Scheme functions below show the essential idea. For a complete source, follow the "Gatomorphisms" link.)
(define (arithrank->lexrank-bijection pr1 pr2) (lambda (n) (CatalanRankGlobal (parenthesization->binexp (unrank-bintree n pr1 pr2)))))
(define (unrank-bintree rank pr1 pr2) (cond ((zero? rank) (list)) (else (cons (unrank-bintree (pr1 (-1+ rank)) pr1 pr2) (unrank-bintree (pr2 (-1+ rank)) pr1 pr2)))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 02 2002
STATUS
approved