Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged dynamic-programming
2
2 votes
1
1 answer
122
122 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
122
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
83
83 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
83
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
67
67 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
67
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
79
79 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
79
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
79
79 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
79
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
122
122 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
122
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
+
–
2
2 votes
1
1 answer
150
150 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
150
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
93
93 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
93
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
88
88 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
88
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
70
70 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
70
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
130
130 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
130
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithm-design
dynamic-programming
greedy-algorithms
backtracking
branch-and-bound
shortest-path
huffman-code
graph-algorithms
+
–
9
9 votes
2
2 answers
1.1k
1.1k 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.1k
views
asked
Feb 23
Algorithms
gatecse-2026-set2
algorithms
dynamic-programming
two-marks
+
–
1
1 vote
2
2 answers
498
498 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
498
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
data-structures
algorithm-design
dynamic-programming
sequence-series
+
–
0
0 votes
1
1 answer
625
625 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
625
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-june2025
algorithm-design
dynamic-programming
analysis
+
–
0
0 votes
1
1 answer
465
465 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
465
views
asked
Sep 9, 2025
Algorithms
ugcnetcse-aug2024
dynamic-programming
knapsack-problem
algorithm-design
data-structures
+
–
1
1 vote
1
1 answer
189
189 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
189
views
asked
Jul 24, 2025
Algorithms
nielit-sta-2025
dynamic-programming
algorithm-design
data-structures
+
–
0
0 votes
1
1 answer
294
294 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
294
views
asked
Nov 25, 2024
Algorithms
cmi2024
algorithm-design
dynamic-programming
data-structures
complexity-analysis
+
–
0
0 votes
0
0 answers
275
275 views
CMI2023-B: 6
The input to the problem consists of (i) an array $A[1,2, \ldots, n]$ of $n$ positive integers and (ii) a positive integer $T$. We are given the guarantee that at least o...
admin
275
views
asked
Nov 13, 2024
Algorithms
cmi2023
algorithm-design
dynamic-programming
array
cmi2023-datascience-part-b
time-complexity
+
–
Page:
1
2
3
4
5
6
7
next »