Design and Analysis of Algorithms (CS2000) End Semester Dec 2025 Question Paper
RV University End Semester exam for Design and Analysis of Algorithms (CS2000), held Dec 2025, semester 3, with 10 questions. Also searched as DAA, DAOA, ALGO. Last updated 2026-11-14.
Questions
1a. Differentiate between Big O, Big Ω (Omega), and Big Θ (Theta) notations with suitable examples.
1b. Solve the following recurrence using substitution method.T(1) = 1T(n) = 4T(n/4) + n, n1
2a. Apply the Heapsort algorithm to the following array to sort the elements in ascending order. [5, 2, 4, 7, 1, 3, 8, 6]
2b. If a graph contains a negative edge, how would the performance and results of Dijkstra's algorithm differ from those of the Bellman-Ford algorithm? Justify your answer.
3a. Consider the following table of jobs, each with an associated profit and deadline: Job J1 J2 J3 J4 J5 J6 J7 J8 J9 03 CO3 L3 Profit 12 22 35 19 17 14 26 18 28 Deadline 4 2 5 3 6 3 2 7 4
3b. Apply the job sequencing algorithm to determine the optimal job sequence and calculate the maximum profit. Identify which jobs must be left out of the schedule because no slots are available within their deadlines.
3c. Consider the following message: aabbbbabecdddccccbbdd Find the number of bits required for Huffman encoding of the above message. If Huffman tree coded as left child with '0' and right child with '1' from every node then what is the decoded message for 110100?
4a. Consider two strings R = babcc and S = abacbca. Let x be the length of the longest common subsequence between R and S and let y be the number of such longest common subsequences between R and S. Then what will be the value of 10x+y? [Draw DP table]
5a. Describe briefly P, NP, and NP Complete problems.
5b. Solve the 4-Queens problem using backtracking and draw the corresponding state space tree and listing all valid board configurations where no two queens attack each other.