Chapter Study

BCA Semester 3 Data Structure and AlgorithmsUnit 7: Trees (5Hrs)

Comprehensive questions and detailed answers for Unit 7: Trees (5Hrs). Perfect for exam preparation and concept clarity.

7
Questions
50
Marks
Back to All Chapters

Draw a BST from the string DATASTRUCTURE and traverse the tree in post order and preorder.

MediumTHEORY5 marks2019(TU FOHSS Final)

Define AVL tree. Construct AVL tree from given data set:4,6,12,9,5,2,13,8,3,7,11.4, 6, 12, 9, 5, 2, 13, 8, 3, 7, 11.

MediumTHEORY5 marks2019(TU FOHSS Final)

What do you mean by Huffman Algorithm? Explain with example. Construct the B tree of order 5 using following data: 20,10,26,55,80,11,9,60,67,55,22,76,56,45,34,100,15020, 10, 26, 55, 80, 11, 9, 60, 67, 55, 22, 76, 56, 45, 34, 100, 150

HardTHEORY10 marks2021(TU FOHSS Final)

Differentiate between BST and AVL tree. Given the following AVL Tree:

DOT
1digraph Tree {
2    node [shape=circle];
3    5 -> 3;
4    5 -> 10;
5    3 -> 2;
6    3 -> 4;
7    2 -> 1;
8    10 -> 7;
9    10 -> 11;
10    7 -> 6;
11    7 -> 9;
12    9 -> 8;
13    11 -> 12;
14}

Draw the resulting BST after 5 is removed, but before any rebalancing takes place. Label each node in the resulting tree with its balance factor. Replace a node with both children using an appropriate value from the node's left child.

HardTHEORY10 marks2022(TU FOHSS Final)

What are the depth and degree of a node in a tree? Perform pre-order, in-order and post- order traversal of the following tree:

DOT
1digraph Tree {
2    node [shape=circle];
3    G -> K;
4    G -> H;
5    K -> D;
6    K -> M;
7    M -> C;
8    M -> E;
9    H -> A;
10    H -> B;
11    A -> F;
12    A -> N;
13}
MediumTHEORY5 marks2023(TU FOHSS Final)

What is an AVL tree? Create an AVL tree from the following data: 18,12,14,8,5,25,31,24,2718, 12, 14, 8, 5, 25, 31, 24, 27

MediumTHEORY5 marks2024(TU FOHSS Final)

What is B-tree? How insertions and deletions of elements can be done in a B-tree.

HardTHEORY10 marks2024(TU FOHSS Final)
Showing 7 questions

Sample Questions

Draw a BST from the string DATASTRUCTURE and traverse the tree in post order and preorder.

Marks: 5Chapter: Unit 7: Trees (5Hrs)

Define AVL tree. Construct AVL tree from given data set:$4, 6, 12, 9, 5, 2, 13, 8, 3, 7, 11.$

Marks: 5Chapter: Unit 7: Trees (5Hrs)

What do you mean by Huffman Algorithm? Explain with example. Construct the B tree of order 5 using following data: \(20, 10, 26, 55, 80, 11, 9, 60, 67, 55, 22, 76, 56, 45, 34, 100, 150\)

Marks: 10Chapter: Unit 7: Trees (5Hrs)

Differentiate between BST and AVL tree. Given the following AVL Tree: dot digraph Tree { node [shape=circle]; 5 -> 3; 5 -> 10; 3 -> 2; 3 -> 4; 2 -> 1; 10 -> 7; 10 -> 11

Marks: 10Chapter: Unit 7: Trees (5Hrs)

What are the depth and degree of a node in a tree? Perform pre-order, in-order and post- order traversal of the following tree: dot digraph Tree { node [shape=circle]; G -> K; G -> H;

Marks: 5Chapter: Unit 7: Trees (5Hrs)

And more questions available on this page.

Unit 7: Trees (5Hrs) chapter questions with answers for Data Structure and Algorithms (BCA Semester 3). Prepare for TU exams with our comprehensive question bank and model answers.