Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-tree
7
7 votes
7
answers
7 answers
109k
109k views
The maximum number of nodes on level i of a binary tree
Level of a node is distance from root to that node. For example, level of root is 1 and levels of left and right children of root is 2. The maximum number of nodes on lev...
Akanksha Kesarwani
109k
views
asked
Jan 16, 2016
Data Structures
binary-tree
data-structures
+
–
0
0 votes
1
1 answer
1.4k
1.4k views
depth of the binary tree with n node?
monali
1.4k
views
asked
Jan 11, 2016
Data Structures
data-structures
binary-tree
+
–
0
0 votes
0
0 answers
681
681 views
How to form a recurrence for finding the height of a weight balanced binary tree?
A weight balanced tree is a binary tree in which for each node, the no. of nodes in the left subtree is atleast half and at most twice the no. of nodes in the right sub t...
radha gogia
681
views
asked
Jan 10, 2016
Data Structures
binary-tree
data-structures
+
–
2
2 votes
1
answers
1 answer
1.2k
1.2k views
Number of different possible orders for traversing to a particular node in a Binary Search Tree
When searching for the key value 50 in a binary search tree, node containing the key values 10, 30, 40, 70, 90, 120, 150, 175 are traversed, in any order. The number of d...
Utk
1.2k
views
asked
Jan 4, 2016
Data Structures
combinatory
binary-tree
+
–
0
0 votes
1
1 answer
736
736 views
MadeEasy Test Series 2018: Programming & DS - Binary Tree
Consider the below code which run on any tree.In-order traversalPost-order traversalPre-order traversalNone of these
Sandeep Singh
736
views
asked
Dec 27, 2015
Data Structures
data-structures
binary-tree
made-easy-test-series
+
–
0
0 votes
2
answers
2 answers
1.5k
1.5k views
What will be the recurrence relation of the given below program for Preorder traversing technique?
Preorder(root){ Printf("root.data"); Preorder(root.leftsidetree); Preorder(root.rightside);}
piyushkr
1.5k
views
asked
Dec 24, 2015
Data Structures
binary-tree
data-structures
recurrence-relation
+
–
0
0 votes
2
2 answers
1.3k
1.3k views
how many threads are there.
venky.victory35
1.3k
views
asked
Dec 20, 2015
Data Structures
data-structures
binary-tree
+
–
46
46 votes
4
answers
4 answers
7.3k
7.3k views
TIFR CSE 2015 | Part B | Question: 4
First, consider the tree on the left. On the right, the nine nodes of the tree have been assigned numbers from the set $\left\{1, 2,\ldots,9\right\}$ so that for every ...
Misbah Ghaya
7.3k
views
asked
Dec 7, 2015
Data Structures
tifr2015
binary-tree
combinatory
+
–
11
11 votes
2
answers
2 answers
2.8k
2.8k views
TIFR CSE 2014 | Part B | Question: 1
Let $T$ be a rooted binary tree whose vertices are labelled with symbols $a, b, c, d, e, f, g, h, i, j, k$. Suppose the in-order (visit left subtree, visit root, visit ri...
Misbah Ghaya
2.8k
views
asked
Nov 19, 2015
Data Structures
tifr2014
binary-tree
data-structures
easy
+
–
41
41 votes
2
answers
2 answers
5.4k
5.4k views
TIFR CSE 2013 | Part B | Question: 13
Given a binary tree of the following form and having $n$ nodes, the height of the tree is$\Theta \left(\log n\right)$$\Theta \left(n\right)$$\Theta \left(\sqrt{n}\right)$...
Misbah Ghaya
5.4k
views
asked
Nov 7, 2015
Data Structures
tifr2013
binary-tree
data-structures
+
–
11
11 votes
1
answers
1 answer
3.3k
3.3k views
TIFR CSE 2012 | Part B | Question: 16
Consider a complete binary tree of height $n$, where each edge is one Ohm resistor. Suppose all the leaves of the tree are tied together. Approximately how much is the ef...
Misbah Ghaya
3.3k
views
asked
Nov 2, 2015
Data Structures
tifr2012
binary-tree
+
–
0
0 votes
5
answers
5 answers
3.0k
3.0k views
What is the level number of an element present in an array of n integers interpreted as a complete binary tree?
If I am given an array $X$ of $n$ distinct integers which is interpreted as a complete binary tree, so if the parent is at index $i$, then it's left child would be at ind...
radha gogia
3.0k
views
asked
Sep 30, 2015
Data Structures
binary-tree
data-structures
+
–
2
2 votes
2
answers
2 answers
1.2k
1.2k views
Inorder traversal of BST if it contain two identical elements.
if two identical elements are present in BST then how inorder can give sorted array as output ?for ex. if 50,30,45,35,56,58,74,50,15 are inserted to make BST.
Neerajnandal
1.2k
views
asked
Jul 21, 2015
Data Structures
binary-tree
+
–
8
8 votes
2
answers
2 answers
22.0k
22.0k views
number of comparision in searching in BST
Consider the following Binary Search Tree 10 / \ 5 20 / / \ 4 15 30 ...
anurag_am
22.0k
views
asked
Jun 17, 2015
Data Structures
data-structures
binary-tree
+
–
0
0 votes
1
answers
1 answer
913
913 views
Time com
Consider a binary tree having 'n' elements or 'n' nodes the tree is organized in such a way that at every level 'i' there are 'i' nodes assuming root to be at level 1 the...
supraja
913
views
asked
Apr 18, 2015
Data Structures
binary-tree
time-complexity
data-structures
+
–
57
57 votes
14
answers
14 answers
39.4k
39.4k views
GATE CSE 2015 | Set 3 | Question: 25
Consider a binary tree T that has $200$ leaf nodes. Then the number of nodes in T that have exactly two children are ______.
go_editor
39.4k
views
asked
Feb 14, 2015
Data Structures
gatecse-2015-set3
data-structures
binary-tree
normal
numerical-answers
+
–
39
39 votes
4
answers
4 answers
18.6k
18.6k views
GATE CSE 2015 | Set 1 | Question: 25
The height of a tree is the length of the longest root-to-leaf path in it. The maximum and minimum number of nodes in a binary tree of height $5$ are$63$ and $6$, respect...
Misbah Ghaya
18.6k
views
asked
Feb 13, 2015
Data Structures
gatecse-2015-set1
data-structures
binary-tree
easy
+
–
61
61 votes
15
answers
15 answers
44.9k
44.9k views
GATE CSE 2015 | Set 2 | Question: 10
A binary tree T has $20$ leaves. The number of nodes in T having two children is ______.
go_editor
44.9k
views
asked
Feb 12, 2015
Data Structures
gatecse-2015-set2
data-structures
binary-tree
easy
numerical-answers
+
–
0
0 votes
2
2 answers
1.2k
1.2k views
Is it option A ?
Palash Nandi 1
1.2k
views
asked
Nov 16, 2014
Data Structures
data-structures
binary-tree
+
–
98
98 votes
8
answers
8 answers
38.1k
38.1k views
GATE IT 2005 | Question: 50
In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most $2$. If the height of the tree is $h 0$, then the m...
Ishrat Jahan
38.1k
views
asked
Nov 3, 2014
Data Structures
gateit-2005
data-structures
binary-tree
normal
+
–
31
31 votes
5
answers
5 answers
8.2k
8.2k views
GATE IT 2004 | Question: 54
Which one of the following binary trees has its inorder and preorder traversals as $BCAD$ and $ABCD$, respectively?
Ishrat Jahan
8.2k
views
asked
Nov 2, 2014
Data Structures
gateit-2004
binary-tree
easy
data-structures
+
–
58
58 votes
3
answers
3 answers
17.3k
17.3k views
GATE IT 2006 | Question: 73
An array $X$ of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If the root node is at level $0$, the le...
Ishrat Jahan
17.3k
views
asked
Nov 1, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
64
64 votes
6
answers
6 answers
22.1k
22.1k views
GATE IT 2006 | Question: 71
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. The index of the parent of element $X[...
Ishrat Jahan
22.1k
views
asked
Nov 1, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
77
77 votes
14
answers
14 answers
39.8k
39.8k views
GATE IT 2006 | Question: 9
In a binary tree, the number of internal nodes of degree $1$ is $5$, and the number of internal nodes of degree $2$ is $10$. The number of leaf nodes in the binary tree i...
Ishrat Jahan
39.8k
views
asked
Oct 31, 2014
Data Structures
gateit-2006
data-structures
binary-tree
normal
+
–
92
92 votes
13
answers
13 answers
33.2k
33.2k views
GATE IT 2007 | Question: 63
A group of $15$ routers is interconnected in a centralized complete binary tree with a router at each tree node. Router $i$ communicates with router $j$ by sending a mess...
Ishrat Jahan
33.2k
views
asked
Oct 30, 2014
Computer Networks
gateit-2007
computer-networks
routing
binary-tree
normal
+
–
97
97 votes
9
answers
9 answers
27.1k
27.1k views
GATE IT 2008 | Question: 77
A binary tree with $n 1$ nodes has $n_1$, $n_2$ and $n_3$ nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbou...
Ishrat Jahan
27.1k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-tree
normal
+
–
71
71 votes
8
answers
8 answers
30.9k
30.9k views
GATE IT 2008 | Question: 76
A binary tree with $n 1$ nodes has $n_1$, $n_2$ and $n_3$ nodes of degree one, two and three respectively. The degree of a node is defined as the number of its neighbou...
Ishrat Jahan
30.9k
views
asked
Oct 29, 2014
Data Structures
gateit-2008
data-structures
binary-tree
normal
+
–
30
30 votes
5
answers
5 answers
12.1k
12.1k views
GATE IT 2008 | Question: 46
The following three are known to be the preorder, inorder and postorder sequences of a binary tree. But it is not known which is which.$MBCAFHPYK$$KAMCBYPFH$$MABCKYFPH$Pi...
Ishrat Jahan
12.1k
views
asked
Oct 28, 2014
Data Structures
gateit-2008
data-structures
normal
binary-tree
+
–
27
27 votes
3
answers
3 answers
7.2k
7.2k views
GATE CSE 1996 | Question: 1.15
Which of the following sequences denotes the post order traversal sequence of the below tree?$f\; e\; g\; c\; d\; b\; a$$g\; c\; b\; d\; a\; f\; e$$g\; c\; d\; b\; f\; e\...
Kathleen
7.2k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-tree
easy
+
–
38
38 votes
3
answers
3 answers
17.8k
17.8k views
GATE CSE 1996 | Question: 1.14
In the balanced binary tree in the below figure, how many nodes will become unbalanced when a node is inserted as a child of the node “g”?$1$$3$$7$$8$
Kathleen
17.8k
views
asked
Oct 9, 2014
Data Structures
gate1996
data-structures
binary-tree
avl-tree
normal
+
–
Page:
« prev
1
...
8
9
10
11
12
13
14
next »