Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-tree
56
56 votes
8
answers
8 answers
46.5k
46.5k views
GATE CSE 1995 | Question: 1.17
A binary tree $T$ has $n$ leaf nodes. The number of nodes of degree $2$ in $T$ is$\log_2 n$$n-1$$n$$2^n$
Kathleen
46.5k
views
asked
Oct 8, 2014
Data Structures
gate1995
data-structures
binary-tree
normal
+
–
46
46 votes
3
answers
3 answers
14.9k
14.9k views
GATE CSE 1994 | Question: 8
A rooted tree with $12$ nodes has its nodes numbered $1$ to $12$ in pre-order. When the tree is traversed in post-order, the nodes are visited in the order $3, 5, 4, 2, 7...
Kathleen
14.9k
views
asked
Oct 5, 2014
Data Structures
gate1994
data-structures
binary-tree
normal
descriptive
+
–
25
25 votes
3
answers
3 answers
5.5k
5.5k views
GATE CSE 1993 | Question: 16
Prove by the principal of mathematical induction that for any binary tree, in which every non-leaf node has $2$-descendants, the number of leaves in the tree is one more ...
Kathleen
5.5k
views
asked
Sep 29, 2014
Data Structures
gate1993
data-structures
binary-tree
normal
descriptive
+
–
30
30 votes
3
answers
3 answers
8.9k
8.9k views
GATE CSE 1997 | Question: 16
A size-balanced binary tree is a binary tree in which for every node the difference between the number of nodes in the left and right subtree is at most $1$. The distance...
Kathleen
8.9k
views
asked
Sep 29, 2014
Data Structures
gate1997
data-structures
binary-tree
normal
descriptive
proof
+
–
89
89 votes
14
answers
14 answers
31.0k
31.0k views
GATE CSE 2010 | Question: 10
In a binary tree with $n$ nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree ...
go_editor
31.0k
views
asked
Sep 29, 2014
Data Structures
gatecse-2010
data-structures
binary-tree
normal
+
–
70
70 votes
4
answers
4 answers
20.3k
20.3k views
GATE CSE 2012 | Question: 47
The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudo-code below is invoked as height (root) to compute...
Arjun
20.3k
views
asked
Sep 29, 2014
Data Structures
gatecse-2012
data-structures
binary-tree
normal
+
–
75
75 votes
14
answers
14 answers
48.9k
48.9k views
GATE CSE 2011 | Question: 29
We are given a set of $n$ distinct elements and an unlabeled binary tree with $n$ nodes. In how many ways can we populate the tree with the given set so that it becomes a...
go_editor
48.9k
views
asked
Sep 29, 2014
Data Structures
gatecse-2011
binary-tree
normal
+
–
143
143 votes
17
answers
17 answers
42.0k
42.0k views
GATE CSE 2014 | Set 1 | Question: 12
Consider a rooted n node binary tree represented using pointers. The best upper bound on the time required to determine the number of subtrees having exactly $4$ nodes is...
go_editor
42.0k
views
asked
Sep 26, 2014
Data Structures
gatecse-2014-set1
data-structures
binary-tree
numerical-answers
normal
+
–
33
33 votes
2
answers
2 answers
7.2k
7.2k views
GATE CSE 1998 | Question: 20
Draw the binary tree with node labels $\text{a, b, c, d, e, f and g}$ for which the inorder and postorder traversals result in the following sequences:Inorder: $\text{a f...
Kathleen
7.2k
views
asked
Sep 26, 2014
Data Structures
gate1998
data-structures
binary-tree
descriptive
+
–
36
36 votes
4
answers
4 answers
14.2k
14.2k views
GATE CSE 2007 | Question: 46
Consider the following C program segment where $\text{CellNode}$ represents a node in a binary tree:struct CellNode { struct CellNode *leftChild; int element; struct Cell...
Kathleen
14.2k
views
asked
Sep 21, 2014
Data Structures
gatecse-2007
data-structures
binary-tree
normal
+
–
24
24 votes
3
answers
3 answers
11.3k
11.3k views
GATE CSE 2007 | Question: 39, UGCNET-June2015-II: 22
The inorder and preorder traversal of a binary tree are$\text{d b e a f c g}$ and $\text{a b d e c f g}$, respectivelyThe postorder traversal of the binary tree is:$\text...
Kathleen
11.3k
views
asked
Sep 21, 2014
Data Structures
gatecse-2007
data-structures
binary-tree
normal
ugcnetcse-june2015-paper2
+
–
39
39 votes
4
answers
4 answers
41.0k
41.0k views
GATE CSE 2007 | Question: 13
The maximum number of binary trees that can be formed with three unlabeled nodes is:$1$$5$$4$$3$
Kathleen
41.0k
views
asked
Sep 21, 2014
Data Structures
gatecse-2007
data-structures
binary-tree
normal
+
–
40
40 votes
7
answers
7 answers
33.0k
33.0k views
GATE CSE 2007 | Question: 12
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height $h$ is:$2^h -1$$2^{h-1} -1$$2^...
Kathleen
33.0k
views
asked
Sep 21, 2014
Data Structures
gatecse-2007
data-structures
binary-tree
easy
+
–
56
56 votes
3
answers
3 answers
14.2k
14.2k views
GATE CSE 2004 | Question: 43
Consider the following C program segmentstruct CellNode{ struct CellNode *leftChild int element; struct CellNode *rightChild; }; int Dosomething (struct CellNode *ptr) { ...
Kathleen
14.2k
views
asked
Sep 18, 2014
Data Structures
gatecse-2004
data-structures
binary-tree
normal
+
–
42
42 votes
3
answers
3 answers
14.0k
14.0k views
GATE CSE 2004 | Question: 35
Consider the label sequences obtained by the following pairs of traversals on a labeled binary tree. Which of these pairs identify a tree uniquely?preorder and postorderi...
Kathleen
14.0k
views
asked
Sep 18, 2014
Data Structures
gatecse-2004
data-structures
binary-tree
normal
+
–
102
102 votes
5
answers
5 answers
28.5k
28.5k views
GATE CSE 2006 | Question: 13
A scheme for storing binary trees in an array $X$ is as follows. Indexing of $X$ starts at $1$ instead of $0$. the root is stored at $X $. For a node stored at $X[i]$, th...
Rucha Shelke
28.5k
views
asked
Sep 17, 2014
Data Structures
gatecse-2006
data-structures
binary-tree
normal
+
–
30
30 votes
2
answers
2 answers
5.0k
5.0k views
GATE CSE 2002 | Question: 6
Draw all binary trees having exactly three nodes labeled $A, B$ and $C$ on which preorder traversal gives the sequence $C, B, A$.
Kathleen
5.0k
views
asked
Sep 15, 2014
Data Structures
gatecse-2002
data-structures
binary-tree
easy
descriptive
+
–
154
154 votes
10
answers
10 answers
39.2k
39.2k views
GATE CSE 2002 | Question: 2.12
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...
Kathleen
39.2k
views
asked
Sep 15, 2014
Data Structures
gatecse-2002
data-structures
binary-tree
normal
+
–
73
73 votes
6
answers
6 answers
27.5k
27.5k views
GATE CSE 2000 | Question: 2.16
Let LASTPOST, LASTIN and LASTPRE denote the last vertex visited in a postorder, inorder and preorder traversal respectively, of a complete binary tree. Which of the foll...
Kathleen
27.5k
views
asked
Sep 14, 2014
Data Structures
gatecse-2000
data-structures
binary-tree
normal
+
–
47
47 votes
11
answers
11 answers
18.4k
18.4k views
GATE CSE 2000 | Question: 1.14
Consider the following nested representation of binary trees: $(X \ Y \ Z)$ indicates $Y$ and $Z$ are the left and right subtrees, respectively, of node $X$. Note that $Y...
Kathleen
18.4k
views
asked
Sep 14, 2014
Data Structures
gatecse-2000
data-structures
binary-tree
easy
+
–
31
31 votes
5
answers
5 answers
9.0k
9.0k views
GATE CSE 1991 | Question: 14,a
Consider the binary tree in the figure below:What structure is represented by the binary tree?
Kathleen
9.0k
views
asked
Sep 12, 2014
Data Structures
gate1991
data-structures
binary-tree
time-complexity
easy
descriptive
+
–
60
60 votes
2
answers
2 answers
18.8k
18.8k views
GATE CSE 1991 | Question: 01,viii
The weighted external path length of the binary tree in figure is ______
Kathleen
18.8k
views
asked
Sep 12, 2014
Data Structures
gate1991
binary-tree
data-structures
normal
numerical-answers
+
–
27
27 votes
8
answers
8 answers
10.0k
10.0k views
GATE CSE 1991 | Question: 1,ix
If the binary tree in figure is traversed in inorder, then the order in which the nodes will be visited is ______
Kathleen
10.0k
views
asked
Sep 12, 2014
Data Structures
gate1991
binary-tree
easy
data-structures
descriptive
+
–
Page:
« prev
1
...
9
10
11
12
13
14