The Gateway to Computer Science Excellence
For all GATE CSE Questions
Toggle navigation
GATE Overflow
Facebook Login
or
Email or Username
Password
Remember
Login
Register

I forgot my password
Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Prev
Blogs
New Blog
Exams
First time here? Checkout the
FAQ
!
x
×
Close
Use the google search bar on side panel. It searches through all previous GATE/other questions. For hardcopy of previous year questions please see
here
Recent questions tagged dynamicprogramming
0
votes
0
answers
1
self doubt *0/1 knapsack problem*
In 0/1 knapsack problem ,suppose if maximum weight is given as W and we are asked to find out max profit then * IS IT NECESSARY THAT THE TOTAL WEIGHT SHOULD BE EXACTLY EQUAL TO W OR IT CAN BE LESS THAN W AS WELL????
asked
Apr 17
in
Algorithms
by
karan25gupta
(
131
points)

31
views
algorithms
dynamicprogramming
knapsack
0
votes
2
answers
2
self doubt
What advantage does top down approch have over bottom up approach in case of dynamic programming??
asked
Mar 26
in
Algorithms
by
Doraemon
(
203
points)

145
views
dynamicprogramming
0
votes
0
answers
3
Gate 2019: Subsequence Sum
asked
Feb 8
in
Algorithms
by
HeartBleed
(
489
points)

131
views
algorithms
dynamicprogramming
0
votes
1
answer
4
A Different Kind of Question on Longest Common Subsequence
Consider two strings A = "anandarmy" and B = "algorithms". Let ‘y’ be the length of the longest common subsequence (not necessarily contiguous) between A and B and let ‘x’ be the number of such longest common subsequences between A and B. Then 2x+3y = _________.
asked
Jan 22
in
Algorithms
by
gmrishikumar
Active
(
1.8k
points)

80
views
algorithms
longestcommonsubsequence
dynamicprogramming
0
votes
0
answers
5
Dynamic programming
My answer came out to be 13: because when we will compute T(13) { as we are using Dynamic programming , it will have to compute value of T(12),T(11),…...T(2) only once(as it will store it and reuse it) so the stack size will be 1 (for T(13))+11 (for T(12),T(11),…...T(2)) = 12…...(48/4) } will any one help me out
asked
Jan 22
in
Algorithms
by
Nandkishor3939
Active
(
1.2k
points)

44
views
algorithms
dynamicprogramming
programming
+1
vote
1
answer
6
GATEBOOK2019 Mock Test150
To compute the matrix product $M1M2$, where $M1$ has $p$ rows and $q$ columns and where $M2$ has $q$ rows and $r$ columns, takes time proportional to $pqr$, and the result is a matrix of $p$ rows and $r$ columns. Consider the product of three matrices $N1N2N3$ that have, respectively, $w$ ... the same time $1/x + 1/z < 1/w + 1/y$ $x > y$ $1/w + 1/x < 1 /y+ 1/z$
asked
Jan 19
in
Algorithms
by
GATEBOOK
Boss
(
17.3k
points)

138
views
gb2019mock1
matrixmultiplication
dynamicprogramming
0
votes
0
answers
7
Gateforum Test Series: Algorithms  Dynamic Programming
Given a text array $T[1…..n]$ and a pattern array $P[1….m]$ such that T and P are character taken from alphabet $\sum$, $\sum={a,b,c,…..z}$. String matching problem is to find all the occurence of P in T. A pattern occur with shift s in T if $P[1…..m]=T[s+1,…...s+m]$. Consider $T=bacacbaacacac$ $P=cac$ The sum of the value of all s is ________
asked
Jan 14
in
Algorithms
by
Gupta731
Active
(
4.8k
points)

54
views
gateforumtestseries
algorithms
dynamicprogramming
+2
votes
0
answers
8
Dynamic Programming basics
Can any one explain whats happening in side the green area due to dynamic programming ?
asked
Jan 13
in
Programming
by
Nandkishor3939
Active
(
1.2k
points)

