Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views2 pages

CS3401 Set2

The document outlines the B.E/B.Tech. laboratory examination for the Algorithms Laboratory course for the fourth semester, including various programming tasks and algorithms to be implemented in C. Students are required to answer one question from a list of fifteen, covering topics such as search algorithms, sorting methods, graph algorithms, and complexity analysis. Each question has specific requirements for implementation, analysis, and reporting results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

CS3401 Set2

The document outlines the B.E/B.Tech. laboratory examination for the Algorithms Laboratory course for the fourth semester, including various programming tasks and algorithms to be implemented in C. Students are required to answer one question from a list of fifteen, covering topics such as search algorithms, sorting methods, graph algorithms, and complexity analysis. Each question has specific requirements for implementation, analysis, and reporting results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

B.E / B.Tech.

LABORATORY EXAMINATIONS, APRIL / MAY 2023

Fourth Semester

CS3401 – ALGORITHMS LABORATORY

(Regulations 2021)

Time: 3 Hours Answer any one Questions Max. Marks 100

Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total


required/Procedure Program/Drawing & Results
20 30 30 10 10 100

1. Implement Linear Search. Determine the time required to search for an element. Repeat the
experiment for different values of n, the number of elements in the list to be searched and plot a
graph of the time taken versus n.

2. Write a program to implement binary search in C. Demonstrate the working of the algorithm with
suitable inputs and analyse its time complexity.

3. Sort a given set of elements using the Heap sort method and determine the time required to sort the
elements.

4. Write a program in C to multiply two matrices and analyse the time complexity of the algorithm for
different input sizes.

5. Write a C function that takes two string inputs – a longer text and a shorter text such that the
function should give the total number of occurrences of the pattern in the text string

6. Write a C program to implement the depth first search algorithm for a graph and analyse its time
complexity.

7. Develop a program to implement graph traversal using Breadth First Search

8. Find the minimum cost spanning tree of a given undirected graph using Prim’s algorithm.

9. Implement Floyd’s algorithm for the All-Pairs- Shortest-Paths problem.

10. Implement the merge sort algorithm in C and analyse its time complexity.

Page 1 of 2
11. Implement quick sort algorithm and analyse its time complexity.

12. Implement Traveling Salesperson problem and then solve the same problem instance using any
approximation algorithm and determine the error in the approximation.

13. Implement randomized algorithms for finding the kth smallest number.

14. Compute the transitive closure of a given directed graph using Warshall's algorithm.

15. Write a C program to Implement N Queens problem using Backtracking.

Page 2 of 2

You might also like