Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

What is dynamic programming? Explain Floyd-Warshall algorithm to compute all-pairs shortest paths in a weighted graph with a suitable example and analyze its time complexity.

dynamic-programmingshortest-path
2long10 marks

Explain the greedy method of algorithm design. Generate the prefix code for the string "CYBER CRIME" using Huffman algorithm and find the total number of bits required to encode it.

greedyhuffman
3long10 marks

What is backtracking and how does it differ from recursion? Solve the 4-Queens problem using backtracking and analyze its time complexity.

backtrackingn-queen
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Write a greedy algorithm for the fractional knapsack problem and analyze its time complexity.

greedyknapsack
5short5 marks

Find the edit distance between the strings "ARTIFICIAL" and "NATURAL" using dynamic programming.

dynamic-programmingedit-distance
6short5 marks

Write Dijkstra's algorithm to find single-source shortest paths and explain it with an example.

shortest-pathdijkstra
7short5 marks

Explain the matrix chain multiplication problem and write its dynamic programming formulation.

dynamic-programmingmatrix-chain
8short5 marks

Explain heap sort algorithm with an example and analyze its time complexity.

sortingheap
9short5 marks

Explain how the subset-sum problem is solved using backtracking with an example.

backtrackingsubset-sum
10short5 marks

What are approximation algorithms? Explain the approximation algorithm for the vertex cover problem.

approximation
11short5 marks

Explain the branch and bound technique. How is it used to solve the travelling salesman problem?

branch-and-bound
12short5 marks

Differentiate between Breadth First Search (BFS) and Depth First Search (DFS) with examples and their time complexities.

graphbfs-dfs