80
views
dynamicprogramming
algorithms
programming
0
votes
0
answers
9
MadeEasy Test Series: Algorithms  Dynamic Programming
Let the difference between the maximum possible profit for $0/1$ knapsack and fractional knapsack with capacity $20$ be $X$. What is the value of $X$ Item a b c d e f g h i j Profit 7 10 3 3 26 19 18 17 5 4 Weight 3 5 2 1 12 10 9 9 4 1 How to solve for $0/1$ knapsack for the maximum profit in the faster way ???
asked
Dec 23, 2018
in
Algorithms
by
jatin khachane 1
Loyal
(
7.1k
points)

99
views
madeeasytestseries
algorithms
dynamicprogramming
+1
vote
1
answer
10
self doubt
Is there any shortcut or Trick to get min number of multiplication faster? I mean if we could know the right split.
asked
Dec 8, 2018
in
Algorithms
by
Nivedita Singh
(
45
points)

89
views
algorithms
dynamicprogramming
matrixchainordering
0
votes
0
answers
11
MadeEasy Subject Test 2019: Algorithms  Dynamic Programming
Let G = (V,E) be a directed graph.Each edge of G is represented as (i,j) with length l[i,j].If there is no edge from i to j then l[i,j] = (IMAGE ATTACHED)
asked
Dec 1, 2018
in
Algorithms
by
adityaaswal
(
189
points)

104
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
12
MadeEasy Test Series : Algorithms  Dynamic Programming
Which of the following procedure is suitable to find longest path from given vertex to any other vertex in Directed Acyclic Graph? Answer: Dynamic Programming. Why Greedy Algorithm cant be applied here?
asked
Nov 26, 2018
in
Algorithms
by
Shamim Ahmed
Active
(
2.5k
points)

47
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
13
homework
Main disadvantage of direct mapping is that cache his ratio decreases sharply it two or more frequently used blocks map on to same region. For two level memory hierarchy cache and main memory, WRITE THROUGH results in more write cycles to main emeory then WRITE BACK. is it true or false ? with reasons ? thank you in advance
asked
Nov 17, 2018
in
CO & Architecture
by
deepanshu sharma 3
(
135
points)

26
views
dynamicprogramming
0
votes
0
answers
14
Fibonacci number time complexity
Consider the following code segment to find the $n^{th}$ Fibonacci number: Fib(n) { if(n==0) {return 0;} if(n==1) {return 1;} else { return(Fib(n1) + Fib(n2)); } } The time complexity of the above code and time complexity of the same problem solved using dynamic programming is______ $A)O(n^{2}),O(n)$ $B)O(2^{n}),O(n)$ $C)O(2^{n}),O(n^{2})$ $D)$None of the above
asked
Nov 13, 2018
in
Algorithms
by
Lakshman Patel RJIT
Boss
(
36.4k
points)

140
views
algorithms
greedyalgorithm
dynamicprogramming
0
votes
0
answers
15
Backtracking part of Algo
Is Backtracking Branch and Bound part of Gate syllabus?
asked
Oct 22, 2018
in
Algorithms
by
sripo
Active
(
2.6k
points)

44
views
algorithms
dynamicprogramming
syllabus
usergate2019
0
votes
0
answers
16
MadeEasy Test Series: Algorithms  Greedy Algorithm
The difference between maximum possible profit for 0/1 knapsack and fractional problem with capacity (W)=200 item a b c d e f g h i j Weight 30 50 20 10 120 100 90 90 40 10 profit 70 95 30 30 260 190 180 170 50 40 how to do this using 0/1 knapsack
asked
Oct 20, 2018
in
Algorithms
by
sumitathakur
(
21
points)

92
views
algorithms
greedyalgorithm
dynamicprogramming
madeeasytestseries
0
votes
0
answers
17
homework
I need to find the tight bound of the Fibonacci sequence in dynamic programming (using theta). I only know the bound using big O is O(n). Any idea how to do it?
asked
Oct 10, 2018
in
Algorithms
by
Mariela Prasetyo
(
13
points)

45
views
dynamicprogramming
timecomplexity
0
votes
2
answers
18
dynamic prgramming
Given a two dimensional array A with n rows and k columns initialized to 1 . what is the time complexity of the function f(A,m,m)? int f(int **a,int n,int k) { if ((n<=k)(k<=1)) return 1; if(a[n][k]==1) a[n][k]=f(a,n1,k)+f(a,n1,k1); return a[n][k]; } a)theta(m) b)theta(m^2) c)theta(2^m) d)O(1) }
asked
Sep 16, 2018
in
Algorithms
by
balaganesh
(
145
points)

