Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain the divide and conquer strategy of algorithm design. Write the merge sort algorithm, trace it on the array [38, 27, 43, 3, 9, 82, 10] and analyze its time complexity using the recurrence relation.

divide-and-conquermerge-sort
2long10 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
3long10 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
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Write an algorithm for binary search using divide and conquer. Analyze its best-case, worst-case and average-case time complexity.

binary-search
5short5 marks

Explain the randomized quicksort algorithm and analyze its expected time complexity.

quicksort
6short5 marks

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

greedyknapsack
7short5 marks

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

dynamic-programmingedit-distance
8short5 marks

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

shortest-pathdijkstra
9short5 marks

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

dynamic-programmingmatrix-chain
10short5 marks

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

sortingheap
11short5 marks

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

backtrackingsubset-sum
12short5 marks

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

approximation