Professional Documents
Culture Documents
DS Assignment PDF
DS Assignment PDF
Assignment 1
Q1. Implement a data structure that supports the following operations insert, findMin,
findMax, deleteMin, deleteMax, is Empty, makeEmpty.
OBJECTIVE
OUTCOME
Q1
CO 1,2
PO 1,2,3,4,12
PSO 1,2,4
Assignment 2
Q1. Evaluate the following postfix expression using a stack and show the contents of stack
after execution of each operation:
OBJECTIVE
OUTCOME
Q1 Q2 Q3
CO 4 4 4
PO 1,2,3,4,12 1,2,3,4,12 1,2,3,4,12
PSO 1,2,4 1,2,4 1,2,4
Assignment 3
Q1. Construct an AVL search tree by inserting the following elements in the order of their
occurrence. 64, 1, 44 , 26, 13, 110, 98, 85.
Q2. Draw a binary tree T with given the inorder and postorder traversal
Inorder: D K I B A E G H J F C
Post order: K D I E A G B F C J H
Q3. Suppose characters a, b, c, d, e, f have probabilities 0.07, 0.09, 0.12, 0.22, 0.23, 0.27
respectively. Find an optimal Huffman code and draw the Huffman tree
OBJECTIVE
To make students understand the differences between the various tree Data Structures.
OUTCOME
To understand the concept of tree traversing, Height Balance tree and data
compression.
Q1 Q2 Q3
CO 4 4 4
PO 1,2,3,4,12 1,2,3,4,12 1,2,3,4,12
PSO 1,2,4 1,2,4 1,2,4
Assignment 4
Q1. Find Minimum spanning tree using Kruskal’s Algorithm of given graph.
OBJECTIVE
OUTCOME
Students get a hand on Practice on Linked List & Graph, BFS and DFS.
Q1 Q2
CO 5 5
PO 1,2,3,4,12 1,2,3,4,12
PSO 1,2,4 1,2,4
Assignment 5
OBJECTIVE
To enable the students to learn the various sorting and searching algorithms and their
concepts.
OUTCOME
Q1 Q2
CO 2,6 2,6
PO 1,2,3,4,12 1,2,3,4,12
PSO 1,2,4 1,2,4
Assignment 6
Q1. Given input(4371, 1323, 6173, 4199, 4344, 9679,1989} and a Hash function h(X)=
X(mod 10). Show the resulting :
a. Open Addressing Hash Table using Linear Probing.
b. Open Addressing Hash Table using Quadratic Probing.
c. Open Addressing Hash table with second hash function h2(X)=7-(X mod 7).
Q2. Construct a BTree of order 3 for the following set of input data
69,19,43,16,25,40,132,100,145,7,15,18 and delete 69,15
OBJECTIVE
Understand the concept of trees and the operations that can be performed on trees.
Understand the concept of Hashing and probing
OUTCOME
Q1
CO 4,7
PO 1,2,3,4,12
PSO 1,2,4