mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Catalan Number - "So the first post"

4 posters

mockers :: DS

Go down

Catalan Number - "So the first post" Empty Catalan Number - "So the first post"

Post  shivang Fri Jan 30, 2009 4:06 am

All of us has been bugged by "Catalan Number".....right....
So here we go...list all the problems out here whose answer is Catalan Number.
shivang
shivang

Posts : 42
Join date : 2009-01-30
Age : 35

Back to top Go down

Catalan Number - "So the first post" Empty Re: Catalan Number - "So the first post"

Post  $corpion Fri Jan 30, 2009 8:34 pm

how many binary search trees are possible for n given nodes..???

the ans is catalan no only..
i.e. 2nCn/(n+1)
$corpion
$corpion

Posts : 25
Join date : 2009-01-30
Age : 37

Back to top Go down

Catalan Number - "So the first post" Empty Re: Catalan Number - "So the first post"

Post  Admin Fri Jan 30, 2009 10:00 pm


Admin
Admin

Posts : 47
Join date : 2009-01-29

https://mockers.forumotion.com

Back to top Go down

Catalan Number - "So the first post" Empty Re: Catalan Number - "So the first post"

Post  Lincoln Rhyme Fri Jan 30, 2009 11:09 pm

in that case....the question was wrong...i mean even i thought it is the catalan number...but the answer wasnt in the options

i guess they used the formula pow(2,n) - n
can anyone tell which of these two formulae shud b applied when????

Lincoln Rhyme

Posts : 1
Join date : 2009-01-30

Back to top Go down

Catalan Number - "So the first post" Empty @Ashwin

Post  shivang Fri Jan 30, 2009 11:50 pm

ohh...u are asking about that mock ques right....
by the way the answer to that ques is pow(2,n)-n

it comes as follows...
it was asked that how many different trees(not binary trees) are possible for n nodes....so a tree can be of nodes with 1 child, 2child.....n child......so the anwer comes out to be pow(2,n)-n...
this negative n comes as a tree with nodes having no child is not possible
hope you got your answer.... cheers
shivang
shivang

Posts : 42
Join date : 2009-01-30
Age : 35

Back to top Go down

Catalan Number - "So the first post" Empty @ Dubey

Post  shivang Sat Jan 31, 2009 10:59 am

Nice pic Cutie... Garg here Razz
shivang
shivang

Posts : 42
Join date : 2009-01-30
Age : 35

Back to top Go down

Catalan Number - "So the first post" Empty Re: Catalan Number - "So the first post"

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

mockers :: DS

 
Permissions in this forum:
You cannot reply to topics in this forum