recategorized by
1,145 views
0 votes
0 votes

In any n-element heap, the number of nodes of height h is,

  1. less than equal to $\biggl[ \frac{n}{2^h} \biggr]$
  2. greater than $\biggl[ \frac{n}{2^h} \biggl]$
  3. greater than $\biggl[ \frac{n}{2^h+1} \biggr]$
  4. less than equal to $\biggl [ \frac{n}{2^h+1} \biggr]$
recategorized by

1 Answer

0 votes
0 votes
Take n= 4 for binary heap...height h should be 2

So (n/2^h ) = gives 1 ... While taking root at 0th height..

Just check placing only  one node at height h..

So ans should be B.
Answer:

Related questions

3 votes
3 votes
2 answers
1
go_editor asked Jul 17, 2016
2,483 views
Suppose you want to delete the name that occurs before ‘Vivek’ in an alphabetical listing. Which one of the following data structures shall be most efficient for this...
1 votes
1 votes
1 answer
2
go_editor asked Jul 19, 2016
3,448 views
Consider a single perception with weights as given in the following figure:and $f(t)$ is defined as$f(t) \bigg\{ 1, t>0 \: 0, t \leq 0$The above perception can solveOR p...
2 votes
2 votes
1 answer
4
go_editor asked Jul 19, 2016
2,734 views
A fuzzy set A on R is ______ iff $A(\lambda x_1 + (1- \lambda)x_2) \geq min [A(x_1), A(x_2)]$ for all $x_1, x_2 \in R$ and all $\lambda \in [0,1]$ where minimum denotes t...