Data structure question bank

Question Bank

Unit 3

  1. Write Shortnote on:

i) Binary Tree            ii) Complete Binary Tree

iii) Extended Binary Tree    iv) Threaded Binary trees

  1. Design an algorithm of preorder Traversal/In order Traversal/ Post order Traversal.

  2. 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

  1. 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

  1. Define Activity Networks.

  2. Design an algorithm of BFS with suitable example.

  3. Evaluate minimum spanning tree using prims / kruskal algorithm.


                                      5                                    3

           6                                  9

          4        1

            10                         10

                  2            2                  7

    4            6



  1. 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 

  1. Define M-way trees.

  2. 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

  1. Design an algorithm of Insertion sort with Suitable example.

        Or

Define pivote element? Construct an algorithm for quick sort with suitable e.g.

  1. Define AVL Tree. Briefly explain all the types of AVL tree with suitable example.




Comments

Popular posts from this blog

Huffman coding || Huffman coding with example || Huffman coding method || Huffman coding in c/c++ ||Huffman coding programe in c/c++/data structure /java || what is Huffman coding || Huffman complete,

Ada important question bank

Unix assignment question

Graphs in data structure, it's algorithm

Java question bank

M-way Trees

B Tree

Radix Sort

csa unit 01 part 01 basic of computers notes pdf