Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged tree
2
2 votes
1
1 answer
128
128 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Tree
Let $T$ be a breadth-first search tree of a undirected graph. Let $(x, y)$ be an edge of $G$ that is not an edge of $T$, then one of $x$ or $y$ is an ancestor of the othe...
GO Classes
128
views
asked
Aug 14
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-250
goclasses-cs-dpp
goclasses-cs-dpp-day-348
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
tree
+
–
2
2 votes
1
1 answer
125
125 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Maximum Space
BFS is performed from the root of a binary tree containing $n$ vertices.For which type of binary tree can BFS require $\Theta(n)$ extra space in the worst case?A complete...
GO Classes
125
views
asked
Aug 14
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-250
goclasses-cs-dpp
goclasses-cs-dpp-day-348
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
queue
tree
multiple-selects
+
–
2
2 votes
1
1 answer
103
103 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Tree
Let $G=(V,E)$ be a graph where its BFS tree contains at least 3 layers.Consider the cut $(L_0 \cup L_1,L_2)$, i.e., all nodes that are $2$ edges away from $s$ form one si...
GO Classes
103
views
asked
Aug 13
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-249
goclasses-cs-dpp
goclasses-cs-dpp-day-347
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
tree
+
–
2
2 votes
1
1 answer
97
97 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Tree Edges
If you perform a breadth-first search (BFS) on the given graph, starting from node $6$, which of the edges of the graph will be part of the BFS tree?Assume that ties are ...
GO Classes
97
views
asked
Aug 13
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-249
goclasses-cs-dpp
goclasses-cs-dpp-day-347
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
tree
multiple-selects
+
–
1
1 vote
0
0 answers
386
386 views
AVL Tree
In how many ways we can insert the elements {1, 2, . . . , 7} into an empty AVL tree so that we don‟t have to perform any rotations on it?
ASUR
386
views
asked
Oct 31, 2025
Programming in C
avl-tree
data-structures
tree
+
–
1
1 vote
1
1 answer
316
316 views
UGC NET CSE | January 2025 | Part 2 | Question: 58
Considering above binary tree, what will be the inorder traversal$\text{BADCEGFH}$$\text{GHFEDCBA}$$\text{BACDEGFH}$$\text{GHFDEBCA}$
Shubham Sharma 2
316
views
asked
Sep 10, 2025
Data Structures
ugcnetcse-jan2025
binary-tree
data-structures
tree
algorithm-challenges
+
–
2
2 votes
1
1 answer
343
343 views
UGC NET CSE | January 2025 | Part 2 | Question: 60
Arrange the following steps of the Inorder Traversal of Binary Tree in the correct order.Visit the Left subtreeVisit the Root nodeVisit the Right subtreeStart traversing ...
Shubham Sharma 2
343
views
asked
Sep 10, 2025
Data Structures
ugcnetcse-jan2025
data-structures
binary-tree
tree
algorithm-design
+
–
1
1 vote
1
1 answer
371
371 views
UGC NET CSE | December 2023 | Part 2 | Question: 28
$2-3-4$ trees are $\text{B}$ - trees of order $4$. They are isometric of ________ trees.AVLAA$2-3$Red-Black
Shubham Sharma 2
371
views
asked
Sep 9, 2025
Data Structures
ugcnetcse-dec2023
data-structures
tree
b-tree
+
–
0
0 votes
1
1 answer
378
378 views
UGC NET CSE | December 2023 | Part 2 | Question: 58
Which of the following graphs are trees?Choose the correct answer from the options given below :$\text{(I)}$ and $\text{(II)}$ Only$\text{(I)}$, $\text{(II)}$ and $\text{...
Shubham Sharma 2
378
views
asked
Sep 9, 2025
Graph Theory
ugcnetcse-dec2023
graph-theory
tree
graph-algorithms
+
–
2
2 votes
1
1 answer
196
196 views
NIELIT Scientific Assistant June 2025 | Question: 69
Which traversal method can be used to print the nodes of a binary tree in ascending order?Pre-order traversalPost-order traversalIn-order traversalLevel-order traversal
Shubham Sharma 2
196
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
binary-tree
data-structures
tree
algorithm-design
+
–
0
0 votes
1
1 answer
180
180 views
NIELIT Scientific Assistant June 2025 | Question: 55
Which of the following is false in the case of a spanning tree of a graph $\text{G}$?It is tree that spans $\text{G}$It is a subgraph of the $\text{G}$It includes every v...
Shubham Sharma 2
180
views
asked
Jul 24, 2025
Graph Theory
nielit-sta-2025
graph-algorithms
tree
+
–
1
1 vote
1
1 answer
613
613 views
B+ tree Construction
Construct a B+ tree to insert the following number(order of the tree is 3) 3, 2, 5, 7, 6, 23, 24, 35, 67, 44, 43, 42, 17, 18, 19.
Dharshana_Dharshana
613
views
asked
Dec 10, 2024
Databases
databases
tree
b-plus-tree
+
–
0
0 votes
0
0 answers
248
248 views
ISI2023-MCS-PCA | Question: 38
The diameter of a tree on $n$ vertices in which every vertex has degree either $1$ or $3$ is:at least $2 \log _{3}(n+1)$ and at most $\frac{n}{2}$.at least $2 \log _{2}\l...
admin
248
views
asked
Oct 10, 2024
Graph Theory
isi2023-mcs-pca
graph-theory
tree
+
–
1
1 vote
3
3 answers
1.2k
1.2k views
ISRO CSE 2023 | Question: 42
The preorder traversal of a binary search tree is $(10,5,1,7,40,50)$. The postorder traversal is$(1,5,7,10,40,50)$$(50,40,10,7,5,1)$$(1,7,5,10,40,50)$$(1,5,7,50,40,10)$
admin
1.2k
views
asked
Sep 28, 2024
Data Structures
isro-cse-2023
binary-search-tree
binary-tree
tree
data-structures
+
–
1
1 vote
1
1 answer
776
776 views
ISI2024-MCS-PCB (CS) | Question: 2
Let $k$ be a positive integer, and $n=2^{k}-1$. Let $X=\{1,2, \ldots, n\}$ be arranged as a min-heap stored in a complete binary tree, $T$.What can be the smallest possib...
admin
776
views
asked
Sep 16, 2024
Data Structures
isi2024-mcs-pcb-cs
binary-heap
data-structures
tree
algorithms
+
–
1
1 vote
1
1 answer
553
553 views
UGC NET CSE | June 2008 | Part 2 | Question: 1
Which of the following does not define a tree?A tree is a connected acyclic graph.A tree is a connected graph with $n-1$ edges where ' $n$ ' is the number of vertices in ...
admin
553
views
asked
Jan 6, 2024
Others
ugcnetcse-june2008-paper2
directed-acyclic-graph
tree
+
–
0
0 votes
1
1 answer
446
446 views
UGC NET CSE | June 2008 | Part 2 | Question: 22
Which of the following can be the sequence of nodes examined in a binary search tree while searching for key $98$?$100, 50, 75, 60, 98$$100,120,90,95,98$$200, 70, 100, 95...
admin
446
views
asked
Jan 6, 2024
Data Structures
ugcnetcse-june2008-paper2
binary-search-tree
data-structures
tree
+
–
4
4 votes
2
2 answers
1.8k
1.8k views
GO Classes 2023 | IIITH Mock Test 1 | Question: 14
Consider a perfect binary tree with $\mathrm{n}$ nodes and $\mathrm{h}$ height. A tree is perfect when all levels of the tree are completely full. Let root is at depth $0...
GO Classes
1.8k
views
asked
Mar 26, 2023
Data Structures
goclasses2023-iiith-mock-11
goclasses
data-structures
tree
binary-tree
one-mark
+
–
3
3 votes
1
1 answer
1.3k
1.3k views
TIFR CSE 2023 | Part B | Question: 8
Let $U$ be a finite set and let $h$ be a function mapping $U \times U$ to $U$. Consider the following process that assigns values to all nodes of a complete binary tree w...
admin
1.3k
views
asked
Mar 14, 2023
Data Structures
tifr2023
data-structures
tree
+
–
–4
–4 votes
2
answers
2 answers
1.7k
1.7k views
Data Structure- Tree & Graphs
*MSQ*The following figure depicts a a. A tree and only treeb. A tree with 3 nodesc. A graph (Since every tree is a graph)d. A graph and only graph
Souvik33
1.7k
views
asked
Oct 27, 2022
Programming in C
data-structures
tree
graph-theory
multiple-selects
normal
bad-question
+
–
0
0 votes
1
1 answer
1.0k
1.0k views
Trees
In GATE if questions just mention a tree then should we assume it to be a directed or undirected tree?Also, if we are having an undirected tree then does the child node c...
Chaitanya Kale
1.0k
views
asked
Aug 31, 2022
Data Structures
tree
+
–
Page:
1
2
3
4
5
6
7
next »