DSAL List of Laboratory Experiments
DSAL List of Laboratory Experiments
Group A:
Group B:
Group C:
1. Represent a given graph using adjacency matrix/list to perform DFS and using
adjacency list to perform BFS. Use the map of the area around the college as the
graph. Identify the prominent land marks as nodes and perform DFS and BFS on that.
2. There are flight paths between cities. If there is a flight between city A and city B then
there is an edge between the cities. The cost of the edge can be the time that flight
take to reach city B from A, or the amount of fuel used for the journey. Represent this
as a graph. The node can be represented by airport name or name of the city. Use
adjacency list representation of the graph or use adjacency matrix representation of
the graph. Check whether the graph is connected or not. Justify the storage
representation used
3. You have a business with several offices; you want to lease phone lines to connect
them up with each other; and the phone company charges different amounts of
money to connect different pairs of cities. You want a set of lines that connects all your
offices with a minimum total cost. Solve the problem by suggesting appropriate data
structures
Group D:
1. Given sequence k = k1 <k2 < … <kn of n sorted keys, with a search probability pi for each key
ki . Build the Binary search tree that has the least search cost given the access probability for
each key?
Group E:
1. Consider a scenario for Hospital to cater services to different kinds of patients as Serious
(top priority), b) non-serious (medium priority), c) General Checkup (Least priority).
Implement the priority queue to cater services to the patients
Group F:
2. Department maintains a student information. The file contains roll number, name, division
and address. Allow user to add, delete information of student. Display information of
particular employee. If record of student does not exist an appropriate message is
displayed. If it is, then the system displays the student details. Use sequential file to main
the data.
3. Company maintains employee information as employee ID, name, designation and salary.
Allow user to add, delete information of employee. Display information of particular
employee. If employee does not exist an appropriate message is displayed. If it is, then the
system displays the employee details. Use index sequential file to maintain
the data