Recent questions tagged tree

1 votes
1 answer
31
What is the smallest and largest number of entries for 2_3 BTree (B2_3 Tree) of height 8 (i.e 8 levels) ? 255 & 6560127 & 21866561 & 255255 & 2186
2 votes
0 answers
32
A tree with n nodes and the property that the heights of the two children of any node differ by at most 2 has O(log n) height.Please explain this statement to be true or ...
2 votes
1 answer
35
7 votes
1 answer
36
Two balanced binary search trees are given with $m$ and $n$ elements respectively. They can be merged into another balanced binary search tree in $\Theta((m+n)^a {(\log (...
3 votes
1 answer
37
The maximum number of leaf nodes in a tree with degree $5$ and height (starting from $1)\;4$ is __________
1 votes
3 answers
39
2 votes
1 answer
40
In a complete $k$-ary tree, every internal node has exactly $k$ children. The number of leaves in such a tree with $n$ internal nodes is$nk$$(n-1)k+1$$n(k-1)+1$$n(k-1)$
6 votes
3 answers
41
Of the following, which best approximates the ratio of the number of nonterminal nodes in the total number of nodes in a complete $K$-ary tree of depth $N$ ?$1/N$$N-1/N$$...
5 votes
4 answers
43
Suppose that the figure to the right is a binary search tree. The letters indicate the names of the nodes, not the values that are stored. What is the predecessor node, i...
1 votes
1 answer
44
here what to do first as FIZZA and IMRAN both are unbalanced than either to do RR rotation from FIZZA-IMRAN-NAVEEN or RL rotation from IMRAN-NAVEEN-LOVELY
0 votes
1 answer
45
The number of possible ordered trees with 3 nodes A,B,C is ??
1 votes
0 answers
46
For range queries every B+ tree index requires less I/O than a full table scan.can anyone explain?
0 votes
0 answers
47
Leaf Nodes =[ Internal nodes with degree 2 ] + 1It is valid if we consider Tree as undirected graph ?Or is it valid only for Tree when considered as directed graph
8 votes
2 answers
48
0 votes
2 answers
49
2 votes
3 answers
50
____ number of leaf nodes in a rooted tree of $n$ nodes, where each node is having $0$ or $3$ children$\frac{n}{2}$$\frac{(2n+1)}{3}$$\frac{(n-1)}{n}$$(n-1)$
0 votes
0 answers
51
https://gateoverflow.in/132037/self-doubt-in-binary-search-algoDOUBT : THIS QUESTION 10 ELEMENTS ARE IN ARRAY AND SORTED THEN HOW CAN WE DRAW A BALANCED TREE BECZ IT I...
0 votes
1 answer
52
how many different trees possible with 5 nodes?
0 votes
0 answers
53
Please suggest how to learn AVL rotation in AVL trees and some good practice questions or link would be so much helpfulThanks
1 votes
2 answers
54
0 votes
0 answers
55