This is about catalan number and parenthesizing.
a)Determine the list of five 1's and five 0's that corresponds to each of these:
- (((ab)c)(d(ef))) = (what I did: 1110010110)
(a(b(c(d(ef)))))) = (what I did: 1010101010)
3.((((ab)(cd))e)f) = (what I did: 1111001100)
b) find the way to parenthesize abcdef that corresponds to each given list of five 1's and five 0's
- 1110010100 = (what I did: (((ab(c(de)f)
- 1100110010 = (what I did: ((ab((cd)(e)f)
- 1011100100 = (what I did: (a(((bc)(ef))
Did I do it correct? I seem to understand a bit but then I'm confused again. Anyone can please clarify this ??
Question a)
I add colors to understand where is the $1$ and the $0$ added at this step.
Example : (((ab)c)(d(ef)))
Question b)
This is the inverse computation.
Example : $1110010100$ ($x$ is any letter)
So now
Then replace $x$ by appropriate letters and $1110010100$ is $(((ab)(c(de))f)$