Design and Analysis of Algorithms (CS2000) End Semester Jul 2025 Question Paper
RV University End Semester exam for Design and Analysis of Algorithms (CS2000), held Jul 2025, semester 3, with 4 questions. Also searched as DAA, DAOA, ALGO. Last updated 2026-11-14.
Questions
1. a) Solve the following recurrence relation using substitution method. T(n)=2T(n/2) + n/logn; n1 1; n<=1b) What is the time complexity of fun(?) int fun (int n) { int count = 0; for (int i=1; i<=n; i++) { for (int j=1; j2<=n; j++) { count = count + 1; } break; } return count; }
2. a) A certain permutation of integer stored in an array is provided as an input to the procedure of quicksort. After one pass of algorithm the status of the array is 6, 16, 11, 12, 18, 15, 17, 28. Find the sum of all possible values that could have been used as a pivot. b) A prior
1. a) Consider the following message: aabbbbaabbcccdddccccbbddd 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 11010001? b) Find th
2. Consider the weights and values of items listed below. Note that there is only one unit of each item. Item Number Weight (in Kgs) Value (in Rupees) 1 3 60 2 5 30 3 4 20 4 3 22 The task is to pick a subset of these items such that their total weight is no more than 5 Kgs and their