MSCCS Slips CS554MJP DAA
MSCCS Slips CS554MJP DAA
Q.1) Write a program to sort a list of n numbers in ascending order using selection sort and
determine the time required to sort the elements. [15 Marks]
Q.2) Write a program to sort a given set of elements using the Quick sort method and determine
the time required to sort the elements. Repeat the experiment for different values of n, the
number of elements in the list to be sorted. The elements can be read from a file or can be
generated using the random number generator.
[15 Marks]
Slip 1
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to sort n randomly generated elements using Heapsort method. [15 Marks]
Slip 2
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to sort a given set of elements using the Quick sort method and determine
the time required to sort the elements [15 Marks]
Q.2) Write a program to find Minimum Cost Spanning Tree of a given undirected graph using
Prims algorithm [15 Marks]
Slip 3
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement a Merge Sort algorithm to sort a given set of elements and
determine the time required to sort the elements [15 Marks]
Q.2) Write a program to implement Knapsack problems using Greedy method [15 Marks]
Slip 4
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program for the Implementation of Kruskal’s algorithm to find minimum
cost spanning tree. [15 Marks]
Q.2) Write a program to implement Huffman Code using greedy methods and also calculate the
best case and worst-case complexity. [15 Marks]
Slip 5
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q-1) Write a program for the Implementation of Prim’s algorithm to find minimum cost
spanning tree. [15 Marks]
Slip 6
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q-1) Write a program for the Implementation of Dijkstra’s algorithm to find shortest path to
other vertices [15 Marks]
Q.3) Write a program for finding Topological sorting for Directed Acyclic Graph (DAG)
[15 Marks]
Slip 7
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement Fractional Knapsack problems using Greedy Method
[15 Marks]
Q.2) Write Program to implement Traveling Salesman Problem using nearest neighbor
algorithm
[15 Marks]
Slip 8
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement optimal binary search tree and also calculate the best-case
complexity. [15 Marks]
Slip 9
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement Huffman Code using greedy methods [15 Marks]
Slip 10
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a programs to implement DFS (Depth First Search) and determine the time
complexity for the same. [15 Marks]
Q.1) Write a program to find shortest paths from a given vertex in a weighted connected
graph, to other vertices using Dijkstra’s algorithm. [15 Marks]
Slip 11
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement BFS (Breadth First Search) and determine the time
complexity for the same. [15 Marks]
Q.2) Write a program to sort a given set of elements using the Selection sort method and
determine the time required to sort the elements. [15 Marks]
Slip 12
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.2) Write a program to implement an optimal binary search tree and also calculate the
best case and worst-case complexity. [15 Marks]
Slip 13
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to sort a list of n numbers in ascending order using Insertion sort and
determine the time required to sort the elements.
[15 Marks]
Q.2) Write a program to implement DFS and BFS. Compare the time complexity
[15 Marks]
Slip 14
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement to find out solution for 0/1 knapsack problem using
Slip 15
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement to find out solution for 0/1 knapsack problem using
dynamic programming. [15 Marks]
Q.2) Write a program to determine if a given graph is a Hamiltonian cycle or not. [15 Marks]
Slip 16
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement solve ‘N’ Queens Problem using Backtracking.
[15 Marks]
Q.2) Write a program to find out solution for 0/1 knapsack problem. [15 Marks]
Slip 17
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.2) Write a program to find out live node, E node and dead node from a given graph.
[15 Marks]
Slip 18
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
[15 Marks]
Slip 19
SAVITIBAI PHULE UNIVERSITY
M.Sc.(Computer Science) Sem-II
Practical Examination (From 2023-2024)
SUBJECT: CS-554-MJP : Lab Course on CS-551-MJ (Design and Analysis of Algorithms)
Q.1) Write a program to implement for finding Topological sorting and determine the time
[15 Marks]
Slip 20