DESIGN & ANALYSIS OF ALGORITHMS LAB PROGRAMS (DSC13)
PART – A
1. Write a program to sort a list of “N” elements using Selection Sort
Technique
2. Write a program to implement Merge sort algorithm for sorting a list of
integers in ascending order.
3. Write a program that implements Prim’s algorithm to generate minimum
cost spanning Tree.
4. Sort a given set of n integer elements using Quick Sort method and compute
its time complexity. Run the program for varied values of n> 5000 and
record the time taken to sort.
5. Write a program in C to find the min and max value in an array using Divide
and Conquer method
6. WAP to perform Knapsack Problem using Greedy Solution
PART – B
1. Write a test program to implement Divide and Conquer Strategy.
2. Write C program that accepts the vertices and edges for a graph and stores it
as an adjacency matrix.
3. Write a Program to perform Travelling Salesman Problem
4. Sort a given set of n integer elements using Merge Sort method and compute
its time complexity. Run the program for varied values of n> 5000, and
record the time taken to sort.
5. Write program to implement Dynamic Programming algorithm for the
Optimal Binary Search Tree Problem.
6. Implement function to print In-Degree, Out-Degree and to display that
adjacency matrix