Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 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
2long10 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
3long10 marks

Define minimum spanning tree. Write Kruskal's algorithm to find the MST of a connected weighted graph, illustrate it with an example and analyze its complexity.

graphmst
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

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

shortest-pathdijkstra
5short5 marks

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

dynamic-programmingmatrix-chain
6short5 marks

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

sortingheap
7short5 marks

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

backtrackingsubset-sum
8short5 marks

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

approximation
9short5 marks

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

branch-and-bound
10short5 marks

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

graphbfs-dfs
11short5 marks

Solve the recurrence relation T(n) = 2T(n/2) + n using the substitution method and the recursion tree method.

recurrencesubstitution
12short5 marks

Explain the job sequencing with deadlines problem and solve it using the greedy approach for a given set of jobs.

greedyjob-scheduling