FDS MID-2 Assignment Questions
FDS MID-2 Assignment Questions
10. Construct a Binary tree from a given preorder and inorder sequence:
Preorder: A B D G C E H I F
Inorder: D G B A H E I C F
11. Construct an expression tree for the Arithmetic expression:
(A + B * C) - ((D * E + F) / G)
12. Explain why threaded binary trees are called efficient binary trees? Give the merits of using a threaded
binary tree
Unit – 4
1. (a) Describe about Binary Search Trees. List out Applications of BST.
(b) Explain Binary Search Tree with the help of suitable example.
2. List out various Binary Search Tree operations. Write the steps for to creation and insertion operation of
BST.
3. List out different ways deletion operation on BST. Write the steps each case with example.
4. Describe how to perform search/ Traversal operations on BST. Explain each with example.
5. Construct Binary tree and Binary Search Tree from the given data
if, else, printf, scanf, for, while, goto, continue, static, auto, extern, typedef
6. List out different Balanced Trees. Explain any one of them with example.
7. Define AVL Tree? Explain each rotation with an example.
8. List out different rotations in AVL Tree and explain each with suitable example.
9. Explain an algorithm for inserting an element into the AVL Tree with suitable example.
10. Describe how to perform delete operation on AVL Tree
Unit- 5
1. Describe a graph and its types.
2. List graph properties and explain transposition of a graph.
3. State the different ways of representing graphs in memory and explain.
4. List the operations on graphs and explain.
5. Describe Depth first traversal algorithm.
6. Describe minimum spanning tree and explain prim’s algorithm with example.
7. List the steps of kruskal’s algorithm by describing the minimum spanning tree.
8. List the steps of single source Dijkstra’s shortest path algorithm.