Re: [algogeeks] Binary trees with 3 nodes

2010-07-03 Thread Raj N
@jalaj: Thanks i got it. But then the question also demands to print all the possible trees and not only the number On Sat, Jul 3, 2010 at 7:03 PM, jalaj jaiswal wrote: > derivation of catalan number can be found as : > suppose there is 1 node then we have 1 '(' and 1 ')' > how many ways you ca

Re: [algogeeks] Binary trees with 3 nodes

2010-07-03 Thread jalaj jaiswal
derivation of catalan number can be found as : suppose there is 1 node then we have 1 '(' and 1 ')' how many ways you can arange them () the only way(shld be balanced parahtheses) if two we have (()) ()().. only two i.e two binary trees.. so find a derivation for it On Sat, Jul 3, 2010 at 3:54 P

Re: [algogeeks] Binary trees with 3 nodes

2010-07-03 Thread Raj N
@sharad: Can you give a detailed explaination. Also it is required to print the possible trees On Sat, Jul 3, 2010 at 7:08 AM, sharad kumar wrote: > catalan numbers.(2n)Cn/(n+1) > > > On Sat, Jul 3, 2010 at 1:06 AM, Raj N wrote: > >> How to find all the possible trees with 3 nodes from a

Re: [algogeeks] Binary trees with 3 nodes

2010-07-02 Thread sharad kumar
catalan numbers.(2n)Cn/(n+1) On Sat, Jul 3, 2010 at 1:06 AM, Raj N wrote: > How to find all the possible trees with 3 nodes from a given tree > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email

[algogeeks] Binary trees with 3 nodes

2010-07-02 Thread Raj N
How to find all the possible trees with 3 nodes from a given tree -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubs