Bracketing Problem, and a useful summation identity.
January 29th, 2004 ~ Posted in: GeneralI discovered this summation identity naturally– meaning, motivated by my own investigation, and without anticipation of the final result, even though I am sure I’ve seen it before:
It seems to work for any complex number, including zero. I have a proof for real x in [0,1], but that is based on probability theory, so I don’t have a handle yet on the general case. I’ve submitted it to the UHME mailing list, but I don’t think anyone will really work at it.
Update: I just realized where I’ve seen that identity before– it’s just an expansion of
using the binomial theorem. Silly me…
The Bracketing Problem (cf. MathWorld) can be stated as such:
Let
be a non-associative, non-commutative binary operation. Given an ordered n-tuple of operands,
, indicate using parentheses all possible
-products that can be found by varying the sequence in which the operands are combined.
For example, a 4-tuple yields five unique bracketings:
(x(x(xx))), (x((xx)x)), ((xx)(xx)), (((xx)x)x), ((x(xx))x)
It can be shown (not yet by me
) that there are
bracketings for an
-tuple, where
is the
-th Catalan number:
.
The question of how to write a ‘Catalan generator’– a program that generates all bracketings for a given number– came up on sci.math. Here’s an algorithm that is straightforward to implement:
To find the bracketings for
, form all pairs
where
and
. For each of these pairs, find
= the set of
bracketings and
= the set of
bracketings, then find
= the cartesian product of
and
. The base case is
, where
is just a generic variable as above. Then
, the set of bracketings for
, is the union of
over all the
pairs.
be a non-associative, non-commutative binary operation. Given an ordered n-tuple of operands,
, indicate using parentheses all possible
where
and
. For each of these pairs, find
= the set of
bracketings and
= the set of
bracketings, then find
= the cartesian product of
, where
is just a generic variable as above. Then
, the set of bracketings for 
One Response to “Bracketing Problem, and a useful summation identity.”
September 17th, 2006 at 4:52 pm
Dude, that’s just Binomial Distribution!
This entry was posted on Thursday, January 29th, 2004 at 1:38 pm and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply