Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged dynamic-programming
0
0 votes
0
0 answers
33
33 views
CMI 2026 | CS | Part C | Question: 4
In the Pots-of-Gold game, there is a row of $n$ pots $P_{1}, \ldots, P_{n}$. Each pot contains some number of gold coins. You remove pots and collect the gold coins from ...
Shubham Sharma 2
33
views
asked
Aug 23
Algorithms
cmi2026
algorithms
dynamic-programming
data-structures
algorithm-design
+
–
2
2 votes
1
1 answer
172
172 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
True or False:In every dynamic-programming solution, the asymptotic space requirement must be at least as large as the total number of distinct subproblems.True False
GO Classes
172
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
2
2 votes
1
1 answer
118
118 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
True or False:The root of an optimal binary search tree must always contain the key having the highest search probability.True False
GO Classes
118
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
binary-search-tree
+
–
0
0 votes
1
1 answer
89
89 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
An instance of Subset Sum contains:$n$ positive integersa positive target value $m$What is the running time of the standard dynamic-programming solution?$\Theta(m+n)$ $\T...
GO Classes
89
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
1
1 vote
1
1 answer
113
113 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
There is an unlimited supply of three item types:$$\begin{array}{|c|cc|}\hline\text{Item} & \text{Size} & \text{Value} \\\hlineA & 1 & 2 \\B & 2 & 6 \\C & 3 & 9 \\\hline\...
GO Classes
113
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
0
0 votes
1
1 answer
100
100 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
The following function $\texttt{CalcEditDistance}$ computes the edit distance between two strings.For this problem:Inserting one character has cost $1$.Deleting one chara...
GO Classes
100
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
0
0 votes
1
1 answer
148
148 views
GO Classes DPP | GATE CS, DA | Algorithms | Longest Increasing Subsequence
For an array, $a ,a ,\ldots,a[n]$ consider the proposed DP state:$LIS[i]=$ length of the longest increasing subsequence contained anywhere within $a[1\ldots i]$.Using onl...
GO Classes
148
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
3
3 votes
1
1 answer
178
178 views
GO Classes DPP | GATE CS, DA | Algorithms | 0/1 Knapsack
A $15$ kg knapsack is given with the following items:$$\begin{array}{|c|cc|}\hline\text{Item} & \text{Weight} & \text{Value} \\\hlineA & 2 & 7 \\B & 3 & 10 \\C & 5 & 18 \...
GO Classes
178
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
2
2 votes
1
1 answer
120
120 views
GO Classes DPP | GATE CS, DA | Algorithms | Longest Common Subsequence
Consider the sequences:$X=\{A,C,B,C,D,C\}$$Y=\{C,D,B,D,C,A\}$What is the length of their longest common subsequence?
GO Classes
120
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
1
1 vote
1
1 answer
123
123 views
GO Classes DPP | GATE CS, DA | Algorithms | Matrix Chain Multiplication
Consider four matrices whose dimension array is:$p=[5,2,2,4,6]$Thus:$A_1:5\times2$$A_2:2\times2$$A_3:2\times4$$A_4:4\times6$Using optimal matrix-chain multiplication, wha...
GO Classes
123
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
2
2 votes
1
1 answer
103
103 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
Consider the following statements.Dynamic programming generally solves smaller subproblems, stores their solutions, and combines those stored results to solve progressive...
GO Classes
103
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
0
0 votes
1
1 answer
159
159 views
UGC NET CSE | December 2025 | Part 2 | Question: 47
Match the LIST-I with LIST-IILIST-ILIST-IIA.Dynamic programmingI.Floyd Warshall Shortest pathB.GreedyII.Huffman codingC.Back trackingIII.Hamiltonian cycle problemD.Branch...
Shubham Sharma 2
159
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithm-design
dynamic-programming
greedy-algorithms
backtracking
branch-and-bound
shortest-path
huffman-code
graph-algorithms
+
–
10
10 votes
2
2 answers
1.3k
1.3k views
GATE CSE 2026 | Set 2 | Question: 29
Consider a table $T$, where the elements $T[i][j], 0 \leq i, j \leq n$, represent the cost of the optimal solutions of different subproblems of a problem that is being so...
gatecse
1.3k
views
asked
Feb 23
Algorithms
gatecse-2026-set2
algorithms
dynamic-programming
two-marks
+
–
1
1 vote
2
2 answers
515
515 views
UGC NET CSE | June 2025 | Part 2 | Question: 28
The longest common subsequence of $\{1,2,3,2,4,1,2\}$ and $\{2,4,3,1,2,1\}$ is$2,1,2,3$$1,3,2,1$$2,3,2,1$$2,3,1,2,1$
Shubham Sharma 2
515
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
data-structures
algorithm-design
dynamic-programming
sequence-series
+
–
0
0 votes
1
1 answer
642
642 views
UGC NET CSE | June 2025 | Part 2 | Question: 50
When developing a dynamic programming algorithm, the sequence of steps followed is:Construct an optimal solution from computed information.Recursively define the value of...
Shubham Sharma 2
642
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
algorithm-design
dynamic-programming
analysis
+
–
0
0 votes
1
1 answer
498
498 views
UGC NET CSE | August 2024 | Part 2 | Question: 48
Arrange the following steps in the correct order to solve the Knapsack problem using Dynamic Programming.Define the base case when the capacity is zero ($0$) or no items ...
Shubham Sharma 2
498
views
asked
Sep 9, 2025
Algorithms
ugcnetcse-aug2024
dynamic-programming
knapsack-problem
algorithm-design
data-structures
+
–
1
1 vote
1
1 answer
201
201 views
NIELIT Scientific Assistant June 2025 | Question: 119
Which of the following problems is solved using dynamic programming?Merge sortDepth-first searchBreadth-first searchFibonacci sequence calculation
Shubham Sharma 2
201
views
asked
Jul 24, 2025
Algorithms
nielit-sta-2025
dynamic-programming
algorithm-design
data-structures
+
–
0
0 votes
1
1 answer
306
306 views
CMI2024-B: 7
A subsequence of an array $A$ is any sub-array of $A$, obtained by deleting zero or more elements of $A$ without changing the order of the remaining elements. The input t...
admin
306
views
asked
Nov 25, 2024
Algorithms
cmi2024
algorithm-design
dynamic-programming
data-structures
complexity-analysis
+
–
Page:
1
2
3
4
5
6
7
next »