Algorithm Design
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Consider a table $T$, where the elements $T[i][j], 0 \le i, j \le n$, represent the cost of the optimal solutions of different subproblems of a proble
- 2021 · Consider the string abbccddeee. Each letter in the string must be assigned a binary code satisfying the following properties: 1. For any two letters,
- 2021 · Define $R_n$ to be the maximum amount earned by cutting a rod of length $n$ meters into one or more pieces of integer length and selling them. For i >
- 2019 · An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot element is chosen uniformly at random. The probability that th
- 2019 · Consider a sequence of 14 elements: $A = [-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0]$. The subsequence sum $S(i, j) = \sum_{k=i}^j A[k]$. Det
- 2018 · Assume that multiplying a matrix $G_1$ of dimension $p \times q$ with another matrix $G_2$ of dimension $q \times r$ requires $pqr$ scalar multiplicat
- 2018 · 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 Rupee
- 2017 · Consider the following table: | Algorithms | Design Paradigms | |---|---| | (P) Kruskal | (i) Divide and Conquer | | (Q) Quicksort | (ii) Greedy | |
- 2017 · A message is made up entirely of characters from the set $X = \{P, Q, R, S, T\}$. The table of probabilities for each of the characters is shown below
- 2016 · Let $A_1, A_2, A_3$, and $A_4$ be four matrices of dimensions $10 \times 5$, $5 \times 20$, $20 \times 10$, and $10 \times 5$, respectively. The minim
- 2015 · Match the following: (P) Prim's algorithm for minimum spanning tree (Q) Floyd-Warshall algorithm for all pairs shortest paths (R) Mergesort (S) Hamil
- 2015 · Given below are some algorithms, and some algorithm design paradigms. 1. Dijkstra's Shortest Path 2. Floyd-Warshall algorithm to compute all pairs sh