DS Question Bank
DS Question Bank
QUESTION BANK
MODULE 1
2. What are the different types of memory Allocation? Explain the Different
functions that supports Dynamic Memory Allocation
3. Differentiate between static and dynamic memory allocations.
OR
18. Write Inorder, Preorder and Postorder for the below Tree.
20. Given a File of N employee records with a set K of Keys (4-digit) which uniquely
determine the records in file F. Assume that file F is maintained in memory by a Hash
Table (HT) of m memory locations with L as the set of memory addresses (2-digit) of
locations in HT. Let the keys in K and addresses in L are Integers. Develop a Program
in C that uses Hash function H: K →L as H(K)=K mod m (remainder method), and
implement hashing technique to map a given key K to the address space L. Resolve the
collision (if any) using linear probing.
21. Develop a Program in C for the following operations on Graph(G) of Cities a.
Create a Graph of N cities using Adjacency Matrix. b. Print all the nodes reachable from
a given starting node in a digraph using DFS/BFS method
22. Explain selection tree.
23. Construct Binary Search Tree for the element step-by-step
100,85,45,55,110,20,70,65,113,145,132,96.
24. What is leftist Tree? List and Explain the types of Leftist tree.
25. Define the following:
i. Graph
ii. Multi-graph
iii. Graph with self-edge
DATA STRUCTURES & APPLICATIONS (BCS304)
iv. Sub-graph
v. Complete graph
26. What is graph? Give matrix and adjacency list representation of graph. Show
adjacency matrix and list for the below graph.