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
Gate 2019: Subsequence Sum
asked
Feb 8
in
Algorithms
by
HeartBleed
(
485
points)

111
views
algorithms
dynamicprogramming
0
votes
1
answer
2
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.7k
points)

52
views
algorithms
longestcommonsubsequence
dynamicprogramming
0
votes
0
answers
3
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)

35
views
algorithms
dynamicprogramming
programming
+1
vote
1
answer
4
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
(
15.3k
points)

120
views
gb2019mock1
matrixmultiplication
dynamicprogramming
0
votes
0
answers
5
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.5k
points)

30
views
gateforumtestseries
algorithms
dynamicprogramming
+2
votes
0
answers
6
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)

72
views
dynamicprogramming
algorithms
programming
0
votes
0
answers
7
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
(
6.4k
points)

81
views
madeeasytestseries
algorithms
dynamicprogramming
+1
vote
0
answers
8
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
(
35
points)

66
views
algorithms
dynamicprogramming
matrixchainordering
0
votes
0
answers
9
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
(
149
points)

91
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
10
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.3k
points)

39
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
11
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)

23
views
dynamicprogramming
0
votes
0
answers
12
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
(
29.4k
points)

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

36
views
algorithms
dynamicprogramming
syllabus
usergate2019
0
votes
0
answers
14
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)

73
views
algorithms
greedyalgorithm
dynamicprogramming
madeeasytestseries
0
votes
0
answers
15
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)

38
views
dynamicprogramming
timecomplexity
0
votes
2
answers
16
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)

40
views
dynamicprogramming
algorithms
+1
vote
0
answers
17
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
(
227
points)

43
views
acetestseries
algorithms
dynamicprogramming
0
votes
0
answers
18
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
(
689
points)

85
views
algorithms
dynamicprogramming
gatepreparation
+1
vote
0
answers
19
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
(
108k
points)

51
views
algorithms
dynamicprogramming
0
votes
0
answers
20
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)

41
views
algorithms
dynamicprogramming
+1
vote
2
answers
21
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
Active
(
5k
points)

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

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

554
views
algorithms
dynamicprogramming
+1
vote
1
answer
24
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)

124
views
madeeasytestseries
algorithms
dynamicprogramming
0
votes
0
answers
25
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
(
2.8k
points)

106
views
algorithms
recursion
dynamicprogramming
+1
vote
0
answers
26
Counting No of Trees  College Exam
Want help with part (a). Other parts can be done accordingly. According to the solution, I understand how to find the limits of the sum, but why is there a factor of 2 with T(k) * T(nk1), according to my understanding it should not be there ... ) is the count of right subtrees, so there are only T(k)*T(nk1) possibilities for each k, sum over the limits
asked
Mar 25, 2018
in
Algorithms
by
Yash Khanna
(
317
points)

87
views
binarytree
algorithms
dynamicprogramming
permutationsandcombinations
0
votes
0
answers
27
Dynamic programmingtabulation method bottom up
Just practicing some general problems on dynamic programming.Problem is I am unable to think of tabulation or bottom up approach for most of the new type of problems other than common ones.I am trying to get the naive recursion first ... at this moment let me know how to get some idea of tabulating easily?..For example take coin exchange problem.
asked
Feb 22, 2018
in
Algorithms
by
Surajit
Active
(
3.2k
points)

239
views
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 Gandhinagar review
Is DAIICT good for doing MTech ?
AIR175 : GO is enough
GATE 2019 My reasoned routine. (AIR 558)
if i can you also can
Follow @csegate
Recent questions tagged dynamicprogramming
Recent Blog Comments
congrats man!!! u surely need guts to leave job...
You won't get M.Tech degree then
I have generic query , not just about iit gn but...
Thank you Abhishek
Heartliest Congratulation Abhishek Bhai. This was...
48,515
questions
52,763
answers
183,377
comments
68,235
users