Skip to content

// Dr. A.P.J. Abdul Kalam Technical University, Uttar Pradesh / 2026

AKTU B.Tech — Design And Analysis Of Algorithms (BCS503), Semester 4, 2026

Design And Analysis Of Algorithms · BCS503 · B.Tech Computer Science and Engineering · Semester 4

Work through the questions

22 questions

No verified answers are available for this paper.

  1. Question 1(a)

    Descriptive2 marks

    Algorithms

    Define algorithm and its characteristics.

    No verified answer or solution is available for this question.

  2. Question 1(b)

    Descriptive2 marks

    Algorithms

    Compute the time complexity of the following recurrence relation. T(n) = sqrt(n) T(sqrt(n)) + n if n>2; = 2 if n=2

    No verified answer or solution is available for this question.

  3. Question 1(c)

    Descriptive2 marks

    Algorithms

    Find the total number of comparisons using the Insertion sort on the following array. Array A = {23, 32, 40, 44, 54, 63, 72, 89}.

    No verified answer or solution is available for this question.

  4. Question 1(d)

    Descriptive2 marks

    Algorithms

    What is a Persistent Data Structure?

    No verified answer or solution is available for this question.

  5. Question 1(e)

    Descriptive2 marks

    Algorithms

    Define growth of functions.

    No verified answer or solution is available for this question.

  6. Question 1(f)

    Descriptive2 marks

    Algorithms

    In a Red-Black Tree, how many black nodes are there on any path from the root to the leaf if the black height is 3?

    No verified answer or solution is available for this question.

  7. Question 1(g)

    Descriptive2 marks

    Algorithms

    Define Polynomial-time Verifiability.

    No verified answer or solution is available for this question.

  8. Question 2(a)

    Descriptive7 marks

    Algorithms

    Compute the time complexity of the following recurrence relation. T(n) = 2T(n-1) + n if n>1; = 1 if n=1

    No verified answer or solution is available for this question.

  9. Question 2(b)

    Descriptive7 marks

    Algorithms

    Let P be a Quick Sort Program to sort numbers in ascending order using the first element as pivot. Let t1 and t2 be the number of comparisons made by P for the inputs {1, 2, 3, 4, 5} and {4, 1, 5, 3, 2} respectively. Find the number of t1 and t2.

    No verified answer or solution is available for this question.

  10. Question 2(c)

    Descriptive7 marks

    Algorithms

    Provides the decreasing order of asymptotic complexity of functions f1, f2, and f3? Justify your answer. f1(n) = n^(k log n), f2(n) = n^1000, and f3(n) = k^(n log k). Here, k is a very large constant.

    No verified answer or solution is available for this question.

  11. Question 2(d)

    Descriptive7 marks

    Algorithms

    Explain Merge Sort with example and also compute time complexity.

    No verified answer or solution is available for this question.

  12. Question 2(e)

    Descriptive7 marks

    Algorithms

    Explain Fibonacci Heap with suitable example.

    No verified answer or solution is available for this question.

  13. Question 3(a)

    Descriptive7 marks

    Algorithms

    Consider a complete undirected graph with vertex set {0,1,2,3,4}. W_ij in the matrix W below is the weight of the edge {i,j}: W = [[0,1,8,1,4],[1,0,12,4,9],[8,12,0,7,3],[1,4,7,0,2],[4,9,3,2,0]]. What is the minimum possible weight of a spanning tree T in this graph such that vertex 0 is a leaf node in the tree T?

    No verified answer or solution is available for this question.

  14. Question 3(b)

    Descriptive7 marks

    Algorithms

    Consider a matrix multiplication chain F1F2F3F4F5, where matrices F1, F2, F3, F4, and F5 are of dimensions 2x25, 25x3, 3x16, 16x1 and 1x1000, respectively. Find the optimal parenthesis and total number of scalar multiplications.

    No verified answer or solution is available for this question.

  15. Question 4(a)

    Descriptive7 marks

    Algorithms

    In a Skip List, if the probability of a node being promoted to the next level is 1/2, what is the expected number of nodes at the second level if there are 100 nodes at the base level?

    No verified answer or solution is available for this question.

  16. Question 4(b)

    Descriptive7 marks

    Algorithms

    Explain Kruskal's algorithm for MST and also discuss the time complexity.

    No verified answer or solution is available for this question.

  17. Question 5(a)

    Descriptive7 marks

    Algorithms

    Solve a 0/1 Knapsack problem with given profits [60, 100, 120, 90, 75, 45], weights [5, 10, 15, 20, 35, 40] and capacity = 50 using Dynamic Programming.

    No verified answer or solution is available for this question.

  18. Question 5(b)

    Descriptive7 marks

    Algorithms

    Explain Dijkstra's Algorithm. Prove that it may fail if the graph contains negative edge weights.

    No verified answer or solution is available for this question.

  19. Question 6(a)

    Descriptive7 marks

    Algorithms

    Explain the Branch and Bound approach for the Travelling Salesman Problem (TSP) using the "Reduced Cost Matrix" method.

    No verified answer or solution is available for this question.

  20. Question 6(b)

    Descriptive7 marks

    Algorithms

    Given a 3 X 3 cost matrix, calculate the initial "Lower Bound" using the row-reduction method.

    No verified answer or solution is available for this question.

  21. Question 7(a)

    Descriptive7 marks

    Algorithms

    Using Rabin-Karp algorithm, how many hash computations are needed to search for a pattern of length 4 in a text of length 15?

    No verified answer or solution is available for this question.

  22. Question 7(b)

    Descriptive7 marks

    Algorithms

    Describe the Boyer-Moore string matching algorithm. How do the "bad character" and "good suffix" heuristics work?

    No verified answer or solution is available for this question.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam