B.Tech. IV Semester
Examination, June 2024
Grading System (GS)
Max Marks: 70 | Time: 3 Hours
Note:
i) Attempt any five questions.
ii) All questions carry equal marks.
a) Define Time Complexity. Describe different notations used to represent these complexities. (Unit 1)
b) Write an algorithm for Strassen's matrix multiplication and analyze the complexity of algorithm. (Unit 1)
a) Show that the average case time complexity of quick sort is O(nlogn). (Unit 1)
b) Describe in detail job sequencing with deadlines problem. Let $n=4, (P_{1}, P_{2}, P_{3}, P_{4}) = (100, 10, 15, 27)$ and $(d_{1}, d_{2}, d_{3}, d_{4}) = (2, 1, 2, 1)$ find the optimal solution for the given values. (Unit 2)
a) Write an algorithm for single source shortest path and apply it for the following graph.
(Unit 2)
b) Discuss the importance of proving both the greedy choice property and the optimal substructure property for establishing the correctness of a greedy algorithm. (Unit 2)
a) Explain Floyd Warshall algorithm problem with the graph given in figure.
(Unit 3)
b) What are B-trees? How are they created? Explain with a suitable example. (Unit 5)
a) Describe how dynamic programming can be used to solve reliability design problems. (Unit 3)
b) Describe graph coloring problem and write an algorithm for m-coloring problem. (Unit 4)
a) Explain the 4-queen problem using backtracking algorithm. (Unit 4)
b) Explain the method of reduction to solve travelling sales person problem using branch and bound. (Unit 4)
a) Compare and contrast NP-Hard and NP-Complete classes (Unit 5)
b) Write an algorithm to solve Knapsack problem using Greedy technique. Find the optimal solution to the Knapsack instance $n=7$, $m=15$, $(P_{1}, P_{2}, P_{3}...P_{7}) = (10, 5, 15, 7, 6, 18, 3)$, $(W_{1}, W_{2}, W_{3}...W_{7}) = (2, 3, 5, 7, 1, 4, 1)$. (Unit 2)
Write short notes on any two of the following:
a) Data Stream Algorithms (Unit 5)
b) Approximations Algorithms (Unit 5)
c) Data Transfer Optimization (Unit 1)
d) Huffman coding (Unit 2)