B.Tech., IV Semester
Examination, November 2022
Grading System (GS)
Max Marks: 70 | Time: 3 Hours
Note:
i) Attempt any five questions.
ii) All questions carry equal marks.
a) Write and explain the control abstraction for Divide and conquer. (Unit 1)
b) Explain the theta notation used in algorithm analysis. (Unit 1)
a) What is an algorithm? Explain its characteristics. (Unit 1)
b) Differentiate between greedy method and dynamic programming. (Unit 3)
Write a greedy algorithm to state the Job- Sequencing with deadlines problem. Find an optimal sequence to the n = 5 Jobs where profits $(P_1, P_2, P_3, P_4, P_5) = (20, 15, 10, 5, 1)$ and deadlines $(d_1, d_2, d_3, d_4, d_5) = (2, 2, 1, 3, 3)$. (Unit 2)
a) What do you mean by forward and backward approach of problem solving in Dynamic Programming? (Unit 3)
b) Discuss the need of Floyd Warshall Algorithm. Write the advantages and its time complexity. (Unit 3)
a) Find minimum path cost between vertex $s$ and $t$ for following multistage graph using dynamic programming.
(Unit 3)
b) Discuss the use of lower bound theory and its uses in solving the algebraic problem (Unit 4)
a) What is graph coloring problem? Describe the backtracking technique to m-coloring with following planar graph.
(Unit 4)
b) Write about Hamiltonian cycle. Draw portion state space tree for the following graph.
(Unit 4)
a) Construct B Tree of order 5 for the list of elements 2, 8, 5, 6, 13, 9, 14, 12, 19, 24, 18, 15, 5, 16, 20, 21 (Unit 5)
b) How do you find the height of a balanced tree? Explain with an example. (Unit 5)
Write short notes on any two of the following
i) Binary search (Unit 1)
ii) Huffman coding (Unit 2)
iii) Tree Traversals (Unit 5)
iv) NP completeness (Unit 5)