Design and Analysis of Algorithms (CS2000) End Semester Jun 2026 Question Paper
RV University End Semester exam for Design and Analysis of Algorithms (CS2000), held Jun 2026, semester 3, with 9 questions. Also searched as DAA, DAOA, ALGO. Last updated 2026-11-14.
Questions
1a. Differentiate between Big O and Small o notations with suitable examples.
1b. Solve the following recurrence using substitution method. T(1) = 1 T(n) = 2T(n/2) + n ^{2} n1
2a. A teacher has recorded the final exam scores of 7 students. He needs to sort these scores in ascending order. Scores: [50, 30, 20, 80, 60, 40, 70], Summarize the Quick Sort algorithm to sort these scores in ascending order. Use the first element as the pivot. Show each step of so
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 Profit 15 20 30 19 17 16 26 18 28 Deadline 4 2 5 3 6 3 2 7 4 Apply the job sequencing algorithm to determine the optimal job sequence and calculate the maximum profit
3b. A mobile messaging application wants to implement data compression to reduce bandwidth usage. The app analyzes a sample message to determine the most efficient encoding scheme. A user frequently sends the message: "MISSISSIPPI RIVER" The development team decides to apply Huffman
4. Apply Floyd-Warshall's algorithm on the weighted directed graph shown in the figure. Show the matrix DK that result for each iteration. 1 4 2 -2 -1 3 4 2 3
5a. Describe briefly P, NP, NP Complete and NP Hard problems.
5b. Solve the 8-Queens problem using backtracking and draw at least two valid board configurations where no two queens attack each other.