Professional Documents
Culture Documents
CS3401 Set3
CS3401 Set3
CS3401 Set3
CS3401 - ALGORITHMS
(Regulations 2021)
1. Write a program to calculate the time complexity for the given search key using the linear search
algorithm.
List=[12,34,56,13,56,73,78,90,1,34,67]
Search key= 1
Search key= 73
2. Write a program to implement recursive binary search and calculate the time complexity for
various search keys.
3. Write a program to perform heap sort over list of n element and plot the difference noted when n
changes as follows
4. Write a program to implement graph traversal using the breath first search mechanism.
5. Write a program to implement graph traversal using the depth first search mechanism.
6. Write a program to sort the following elements with the help of Insertion sort
Page 1 of 2
8. Write a program to calculate the all pair shortest path for the following graph
9. Write a program to compute the transitive closure of a given directed graph using Warshall's
algorithm.
10. Using the divide and conquer strategy, write a program to identify the minimum element present
inside the given list.
11. Write a program to sort the following element with the help of quick sort
12. Write a program to identify the maximum of a list using the divide and conquer strategy.
13. Write a program to sort the following elements with the help of merge sort
14. Write a program to implement the concept of N Queens problem over the board of 8 Queens.
15. Write a program to implement randomized algorithms for finding the kth smallest number
Page 2 of 2