Data structure question bank
Question Bank
Unit 3
Write Shortnote on:
i) Binary Tree ii) Complete Binary Tree
iii) Extended Binary Tree iv) Threaded Binary trees
Design an algorithm of preorder Traversal/In order Traversal/ Post order Traversal.
Design an algorithm of Huffman with suitable example?
Data items: A B C D E F G H
Weight : 22 5 11 19 2 11 25 5
Design a Binary tree of given order.
Post order: A F E B C I J L N O P H M D
IN Order : A B F E D C J I M L H N P O
UNIT 4
Define Activity Networks.
Design an algorithm of BFS with suitable example.
Evaluate minimum spanning tree using prims / kruskal algorithm.
5 3
6 9
4 1
10 10
2 2 7
4 6
Design warshall’s algorithm for finding shortest path between every pair of vertices of given graph.
W=
7 5 0 0
7 0 0 2
0 3 0 0
4 0 1 0
Unit 5
Define M-way trees.
Define B -Tree. Construct a tree of order 3 by inserting the following keys in the order shown into an empty B tree.
M,Q,A,N,P,W,X,T,G,E,J
Design an algorithm of Insertion sort with Suitable example.
Or
Define pivote element? Construct an algorithm for quick sort with suitable e.g.
Define AVL Tree. Briefly explain all the types of AVL tree with suitable example.
Comments
Post a Comment