Docsity

Trees, Binary Search Tree, Quizzes of Data Structures and Algorithms

Toggle sidebar
bg1
Lahore Leads University
Faculty of Engineering
Department of Electrical Engineering
Course Title: Data Structures and Algorithms
Registration # ______________________
Marks: 2.5
Time: 20 mint
Q # 1: Suppose a binary tree as following, Explain type of tree, its root node, child nodes, leaf
nodes and height of tree. (Marks = 5, CLO = 1)
Q # 2: Suppose a binary search tree having the following values is to the constructed.
Construct the tree. 16, 19, 15, 9, 8, 66, 12, 61
(Marks = 5, CLO = 1)
pf2

Partial preview of the text

Download Trees, Binary Search Tree and more Quizzes Data Structures and Algorithms in PDF only on Docsity!

Lahore Leads University

Faculty of Engineering

Department of Electrical Engineering

Course Title: Data Structures and Algorithms

Registration # ______________________ Marks: 2. Time: 20 mint Q # 1: Suppose a binary tree as following, Explain type of tree, its root node, child nodes, leaf nodes and height of tree. (Marks = 5, CLO = 1) Q # 2: Suppose a binary search tree having the following values is to the constructed. Construct the tree. 16, 19, 15, 9, 8, 66, 12, 61 (Marks = 5, CLO = 1)

Q # 3: Traverse the following tree through in order, post order and preorder traversal algorithms. (Marks = 5, CLO = 1) Q # 4: Write down the function to search the required data into Binary Search Tree. (Marks = 5, CLO = 2)