From: Sam Kong Date: 2007-01-25T01:19:57+09:00 Subject: Re: I need a more efficient algorithm for this problem. On Jan 24, 1:00 am, "Martin DeMello" wrote: > On 1/24/07, Sam Kong wrote: > > > > > Thank you for the information. > > That's almost what I was looking for. > > Catalan numbers are for combinatorics not for partitions in that the > > order of numbers is significant in combinatorics.You want the Stirling Numbers of the second kind, I think > > http://en.wikipedia.org/wiki/Stirling_number Wow, finally I've got what I've been looking for. Thanks. Sam