Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-tree
0
votes
0
answers
91
self doubt
somewhere we seen that formula- How many binary tree possible without labeled =c(2n,n)/n+1. anybody explain how we get this formula.
somewhere we seen that formula-How many binary tree possible without labeled =c(2n,n)/n+1. anybody explain how we get this formula.
sandeep singh gaur
466
views
sandeep singh gaur
asked
Feb 22, 2019
DS
binary-tree
+
–
71
votes
9
answers
92
GATE CSE 2019 | Question: 46
Let $T$ be a full binary tree with $8$ leaves. (A full binary tree has every level full.) Suppose two leaves $a$ and $b$ of $T$ are chosen uniformly and independently at random. The expected value of the distance between $a$ and $b$ in $T$ (ie., the number of edges in the unique path between $a$ and $b$) is (rounded off to $2$ decimal places) _________.
Let $T$ be a full binary tree with $8$ leaves. (A full binary tree has every level full.) Suppose two leaves $a$ and $b$ of $T$ are chosen uniformly and independently at ...
Arjun
30.7k
views
Arjun
asked
Feb 7, 2019
DS
gatecse-2019
numerical-answers
data-structures
binary-tree
2-marks
+
–
2
votes
2
answers
93
Gate 2019: B+ Tree
Which of the following is not correct about B + Tree, which is used for creating index of relational database table? (a) Key values in each node kept in sorted order (b) Leaf node pointer points to next node (c) B + tree is height balanced tree (d) Non-leaf node have pointers to data records
Which of the following is not correct about B + Tree, which is used for creating indexof relational database table?(a) Key values in each node kept in sorted order(b) Lea...
HeartBleed
3.2k
views
HeartBleed
asked
Feb 4, 2019
Databases
databases
binary-tree
+
–
1
votes
1
answer
94
Made easy tree height
The height of a binary tree is defined as the number of nodes in the longest path from root to the leaf node. Let X be the height of a complete binary tree with 256 nodes. Then the value of X will be Answer 9
The height of a binary tree is defined as the number of nodes in the longest path from root to the leaf node. Let X be the height of a complete binary tree with 256 nodes...
Ram Swaroop
1.3k
views
Ram Swaroop
asked
Jan 28, 2019
DS
data-structures
binary-tree
+
–
1
votes
0
answers
95
Binary Tree
I think its answer is 8 .Please ,can any one make it sure for me :)
I think its answer is 8 .Please ,can any one make it sure for me :)
Nandkishor3939
658
views
Nandkishor3939
asked
Jan 25, 2019
DS
data-structures
binary-tree
+
–
0
votes
1
answer
96
ME mock1
Consider a binary tree, where for every node P – Q ≤ 2, where P represents number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for node S for h > 0. The minimum number of nodes present in such a binary tree of height h =4 will be 6 8 9 None of these
Consider a binary tree, where for every node P – Q ≤ 2, where P represents number of nodes in left sub tree for node S and Q represents the number of nodes in right s...
balchandar reddy san
415
views
balchandar reddy san
asked
Jan 19, 2019
DS
data-structures
binary-tree
numerical-answers
made-easy-test-series
+
–
0
votes
0
answers
97
Binary tree
Consider a binary tree for every node | P - Q | <= 2. P represents number of nodes in left subtree of S and Q represents number of nodes in right subtree of S for h > 0. The minimum number of nodes present in such tree of height h = 4 ( Root at 0 level)
Consider a binary tree for every node | P - Q | <= 2. P represents number of nodes in left subtree of S and Q represents number of nodes in right subtree of S for h 0. T...
Na462
388
views
Na462
asked
Jan 16, 2019
Programming in C
data-structures
binary-tree
algorithms
made-easy-test-series
+
–
0
votes
1
answer
98
ME TEST SERIES
Shankar Kakde
269
views
Shankar Kakde
asked
Jan 10, 2019
DS
binary-tree
tree-traversal
made-easy-test-series
+
–
3
votes
2
answers
99
#bst tree
The number of BST possible with 6 node numbered 1,2,3,4,5 and 6 with exactly one leaf node
The number of BST possible with 6 node numbered 1,2,3,4,5 and 6 with exactly one leaf node
amit166
547
views
amit166
asked
Jan 5, 2019
DS
binary-tree
+
–
0
votes
1
answer
100
Zeal Test Series 2019: Programming & DS - Binary Tree
A full binary tree is a tree in which every node other than the leaves has two children. If there are 600 leaves then total number of leaf nodes are?
A full binary tree is a tree in which every node other than the leaves has two children. If there are 600 leaves then total number of leaf nodes are?
Prince Sindhiya
730
views
Prince Sindhiya
asked
Jan 2, 2019
DS
zeal
data-structures
binary-tree
zeal2019
+
–
0
votes
0
answers
101
https://www.geeksforgeeks.org/data-structure-gq/binary-trees-gq/
A weight-balanced tree is a binary tree in which for each node. The number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on ... ) of such a tree on n nodes is best described by which of the following? a) b) c) d) Binary Trees
A weight-balanced tree is a binary tree in which for each node. The number of nodes in the left sub tree is at least half and at most twice the number of nodes in the rig...
ayush201
952
views
ayush201
asked
Dec 30, 2018
Programming in C
binary-tree
+
–
3
votes
2
answers
102
GATE Overflow | Mock GATE | Test 1 | Question: 49
The path length of a node is defined as the number of edges from root to that node. For a given full binary tree, the sum of path length of all leaf nodes is equal to $16$ ... of all internal nodes? (Note: A full binary tree is a tree in which every node other than the leaves has 2 children)
The path length of a node is defined as the number of edges from root to that node. For a given full binary tree, the sum of path length of all leaf nodes is equal to $16...
Ruturaj Mohanty
2.2k
views
Ruturaj Mohanty
asked
Dec 27, 2018
DS
go-mockgate-1
binary-tree
data-structures
+
–
2
votes
3
answers
103
MadeEasy Test Series: Programming & DS - Binary Tree
Shamim Ahmed
722
views
Shamim Ahmed
asked
Dec 26, 2018
DS
made-easy-test-series
data-structures
binary-tree
+
–
0
votes
2
answers
104
In a 3-array tree if internal nodes have exactly 3 children,the number of leaf nodes will be __ ?
In a 3-array tree if internal nodes have exactly 3 children,the number of leaf nodes will be __ ? Does it vary for binary tree? What do you mean by internal nodes? Non root node and leaf node?
In a 3-array tree if internal nodes have exactly 3 children,the number of leaf nodes will be __ ?Does it vary for binary tree?What do you mean by internal nodes? Non roo...
sripo
4.8k
views
sripo
asked
Dec 25, 2018
DS
binary-tree
tree
graph-theory
algorithms
data-structures
+
–
4
votes
2
answers
105
Gateforum Test Series: Programming & DS - Binary Tree
Suppose binary tree has only three nodes A,B and C, and you are given the post order traversal of tree as B-A-C . The exact pre order traversal of the tree is? A)C-A-B B)A-B-C C)C-B-A D)Can't be determined from given information.
Suppose binary tree has only three nodes A,B and C, and you are given the post order traversal of tree as B-A-C . The exact pre order traversal of the tree is?A)C-A-BB)A-...
Parth Shah
1.4k
views
Parth Shah
asked
Dec 11, 2018
DS
gateforum-test-series
data-structures
binary-tree
+
–
1
votes
2
answers
106
MadeEasy Subject Test 2019: Programming & DS - Binary Tree
four vertices {A,B,C,D} is given which has only vertex D as a leaf total number of binary tree are possible when every binary tree has four node!
four vertices {A,B,C,D} is given which has only vertex D as a leaf total number of binary tree are possible when every binary tree has four node!
CHïntän ÞäTël
1.0k
views
CHïntän ÞäTël
asked
Dec 10, 2018
DS
made-easy-test-series
data-structures
binary-tree
+
–
0
votes
0
answers
107
binary tree
Consider a binary tree, where for every node $P-Q\leq 2$.Prepresent number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for node S for $h>0$. The minimum number of node present in such binary tree of height $h=4$ _____________ Im getting 8. kindly verify
Consider a binary tree, where for every node $P-Q\leq 2$.Prepresent number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for...
Pawan Kumar 2
960
views
Pawan Kumar 2
asked
Dec 4, 2018
Programming in C
data-structures
binary-tree
+
–
0
votes
0
answers
108
SELF DOUBT BINARY SEARCH
https://gateoverflow.in/132037/self-doubt-in-binary-search-algo DOUBT : THIS QUESTION 10 ELEMENTS ARE IN ARRAY AND SORTED THEN HOW CAN WE DRAW A BALANCED TREE BECZ IT IS ALWAYS GIVING SKEWED TREE.
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...
eyeamgj
280
views
eyeamgj
asked
Nov 30, 2018
Algorithms
binary-search-tree
data-structures
tree
binary-tree
+
–
0
votes
1
answer
109
B+ Trees
can anyone share some good resources fot B+ tree deletion?
can anyone share some good resources fot B+ tree deletion?
aditi19
423
views
aditi19
asked
Nov 23, 2018
Databases
databases
binary-tree
indexing
multilevel
+
–
0
votes
0
answers
110
Self doubt
Mahbub Alam
336
views
Mahbub Alam
asked
Nov 21, 2018
Programming in C
data-structures
binary-tree
+
–
2
votes
3
answers
111
Tree Traversal
Na462
6.6k
views
Na462
asked
Nov 19, 2018
Programming in C
data-structures
binary-tree
+
–
2
votes
1
answer
112
MADEEASY
eyeamgj
748
views
eyeamgj
asked
Nov 19, 2018
DS
data-structures
binary-tree
time-complexity
made-easy-test-series
+
–
0
votes
0
answers
113
ME test series
Which of the following statement is correct reason for “Balanced binary tree is better than a complete binary tree for sorting a set S of n elements”? S1 : A balanced binary tree is more space efficient. S2 : Insertion and deletion can be preferred faster. S3 : Implementation of balanced binary tree require less RAM space. Which of the following is always true?
Which of the following statement is correct reason for “Balanced binary tree is better than a complete binary tree for sorting a set S of n elements”?S1 : A balanced...
newdreamz a1-z0
366
views
newdreamz a1-z0
asked
Nov 17, 2018
Algorithms
binary-tree
+
–
0
votes
1
answer
114
How to understand difference between n/2 and log(n) when comes to operations on a binary tree
For a heap containing n elements,smallest element can be found in n/2 operations.I always get confused and think as logn operations.Please help me differentiating between these two times.
For a heap containing n elements,smallest element can be found in n/2 operations.I always get confused and think as logn operations.Please help me differentiating between...
sripo
670
views
sripo
asked
Nov 8, 2018
DS
data-structures
binary-tree
binary-heap
+
–
0
votes
0
answers
115
Made Easy Booklet
Suppose a binary tree has only three nodes A, B and C and you are given that the post-order traversal for the tree is B-A-C. The exact preorder traversal for the tree is. C-A-B A-B-C C-B-A A definite pre-order traversal cannot be determined from the information given
Suppose a binary tree has only three nodes A, B and C and you are given that the post-order traversal for the tree is B-A-C. The exact preorder traversal for the tree is....
shgarg
4.6k
views
shgarg
asked
Nov 5, 2018
DS
data-structures
binary-tree
made-easy-booklet
tree-traversal
+
–
0
votes
1
answer
116
Red Black Tree
What is the largest possible number of internal nodes in a red-black tree with black height $4?$
What is the largest possible number of internal nodes in a red-black tree with black height $4?$
Lakshman Bhaiya
2.3k
views
Lakshman Bhaiya
asked
Oct 27, 2018
DS
data-structures
binary-tree
+
–
0
votes
0
answers
117
Binary tree
Assume that there is at most $1$ node at height $0$ then a binary tree with $7$ node: $1)$ Has Exactly $8$ edges $2)$ The height of this binary tree is at least $2$ and at most $6$ $3)$ The depth of the root node is zero Which of the above statement are true? $A)1$ $B)3$ $C)2 $ and $3$ $D)1 $ and $ 2$
Assume that there is at most $1$ node at height $0$ then a binary tree with $7$ node:$1)$ Has Exactly $8$ edges$2)$ The height of this binary tree is at least $2$ and at ...
Lakshman Bhaiya
883
views
Lakshman Bhaiya
asked
Oct 27, 2018
DS
data-structures
binary-tree
+
–
0
votes
0
answers
118
Binary Tree
I know the answer. But is there any general FORMULA for it? If yes, please provide the complete derivation of it. In the solution, they used $\rightarrow 2^{h-1}+1.$ I tried but I am not able to derive it.
I know the answer. But is there any general FORMULA for it?If yes, please provide the complete derivation of it. In the solution, they used $\rightarrow 2^{h-1}+1.$ I tri...
Soumya29
306
views
Soumya29
asked
Oct 22, 2018
Programming in C
data-structures
binary-tree
+
–
0
votes
0
answers
119
Binary tree traversal
find the vertical sum of a binary tree. For example,the tree has 5 vertical lines?
find the vertical sum of a binary tree. For example,the tree has 5 vertical lines?
Lakshman Bhaiya
654
views
Lakshman Bhaiya
asked
Oct 22, 2018
DS
data-structures
binary-tree
+
–
0
votes
0
answers
120
Labelled Binary Tree
Consider 4 labeled 1,2,3,4. The number of distinct binary tree possible such that whose inorder traversal is 1,2,3,4 are ........
Consider 4 labeled 1,2,3,4. The number of distinct binary tree possible such that whose inorder traversal is 1,2,3,4 are ........
Na462
621
views
Na462
asked
Oct 20, 2018
Programming in C
data-structures
binary-tree
binary-search-tree
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
...
11
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register