Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-tree
0
votes
2
answers
211
Programming & DS - Binary Tree
Whats wrong with option B? Give an example?
Whats wrong with option B?Give an example?
Adiaspirant
700
views
Adiaspirant
asked
Jan 8, 2017
DS
data-structures
binary-tree
+
–
2
votes
2
answers
212
common ancestors of two nodes in AVl tress
can anyone define the procedure to find the common ancestor of any two given nodes in balanced BST..??
can anyone define the procedure to find the common ancestor of any two given nodes in balanced BST..??
Akriti sood
685
views
Akriti sood
asked
Dec 21, 2016
DS
data-structures
avl-tree
binary-tree
+
–
14
votes
3
answers
213
GATE CSE 1988 | Question: 7iii
Consider the tree given in the below figure, insert $13$ and show the new balance factors that would arise if the tree is not rebalanced. Finally, carry out the required rebalancing of the tree and show the new tree with the balance factors on each mode.
Consider the tree given in the below figure, insert $13$ and show the new balance factors that would arise if the tree is not rebalanced. Finally, carry out the required ...
go_editor
3.2k
views
go_editor
asked
Dec 19, 2016
DS
gate1988
normal
descriptive
data-structures
binary-tree
+
–
6
votes
2
answers
214
GATE CSE 1988 | Question: 7ii
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.
Mark the balance factor of each node on the tree given in the below figure and state whether it is height-balanced.
go_editor
2.1k
views
go_editor
asked
Dec 19, 2016
DS
gate1988
data-structures
normal
descriptive
avl-tree
binary-tree
+
–
8
votes
2
answers
215
GATE CSE 1988 | Question: 7i
Define the height of a binary tree or subtree and also define a height-balanced (AVL) tree.
Define the height of a binary tree or subtree and also define a height-balanced (AVL) tree.
go_editor
1.7k
views
go_editor
asked
Dec 19, 2016
DS
gate1988
normal
descriptive
data-structures
binary-tree
+
–
1
votes
1
answer
216
MadeEasy Test Series: Programming & DS - Binary Tree
rahul sharma 5
297
views
rahul sharma 5
asked
Dec 19, 2016
Programming in C
made-easy-test-series
data-structures
binary-tree
+
–
1
votes
0
answers
217
MadeEasy Test Series: Programming & DS - Binary Tree
how A and B are different
how A and B are different
Anusha Motamarri
326
views
Anusha Motamarri
asked
Dec 11, 2016
Algorithms
made-easy-test-series
data-structures
binary-tree
+
–
2
votes
1
answer
218
No of binary tree
number of distinct binary tree,that can be created by 5 nodes(distinct)
number of distinct binary tree,that can be created by 5 nodes(distinct)
Aboveallplayer
683
views
Aboveallplayer
asked
Dec 10, 2016
Graph Theory
data-structures
binary-tree
+
–
5
votes
1
answer
219
trees
jenny101
629
views
jenny101
asked
Dec 9, 2016
DS
binary-tree
+
–
1
votes
1
answer
220
number of distinct binary search trees
The answer is given as 14.I calculated using Catalan number but the answer did not come as 14.
The answer is given as 14.I calculated using Catalan number but the answer did not come as 14.
jenny101
697
views
jenny101
asked
Dec 9, 2016
Programming and DS
binary-tree
+
–
0
votes
0
answers
221
MadeEasy Test Series: Programming & DS - Binary Tree
Vishal Goyal
386
views
Vishal Goyal
asked
Dec 6, 2016
DS
made-easy-test-series
data-structures
binary-tree
+
–
14
votes
3
answers
222
GATE CSE 1989 | Question: 3-ixa
Which one of the following statements (s) is/are FALSE? Overlaying is used to run a program, which is longer than the address space of the computer. Optimal binary search tree construction can be performed efficiently by using dynamic programming. ... of a graph. Given the prefix and postfix walls over a binary tree, the binary tree can be uniquely constructed.
Which one of the following statements (s) is/are FALSE?Overlaying is used to run a program, which is longer than the address space of the computer.Optimal binary search t...
makhdoom ghaya
4.1k
views
makhdoom ghaya
asked
Nov 27, 2016
DS
normal
gate1989
binary-tree
multiple-selects
+
–
0
votes
3
answers
223
Binary tree Made-easy-test-series
The minimum size that an array may require to store a binary tree with n nodes $2^{\left \lceil(log_2(n+1)) \right \rceil -1}$ $2n-1$ $2n-n+1$ $n+1$
The minimum size that an array may require to store a binary tree with n nodes$2^{\left \lceil(log_2(n+1)) \right \rceil -1}$$2n-1$$2n-n+1$$n+1$
thor
4.3k
views
thor
asked
Nov 27, 2016
DS
binary-tree
array
made-easy-test-series
+
–
22
votes
5
answers
224
GATE CSE 1990 | Question: 3-iv
The total external path length, $\text{EPL},$ of a binary tree with $n$ external nodes is, $\text{EPL}= \displaystyle \sum_{w} I_w$, where $I_{w}$ is the path length of external node $w$), $\leq n^{2}$ always. $\geq n \log_{2} n$ always. Equal to $n^{2}$ always. $O(n)$ for some special trees.
The total external path length, $\text{EPL},$ of a binary tree with $n$ external nodes is, $\text{EPL}= \displaystyle \sum_{w} I_w$, where $I_{w}$ is the path length of e...
makhdoom ghaya
6.4k
views
makhdoom ghaya
asked
Nov 22, 2016
DS
gate1990
normal
data-structures
binary-tree
multiple-selects
+
–
4
votes
1
answer
225
Trees
thor
557
views
thor
asked
Nov 21, 2016
DS
tree
binary-tree
+
–
0
votes
1
answer
226
Question Binary tree
thor
1.0k
views
thor
asked
Nov 21, 2016
DS
binary-tree
data-structures
+
–
18
votes
3
answers
227
GATE CSE 1987 | Question: 7b
Construct a binary tree whose preorder traversal is $K\;L\;N\;M\;P\;R\;Q\;S\;T$ and inorder traversal is $N\;L\;K\;P\;R\;M\;S\;Q\;T$
Construct a binary tree whose preorder traversal is$K\;L\;N\;M\;P\;R\;Q\;S\;T$and inorder traversal is$N\;L\;K\;P\;R\;M\;S\;Q\;T$
makhdoom ghaya
5.2k
views
makhdoom ghaya
asked
Nov 14, 2016
DS
gate1987
data-structures
binary-tree
descriptive
+
–
19
votes
3
answers
228
GATE CSE 1987 | Question: 2g
State whether the following statements are TRUE or FALSE: If the number of leaves in a tree is not a power of $2,$ then the tree is not a binary tree.
State whether the following statements are TRUE or FALSE:If the number of leaves in a tree is not a power of $2,$ then the tree is not a binary tree.
makhdoom ghaya
5.0k
views
makhdoom ghaya
asked
Nov 9, 2016
DS
gate1987
data-structures
binary-tree
true-false
+
–
31
votes
5
answers
229
GATE CSE 1987 | Question: 2c
State whether the following statements are TRUE or FALSE: It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given?
State whether the following statements are TRUE or FALSE:It is possible to construct a binary tree uniquely whose pre-order and post-order traversals are given?
makhdoom ghaya
6.6k
views
makhdoom ghaya
asked
Nov 9, 2016
DS
gate1987
binary-tree
data-structures
normal
true-false
+
–
0
votes
1
answer
230
Binary Trees
I have seen that in some question height and deapth of binary tree are used interchangably. So, I request to say difference between height and deapth of a binary tree.
I have seen that in some question height and deapth of binary tree are used interchangably. So, I request to say difference between height and deapth of a binary tree.
Tarak
412
views
Tarak
asked
Nov 8, 2016
Programming in C
binary-tree
+
–
1
votes
1
answer
231
Which of the following are true ?
Rohan Mundhey
1.4k
views
Rohan Mundhey
asked
Nov 5, 2016
DS
binary-tree
data-structures
normal
+
–
0
votes
0
answers
232
Kerala PSC AP Exam
IN a binary tree, the number of internal nodes of degree one is 5 and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree is A) 15 B) 11 C) 12 D) 10
IN a binary tree, the number of internal nodes of degree one is 5 and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree isA) 15B...
Sankaranarayanan P.N
313
views
Sankaranarayanan P.N
asked
Oct 27, 2016
DS
binary-tree
+
–
0
votes
0
answers
233
Kerala PSC AP Exam
In a binary tree, for every node the difference between the number of nodes in the left and right sub trees is atmost 2. If the height of the tree is h > 0 , then the minimum number of nodes in the tree is A) 2 h-1 B) 2h-1 +1 C) 2h - 1 D) 2h
In a binary tree, for every node the difference between the number of nodes in the left and right sub trees is atmost 2. If the height of the tree is h 0 , then the min...
Sankaranarayanan P.N
433
views
Sankaranarayanan P.N
asked
Oct 27, 2016
DS
binary-tree
+
–
2
votes
1
answer
234
binary tree
The height of a binary tree having $`\text{i’}$ nodes at level $`\text{i’}$ considering root to be at level $1$ is __________, where $`n\text{’}$ is the total no. of nodes in the tree. $O(\log n)$ $(O(n)$ $O(\sqrt{n})$ $O(n^{2})$
The height of a binary tree having $ \text{i’}$ nodes at level $ \text{i’}$ considering root to be at level $1$ is __________, where $ n\text{’}$ is the total no. o...
Shubham Pandey 2
607
views
Shubham Pandey 2
asked
Oct 26, 2016
DS
data-structures
binary-tree
+
–
1
votes
2
answers
235
GATE Overflow | Data Structures | Test 1 | Question: 25
Consider the following nested representation of Binary Trees. $(ABC)$ indicates $B$ and $C$ are left and right subtrees of node $A$ respectively. Note that $B$ and $C$ may be NULL or further nested. Which of the following representation is not a valid Binary tree? (1 2 3) (1 (2 3 4) (5 6 7)) (1 (1 (1 1 1) (1 1 1)) (1 1 1)) (1 (2 3) 4)
Consider the following nested representation of Binary Trees.$(ABC)$ indicates $B$ and $C$ are left and right subtrees of node $A$ respectively. Note that $B$ and $C$ may...
Arjun
504
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
+
–
6
votes
5
answers
236
GATE Overflow | Data Structures | Test 1 | Question: 16
A program takes as input a binary tree (not necessarily balanced) with $n$ nodes and computes for each node, the no. of leaf nodes in the sub-tree rooted at that node. The worst case time complexity of the program is $\Theta(n)$ $\Theta(n \log n)$ $\Theta\left(n^2 \right)$ $\Theta\left(n^2 \log n \right)$
A program takes as input a binary tree (not necessarily balanced) with $n$ nodes and computes for each node, the no. of leaf nodes in the sub-tree rooted at that node. Th...
Arjun
1.2k
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
+
–
0
votes
1
answer
237
GATE Overflow | Data Structures | Test 1 | Question: 14
Consider the array given below: 20 10 9 8 7 6 5 It is a full binary tree in array representation a complete binary tree in array representation a max-heap in array representation all of the above
Consider the array given below:20 10 9 8 7 6 5It isa full binary tree in array representationa complete binary tree in array representationa max-heap in array representat...
Arjun
317
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
binary-heap
+
–
1
votes
2
answers
238
GATE Overflow | Data Structures | Test 1 | Question: 10
With 5 distinct nodes, the maximum no. of binary trees that can be formed is _____
With 5 distinct nodes, the maximum no. of binary trees that can be formed is _____
Arjun
853
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
numerical-answers
+
–
2
votes
3
answers
239
GATE Overflow | Data Structures | Test 1 | Question: 9
Which of the following statements is false? A tree with $n$ nodes has $n-1$ edges A labeled rooted binary tree can be uniquely constructed given its in-order and pre-order traversal results. A complete binary tree with $n$ internal nodes has $n+1$ ... tree of height $h$ is $2^{h+1} - 1$ where $h$ is the maximum distance of a node from root.
Which of the following statements is false?A tree with $n$ nodes has $n-1$ edgesA labeled rooted binary tree can be uniquely constructed given its in-order and pre-order ...
Arjun
1.2k
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
+
–
3
votes
4
answers
240
GATE Overflow | Data Structures | Test 1 | Question: 8
What is the number of binary trees with $4$ nodes which when traversed in pre-order gives the sequence A, B, C, D?
What is the number of binary trees with $4$ nodes which when traversed in pre-order gives the sequence A, B, C, D?
Arjun
850
views
Arjun
asked
Oct 10, 2016
DS
go-ds-1
data-structures
binary-tree
numerical-answers
+
–
Page:
« prev
1
...
3
4
5
6
7
8
9
10
11
12
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register