Docsity

Algorithm Design and Analysis Lab Manual for BCA Students, Lecture notes of Design and Analysis of Algorithms

Partial preview of the text

Download Algorithm Design and Analysis Lab Manual for BCA Students and more Lecture notes Design and Analysis of Algorithms in PDF only on Docsity!

1. Write a program to sort a list of N elements using Selection sort Technique.

2. Write a program to implement the DFS and BFS algorithm for a graph.

DFS

3. Write a program to find minimum and maximum value in an array using Divide and conquer.

4. Write a test program to implement Divide and Conquer Strategy Eg: Quick sort algorithm for sorting list of integers in ascending order.

6. 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.

7. Sort a given set of N integer elements using Quick Sort method and compute its complexity. Run the program for varied values of n >5000 and record the time taken to sort.

1. Write program to implement Dynamic Programming algorithm for the 0/

Knapsack problem.

2. Write a program to perform Knapsack Problem using Greedy Solution.

4. Implement function to print In-Degree, Out-Degree and to display that

adjacency matrix.

5. Write program to implement backtracking algorithm for solving problems like

N queens.

7. Write program to implement greedy algorithm for job sequencing with

deadlines.

8. Write program to implement Dynamic Programming algorithm for the

Optimal Binary Search Tree Problem.

10. Write a program that implements Kruskal’s algorithm to generate

minimum cost spanning tree.