45
views
dynamicprogramming
algorithms
+1
vote
0
answers
19
Ace Test Series: Algorithms  Dynamic Programming OBST
Consider an OBST with n=4, p[1..4]={3,3,1,1} q[0..4]={2,3,1,1,1} Cost of OBST=___? Pls give the solution for this question.
asked
Sep 10, 2018
in
Algorithms
by
Nidhi Budhraja
(
263
points)

48
views
acetestseries
algorithms
dynamicprogramming
0
votes
0
answers
20
Dynamic Programming Preparation for Gate
How to prepare for Dynamic Programming topic in DAA for GATE exam?
asked
Sep 9, 2018
in
Algorithms
by
dan31
Junior
(
877
points)

109
views
algorithms
dynamicprogramming
gatepreparation
+1
vote
0
answers
21
Dynamic Programming(Cormen)
Why we need to do topdown and bottomup these 2 approach in dynamic programming? I know bottomup has better overhead. Then why not bottom up used everywhere? Both have time complexity $O(n^{2})$ right? Plz analysis these two algo for more clearity topdown bottomup
asked
Aug 17, 2018
in
Algorithms
by
srestha
Veteran
(
114k
points)

54
views
algorithms
dynamicprogramming
0
votes
0
answers
22
selfdoubt
While solving the problem of longest match subsequence we use the concept of dynamic programming which further uses tabulation. For given 2 strings we can create a table using 2D matrix but how we'll draw the same table for 3 or more number of strings?
asked
Aug 10, 2018
in
Algorithms
by
AIkiran01
(
209
points)

46
views
algorithms
dynamicprogramming
+1
vote
2
answers
23
MadeEasy Test Series: Algorithms  Dynamic Programming
Consider two strings A = “abbaccda” and B = “abcaa” consider "x"be length of the longest common subsequence between A and B and “y” be the number of distinct such longest common subsequences between A and B. Then 10x+ 2y is ________.
asked
Aug 1, 2018
in
Algorithms
by
talha hashim
Loyal
(
5.2k
points)

114
views
algorithms
dynamicprogramming
madeeasytestseries
0
votes
1
answer
24
Ace Test Series: Algorithms  Dynamic Programming OBST
asked
Jun 29, 2018
in
Algorithms
by
Na462
Loyal
(
8.7k
points)

92
views
acetestseries
algorithms
dynamicprogramming
timecomplexity
+1
vote
1
answer
25
#Algorithms Time Complexity Analysis of Multistage Graph using Bottom Up Dynamic Programming
asked
Jun 3, 2018
in
Algorithms
by
iarnav
Loyal
(
9.7k
points)

959
views
algorithms
dynamicprogramming
+1
vote
1
answer
26
MadeEasy Test Series: Algorithms  Dynamic Programming
Consider two Person (Person X, Person Y). Person X who was given a problem to calculate A1 A2 A3 with dimension 3 100, 100 2 and 2 2 in minimum multiplication. Person X is the knows only ... Y solved the same problem using Dynamic algorithm with M2multiplications. How many number of multiplications saved by Person Y than Person X?
asked
Jun 2, 2018
in
Algorithms
by
Ayesha_S
(
37
points)

129
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
27
Recursion Tree
What is the max height of recursion tree of recurrence $c(100,50)$? here, the recursive function is defined as $c(n,k) = c(n1,k1) + c(n,k1)$ terminating condition $c(n,n) = 1, c(n,0) = 1$.
asked
Apr 28, 2018
in
Algorithms
by
hacker16
Active
(
3k
points)

112
views
algorithms
recursion
dynamicprogramming
Page:
1
2
3
4
next »
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
IIT Kanpur MS Interview experience
My GATE preparation and what you can learn from it
IIT Bombay RA (2019) Programming Questions
COAP Round 1 has begun
MTECH (COUURSE WORK) AI INTERVIEW EXPERIENCE 2019
Follow @csegate
Recent questions tagged dynamicprogramming
Recent Blog Comments
@Anuj Mishra how did you study CLRS?what...
It was free when I gave them, maybe they made it...
The tests are there but it ain't free. Cost is...
49,430
questions
53,616
answers
185,966
comments
70,892
users