• retagged by
516 views
0 0 votes

 

How many different trees are possible with ' $n$ ' nodes?

  1. $\mathrm{n}_{-1}$
  2. $2^{\mathrm{n}}-1$
  3. $2^{\mathrm{n}}$
  4. $2^{\mathrm{n}}-\mathrm{n}$

(Option $1 [39397]) 1$
(Option $2 [39398]) 2$
(Option $3[39399]) 3$
(Option $4 [39400]) 4$

Answer Given by Candidate : $2$

1 Answer

0 0 votes
We are considering here Binary Tree and we can do it different different values of n  like

n=1  only 1 tree we can form

n=2  only 2 trees with different structure we can form

n=3  we can make 5

n=4 we can make 13 different structure

So after seeing this pattern we can conclude that formula will be 2^n - n which is 4th option.

https://testbook.com/question-answer/how-many-differentbinarytrees-are-poss--6565d4495dd3ec1d46de1158#:~:text=Detailed%20Solution,-Download%20Soln%20PDF&text=As%20an%20example%2C%20when%20'n'%20is%20equal%20to%202,%2D%20n)%20unique%20binary%20tree.
Position:
Show:

Related questions

0 0 votes
0 0 answers
461
461 views
admin asked May 20, 2023
461 views
Let ' $n$ ' denote a positive integer. Suppose a function $\text{F}$ is defined as$f(n)=\left\{\begin{aligned} 0, & n=1 \\ f\left(\left\lfloor\frac{n}{2}\right\rfloor+1\r...
0 0 votes
2 2 answers
535
535 views
admin asked May 20, 2023
535 views
Given the $\text{FFT}$ we can have time procedure for multiplying two polynomials $\mathrm{A}(\mathrm{x})$ and $\mathrm{B}(\mathrm{x})$ of degree bound $\mathrm{n}$ where...
0 0 votes
0 0 answers
456
456 views
admin asked May 20, 2023
456 views
Circuit satisfiability problem: Given a Boolean combinatorial circuit composed of $\text{AND, OR}$ and $\text{NOT}$ gates, is it satisfiable? A one output Boolean combina...
1 1 vote
1 1 answer
488
488 views
admin asked May 20, 2023
488 views
A $4$-input neuron has weights $1,2,3,4$. The transfer function is linear with the constant of proportionality being equal to $3$. The inputs are $5,7,10,30$, respectivel...