Catalan numbers: bijection between applications of a binary operator and Dyck words.












0














The Wikipedia article on Catalan numbers lists various combinatorial objects that are described by them. I posit that there might be bijections between these various combinatorial objects. For some of them (like Dyck paths, correctly matched parentheses and paths from the bottom left to top right of a $2n times 2n$ grid) they are quite obvious.



I was then trying to find a bijection between the number of Dyck words and the number of ways of associating $n$ applications of a binary operator to $n+1$ items (third one on the list). I attempted to do this for a simple case ($n=3$ which is the example provided in the Wikipedia article). However, couldn't find one after multiple hours. Is it reasonable to expect such a bijection will exist? If so, how do we go about finding it?





EDIT: In addition to the very nice answer by @Marc, the following page also helped me see the bijection: http://math.sfsu.edu/federico/Clase/EC/Homework/3.3.Jorge.pdf



"Let $P$ be the Dyck path and $f(P)$ be the binary tree. If you go up in the Dyck path, create a left child. Otherwise, go up one vertex until creating a new right child is possible and create one."





Here is one of my attempts:



Number of Dyck words with length $2 times 3$ is $frac{6 choose 3}{4} = 5$. They are:



hhhttt; hhthtt; hhttht; hthhtt; hththt



And the number of applications of a binary operator among $3+1=4$ factors is:



((ab)c)d; (a(bc))d; (ab)(cd); a((bc)d); a(b(cd))



Both combinatorial objects have been arranged in a way that there is some kind of ordering between them. For the Dyck words for example, if h equals +1 and t equals -1, then the order is lexicographical from the left to the right of the cumulative score along the sequence.



Now, the first and last characters of the Dyck words are always h and t respectively. So, we can ignore them. We are left with:



hhtt; htht; htth; thht; thth



I tried to start from the left of the sequence abcd and if I see 'h', merge the character with the one to its right. This approach didn't produce a valid mapping from the third Dyck word to the third binary operator precedence order.










