Department of Computer Science and Engineering
Branch: B. Tech (CSE/MNC/ECE/MAE) Semester: 2nd
Course Name: Data Structure Course Code: CS116
Maximum Time: 2 hours Date: 10th March, 2025
1. Write a program for the graph representation using adjacency matric and adjacency list
for the below graph.
2. Perform the breadth first traversal (BFT) for the below graph using Queue data structure,
and identify the correct sequence which is entered by user.
3. Perform the depth first traversal (DFT) for the below graph using stack data structure, and
identify the correct sequence which is entered by user.
4. Implement the minimum spanning tree, along with minimum cost using (a) prims
algorithm (b) Kruskal algorithm for the following graph.
5. Identify the shortest paths from source to all vertices using Dijkstra's Algorithm for the
given graph.