share|cite|improve this question





























    0














    The Wikipedia article on Catalan numbers lists various combinatorial objects that are described by them. I posit that there might be bijections between these various combinatorial objects. For some of them (like Dyck paths, correctly matched parentheses and paths from the bottom left to top right of a $2n times 2n$ grid) they are quite obvious.



    I was then trying to find a bijection between the number of Dyck words and the number of ways of associating $n$ applications of a binary operator to $n+1$ items (third one on the list). I attempted to do this for a simple case ($n=3$ which is the example provided in the Wikipedia article). However, couldn't find one after multiple hours. Is it reasonable to expect such a bijection will exist? If so, how do we go about finding it?





    EDIT: In addition to the very nice answer by @Marc, the following page also helped me see the bijection: http://math.sfsu.edu/federico/Clase/EC/Homework/3.3.Jorge.pdf



    "Let $P$ be the Dyck path and $f(P)$ be the binary tree. If you go up in the Dyck path, create a left child. Otherwise, go up one vertex until creating a new right child is possible and create one."





    Here is one of my attempts:



    Number of Dyck words with length $2 times 3$ is $frac{6 choose 3}{4} = 5$. They are:



    hhhttt; hhthtt; hhttht; hthhtt; hththt



    And the number of applications of a binary operator among $3+1=4$ factors is:



    ((ab)c)d; (a(bc))d; (ab)(cd); a((bc)d); a(b(cd))



    Both combinatorial objects have been arranged in a way that there is some kind of ordering between them. For the Dyck words for example, if h equals +1 and t equals -1, then the order is lexicographical from the left to the right of the cumulative score along the sequence.



    Now, the first and last characters of the Dyck words are always h and t respectively. So, we can ignore them. We are left with:



    hhtt; htht; htth; thht; thth



    I tried to start from the left of the sequence abcd and if I see 'h', merge the character with the one to its right. This approach didn't produce a valid mapping from the third Dyck word to the third binary operator precedence order.










    share|cite|improve this question



























      0












      0








      0







      The Wikipedia article on Catalan numbers lists various combinatorial objects that are described by them. I posit that there might be bijections between these various combinatorial objects. For some of them (like Dyck paths, correctly matched parentheses and paths from the bottom left to top right of a $2n times 2n$ grid) they are quite obvious.



      I was then trying to find a bijection between the number of Dyck words and the number of ways of associating $n$ applications of a binary operator to $n+1$ items (third one on the list). I attempted to do this for a simple case ($n=3$ which is the example provided in the Wikipedia article). However, couldn't find one after multiple hours. Is it reasonable to expect such a bijection will exist? If so, how do we go about finding it?





      EDIT: In addition to the very nice answer by @Marc, the following page also helped me see the bijection: http://math.sfsu.edu/federico/Clase/EC/Homework/3.3.Jorge.pdf



      "Let $P$ be the Dyck path and $f(P)$ be the binary tree. If you go up in the Dyck path, create a left child. Otherwise, go up one vertex until creating a new right child is possible and create one."





      Here is one of my attempts:



      Number of Dyck words with length $2 times 3$ is $frac{6 choose 3}{4} = 5$. They are:



      hhhttt; hhthtt; hhttht; hthhtt; hththt



      And the number of applications of a binary operator among $3+1=4$ factors is:



      ((ab)c)d; (a(bc))d; (ab)(cd); a((bc)d); a(b(cd))



      Both combinatorial objects have been arranged in a way that there is some kind of ordering between them. For the Dyck words for example, if h equals +1 and t equals -1, then the order is lexicographical from the left to the right of the cumulative score along the sequence.



      Now, the first and last characters of the Dyck words are always h and t respectively. So, we can ignore them. We are left with:



      hhtt; htht; htth; thht; thth



      I tried to start from the left of the sequence abcd and if I see 'h', merge the character with the one to its right. This approach didn't produce a valid mapping from the third Dyck word to the third binary operator precedence order.










      share|cite|improve this question















      The Wikipedia article on Catalan numbers lists various combinatorial objects that are described by them. I posit that there might be bijections between these various combinatorial objects. For some of them (like Dyck paths, correctly matched parentheses and paths from the bottom left to top right of a $2n times 2n$ grid) they are quite obvious.



      I was then trying to find a bijection between the number of Dyck words and the number of ways of associating $n$ applications of a binary operator to $n+1$ items (third one on the list). I attempted to do this for a simple case ($n=3$ which is the example provided in the Wikipedia article). However, couldn't find one after multiple hours. Is it reasonable to expect such a bijection will exist? If so, how do we go about finding it?





      EDIT: In addition to the very nice answer by @Marc, the following page also helped me see the bijection: http://math.sfsu.edu/federico/Clase/EC/Homework/3.3.Jorge.pdf



      "Let $P$ be the Dyck path and $f(P)$ be the binary tree. If you go up in the Dyck path, create a left child. Otherwise, go up one vertex until creating a new right child is possible and create one."





      Here is one of my attempts:



      Number of Dyck words with length $2 times 3$ is $frac{6 choose 3}{4} = 5$. They are:



      hhhttt; hhthtt; hhttht; hthhtt; hththt



      And the number of applications of a binary operator among $3+1=4$ factors is:



      ((ab)c)d; (a(bc))d; (ab)(cd); a((bc)d); a(b(cd))



      Both combinatorial objects have been arranged in a way that there is some kind of ordering between them. For the Dyck words for example, if h equals +1 and t equals -1, then the order is lexicographical from the left to the right of the cumulative score along the sequence.



      Now, the first and last characters of the Dyck words are always h and t respectively. So, we can ignore them. We are left with:



      hhtt; htht; htth; thht; thth



      I tried to start from the left of the sequence abcd and if I see 'h', merge the character with the one to its right. This approach didn't produce a valid mapping from the third Dyck word to the third binary operator precedence order.







      combinatorics permutations catalan-numbers






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 21 hours ago

























      asked yesterday









      Rohit Pandey

      1,185921




      1,185921






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Yes this one is well known. Often for finding a bijection it suffices to compare the reasons why the two interpretations satisfy the fundamental recurrence $C_{n+1}=sum_{i=0}^nC_i,C_{n-i}$ for Catalan numbers. For $n+1$-leaf binary trees, which is what combining $n+1$ atoms using $n$ applications of a binary operator amounts to, this is quite clear: for $C_{n+1}$ one is looking at trees with $n+1$ internal nodes one of which is the root; if it has a left subtree with $i$ internal nodes its right subtree has $n-i$ internal nodes, and the value of $i$ together with the choice of such subtrees determines the tree. For $2n$-step Dyck paths it is slightly less natural since an asymmetric choice is necessary to decompose a path in sub-paths. Still there is a fairly obvious way to do this: the first step of a $2(n+1)$ step path is always an up-step (opening parenthesis), and there is a unique matching down-step (closing parenthesis) where we first re-descend to level$~0$. Then there are $2i$ steps in between them that form a Dyck path, and $2(n-i)$ steps left after the matching down-step, for some $0leq ileq n$. Repeating this decomposition constructs a binary tree associated to a Dyck path. For instance with $n=3$ and the path corresponding to $(())()$ one finds $i=1$ (the first descent to level$~0$ is at step$~4$) and the unique binary tree with $4$ leaves and the root in the middle: $(a*b)*(c*d)$. Note that the left-right symmetry is not preserved. Here are all $5$ cases with $n=3$:
          $$
          matrix{(~)~(~)~(~) & (~)~(~(~)~)~&(~(~)~)~(~) & (~(~)~(~)~)&(~(~(~)~)~)\
          a*(b*(c*d))&a*((b*c)*d) &(a*b)*(c*d) & (a*(b*c))*d & ((a*b)*c)*d}
          $$



          Here is a maybe somewhat easier to see way to state this correspondence. First write the binary tree expression using symbols '$[$', '$*$', '$]$' together with atoms, so that each '$*$' has a pair '$[$' and '$]$' that surrounds its own operands, so for instance $a*((b*c)*d)$ becomes $[~a*[~[~b*c~]*d~]~]$ (note the outer brackets. Then substitute '$($' for '$[$', and '$)$' for '$*$', and drop both the atoms and the symbols '$]$', to get a balanced list of parentheses, in the example $(.)((.)..)...$ where the dots mark positions where symbols were dropped.






          share|cite|improve this answer























          • Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
            – Rohit Pandey
            23 hours ago








          • 1




            First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
            – Marc van Leeuwen
            21 hours ago








          • 1




            By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
            – Marc van Leeuwen
            21 hours ago











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "69"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062462%2fcatalan-numbers-bijection-between-applications-of-a-binary-operator-and-dyck-wo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Yes this one is well known. Often for finding a bijection it suffices to compare the reasons why the two interpretations satisfy the fundamental recurrence $C_{n+1}=sum_{i=0}^nC_i,C_{n-i}$ for Catalan numbers. For $n+1$-leaf binary trees, which is what combining $n+1$ atoms using $n$ applications of a binary operator amounts to, this is quite clear: for $C_{n+1}$ one is looking at trees with $n+1$ internal nodes one of which is the root; if it has a left subtree with $i$ internal nodes its right subtree has $n-i$ internal nodes, and the value of $i$ together with the choice of such subtrees determines the tree. For $2n$-step Dyck paths it is slightly less natural since an asymmetric choice is necessary to decompose a path in sub-paths. Still there is a fairly obvious way to do this: the first step of a $2(n+1)$ step path is always an up-step (opening parenthesis), and there is a unique matching down-step (closing parenthesis) where we first re-descend to level$~0$. Then there are $2i$ steps in between them that form a Dyck path, and $2(n-i)$ steps left after the matching down-step, for some $0leq ileq n$. Repeating this decomposition constructs a binary tree associated to a Dyck path. For instance with $n=3$ and the path corresponding to $(())()$ one finds $i=1$ (the first descent to level$~0$ is at step$~4$) and the unique binary tree with $4$ leaves and the root in the middle: $(a*b)*(c*d)$. Note that the left-right symmetry is not preserved. Here are all $5$ cases with $n=3$:
          $$
          matrix{(~)~(~)~(~) & (~)~(~(~)~)~&(~(~)~)~(~) & (~(~)~(~)~)&(~(~(~)~)~)\
          a*(b*(c*d))&a*((b*c)*d) &(a*b)*(c*d) & (a*(b*c))*d & ((a*b)*c)*d}
          $$



          Here is a maybe somewhat easier to see way to state this correspondence. First write the binary tree expression using symbols '$[$', '$*$', '$]$' together with atoms, so that each '$*$' has a pair '$[$' and '$]$' that surrounds its own operands, so for instance $a*((b*c)*d)$ becomes $[~a*[~[~b*c~]*d~]~]$ (note the outer brackets. Then substitute '$($' for '$[$', and '$)$' for '$*$', and drop both the atoms and the symbols '$]$', to get a balanced list of parentheses, in the example $(.)((.)..)...$ where the dots mark positions where symbols were dropped.






          share|cite|improve this answer























          • Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
            – Rohit Pandey
            23 hours ago








          • 1




            First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
            – Marc van Leeuwen
            21 hours ago








          • 1




            By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
            – Marc van Leeuwen
            21 hours ago
















          2














          Yes this one is well known. Often for finding a bijection it suffices to compare the reasons why the two interpretations satisfy the fundamental recurrence $C_{n+1}=sum_{i=0}^nC_i,C_{n-i}$ for Catalan numbers. For $n+1$-leaf binary trees, which is what combining $n+1$ atoms using $n$ applications of a binary operator amounts to, this is quite clear: for $C_{n+1}$ one is looking at trees with $n+1$ internal nodes one of which is the root; if it has a left subtree with $i$ internal nodes its right subtree has $n-i$ internal nodes, and the value of $i$ together with the choice of such subtrees determines the tree. For $2n$-step Dyck paths it is slightly less natural since an asymmetric choice is necessary to decompose a path in sub-paths. Still there is a fairly obvious way to do this: the first step of a $2(n+1)$ step path is always an up-step (opening parenthesis), and there is a unique matching down-step (closing parenthesis) where we first re-descend to level$~0$. Then there are $2i$ steps in between them that form a Dyck path, and $2(n-i)$ steps left after the matching down-step, for some $0leq ileq n$. Repeating this decomposition constructs a binary tree associated to a Dyck path. For instance with $n=3$ and the path corresponding to $(())()$ one finds $i=1$ (the first descent to level$~0$ is at step$~4$) and the unique binary tree with $4$ leaves and the root in the middle: $(a*b)*(c*d)$. Note that the left-right symmetry is not preserved. Here are all $5$ cases with $n=3$:
          $$
          matrix{(~)~(~)~(~) & (~)~(~(~)~)~&(~(~)~)~(~) & (~(~)~(~)~)&(~(~(~)~)~)\
          a*(b*(c*d))&a*((b*c)*d) &(a*b)*(c*d) & (a*(b*c))*d & ((a*b)*c)*d}
          $$



          Here is a maybe somewhat easier to see way to state this correspondence. First write the binary tree expression using symbols '$[$', '$*$', '$]$' together with atoms, so that each '$*$' has a pair '$[$' and '$]$' that surrounds its own operands, so for instance $a*((b*c)*d)$ becomes $[~a*[~[~b*c~]*d~]~]$ (note the outer brackets. Then substitute '$($' for '$[$', and '$)$' for '$*$', and drop both the atoms and the symbols '$]$', to get a balanced list of parentheses, in the example $(.)((.)..)...$ where the dots mark positions where symbols were dropped.






          share|cite|improve this answer























          • Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
            – Rohit Pandey
            23 hours ago








          • 1




            First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
            – Marc van Leeuwen
            21 hours ago








          • 1




            By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
            – Marc van Leeuwen
            21 hours ago














          2












          2








          2






          Yes this one is well known. Often for finding a bijection it suffices to compare the reasons why the two interpretations satisfy the fundamental recurrence $C_{n+1}=sum_{i=0}^nC_i,C_{n-i}$ for Catalan numbers. For $n+1$-leaf binary trees, which is what combining $n+1$ atoms using $n$ applications of a binary operator amounts to, this is quite clear: for $C_{n+1}$ one is looking at trees with $n+1$ internal nodes one of which is the root; if it has a left subtree with $i$ internal nodes its right subtree has $n-i$ internal nodes, and the value of $i$ together with the choice of such subtrees determines the tree. For $2n$-step Dyck paths it is slightly less natural since an asymmetric choice is necessary to decompose a path in sub-paths. Still there is a fairly obvious way to do this: the first step of a $2(n+1)$ step path is always an up-step (opening parenthesis), and there is a unique matching down-step (closing parenthesis) where we first re-descend to level$~0$. Then there are $2i$ steps in between them that form a Dyck path, and $2(n-i)$ steps left after the matching down-step, for some $0leq ileq n$. Repeating this decomposition constructs a binary tree associated to a Dyck path. For instance with $n=3$ and the path corresponding to $(())()$ one finds $i=1$ (the first descent to level$~0$ is at step$~4$) and the unique binary tree with $4$ leaves and the root in the middle: $(a*b)*(c*d)$. Note that the left-right symmetry is not preserved. Here are all $5$ cases with $n=3$:
          $$
          matrix{(~)~(~)~(~) & (~)~(~(~)~)~&(~(~)~)~(~) & (~(~)~(~)~)&(~(~(~)~)~)\
          a*(b*(c*d))&a*((b*c)*d) &(a*b)*(c*d) & (a*(b*c))*d & ((a*b)*c)*d}
          $$



          Here is a maybe somewhat easier to see way to state this correspondence. First write the binary tree expression using symbols '$[$', '$*$', '$]$' together with atoms, so that each '$*$' has a pair '$[$' and '$]$' that surrounds its own operands, so for instance $a*((b*c)*d)$ becomes $[~a*[~[~b*c~]*d~]~]$ (note the outer brackets. Then substitute '$($' for '$[$', and '$)$' for '$*$', and drop both the atoms and the symbols '$]$', to get a balanced list of parentheses, in the example $(.)((.)..)...$ where the dots mark positions where symbols were dropped.






          share|cite|improve this answer














          Yes this one is well known. Often for finding a bijection it suffices to compare the reasons why the two interpretations satisfy the fundamental recurrence $C_{n+1}=sum_{i=0}^nC_i,C_{n-i}$ for Catalan numbers. For $n+1$-leaf binary trees, which is what combining $n+1$ atoms using $n$ applications of a binary operator amounts to, this is quite clear: for $C_{n+1}$ one is looking at trees with $n+1$ internal nodes one of which is the root; if it has a left subtree with $i$ internal nodes its right subtree has $n-i$ internal nodes, and the value of $i$ together with the choice of such subtrees determines the tree. For $2n$-step Dyck paths it is slightly less natural since an asymmetric choice is necessary to decompose a path in sub-paths. Still there is a fairly obvious way to do this: the first step of a $2(n+1)$ step path is always an up-step (opening parenthesis), and there is a unique matching down-step (closing parenthesis) where we first re-descend to level$~0$. Then there are $2i$ steps in between them that form a Dyck path, and $2(n-i)$ steps left after the matching down-step, for some $0leq ileq n$. Repeating this decomposition constructs a binary tree associated to a Dyck path. For instance with $n=3$ and the path corresponding to $(())()$ one finds $i=1$ (the first descent to level$~0$ is at step$~4$) and the unique binary tree with $4$ leaves and the root in the middle: $(a*b)*(c*d)$. Note that the left-right symmetry is not preserved. Here are all $5$ cases with $n=3$:
          $$
          matrix{(~)~(~)~(~) & (~)~(~(~)~)~&(~(~)~)~(~) & (~(~)~(~)~)&(~(~(~)~)~)\
          a*(b*(c*d))&a*((b*c)*d) &(a*b)*(c*d) & (a*(b*c))*d & ((a*b)*c)*d}
          $$



          Here is a maybe somewhat easier to see way to state this correspondence. First write the binary tree expression using symbols '$[$', '$*$', '$]$' together with atoms, so that each '$*$' has a pair '$[$' and '$]$' that surrounds its own operands, so for instance $a*((b*c)*d)$ becomes $[~a*[~[~b*c~]*d~]~]$ (note the outer brackets. Then substitute '$($' for '$[$', and '$)$' for '$*$', and drop both the atoms and the symbols '$]$', to get a balanced list of parentheses, in the example $(.)((.)..)...$ where the dots mark positions where symbols were dropped.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited 12 hours ago

























          answered yesterday









          Marc van Leeuwen

          86.5k5106220




          86.5k5106220












          • Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
            – Rohit Pandey
            23 hours ago








          • 1




            First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
            – Marc van Leeuwen
            21 hours ago








          • 1




            By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
            – Marc van Leeuwen
            21 hours ago


















          • Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
            – Rohit Pandey
            23 hours ago








          • 1




            First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
            – Marc van Leeuwen
            21 hours ago








          • 1




            By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
            – Marc van Leeuwen
            21 hours ago
















          Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
          – Rohit Pandey
          23 hours ago






          Sorry, I've been reading through this since yesterday and am still having a very hard time mapping the Dyck paths to the trees (or seeing why they should satisfy the recurrence). First, You mention (())() corresponds to $i=1$. However, it descends to $0$ at step 4. Shouldn't $i$ equal $2$? Also, why should Dyck paths satisfy $C_{n+1}=sumlimits_{I=0}^nC_iC_{n-i}$ and not (for instance) $C_{n+1} = sum_i sum_j C_i C_j C_{n-i-j}$?
          – Rohit Pandey
          23 hours ago






          1




          1




          First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
          – Marc van Leeuwen
          21 hours ago






          First point, when I said "between", I meant excluding the matching parentheses themselves (which I think is what the word it usually taken to mean). So with an upstep at position $1$ and a downstep at position $4$, there are $2$ steps in between, so $i=1$. This interpretation is necessary, since one wants $i=0$ to be possible (and $i=n$ is also possible as nothing has to follow the downstep). Second, you only get a decomposition with just two subpaths, since only one pair of matching parentheses is obligatory (taking the leftmost parenthesis as opening one of the pair).
          – Marc van Leeuwen
          21 hours ago






          1




          1




          By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
          – Marc van Leeuwen
          21 hours ago




          By the way, one could instead start with the very rightmost downstep and search for the matching upstep; that gives a different (but just as good) correspondence. This is the reason I said this part is somewhat less natural than the binary tree part.
          – Marc van Leeuwen
          21 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062462%2fcatalan-numbers-bijection-between-applications-of-a-binary-operator-and-dyck-wo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mario Kart Wii

          What does “Dominus providebit” mean?

          Antonio Litta Visconti Arese