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

I forgot my password
All Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Lists
Previous
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
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
in
Algorithms
by
Mariela Prasetyo
(
13
points)

18
views
dynamicprogramming
timecomplexity
0
votes
2
answers
2
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
in
Algorithms
by
balaganesh
(
125
points)

18
views
dynamicprogramming
algorithms
0
votes
0
answers
3
Dynamic Programming Preparation for Gate
asked
Sep 9
in
Algorithms
by
dan31
(
77
points)

29
views
algorithms
dynamicprogramming
gate
+1
vote
0
answers
4
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
in
Algorithms
by
srestha
Veteran
(
98.4k
points)

30
views
algorithms
dynamicprogramming
0
votes
0
answers
5
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
in
Algorithms
by
AIkiran01
(
173
points)

30
views
algorithms
dynamicprogramming
+1
vote
1
answer
6
#Algorithms Time Complexity Analysis of Multistage Graph using Bottom Up Dynamic Programming
asked
Jun 3
in
Algorithms
by
iarnav
Loyal
(
8.6k
points)

143
views
algorithms
dynamicprogramming
0
votes
0
answers
7
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
in
Algorithms
by
hacker16
Active
(
2.7k
points)

84
views
algorithms
recursion
dynamicprogramming
+1
vote
0
answers
8
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
in
Algorithms
by
Yash Khanna
(
271
points)

75
views
binarytree
algorithms
dynamicprogramming
permutationsandcombinations
0
votes
0
answers
9
Dynamic programmingtabulation method bottom up
asked
Feb 22
in
Algorithms
by
Surajit
Active
(
3.2k
points)

146
views
dynamicprogramming
+7
votes
4
answers
10
GATE201831
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 multiplications. Computing the product of $n$ matrices $G_1G_2G_3 \dots G_n$ can be done by ... scalar multiplications, the explicitly computed pairs is/are $F_1F_2$ and $F_3F_4$ only $F_2F_3$ only $F_3F_4$ only $F_2F_2$ and $F_4F_5$ only
asked
Feb 14
in
Algorithms
by
gatecse
Boss
(
18.3k
points)

2.3k
views
gate2018
algorithms
dynamicprogramming
+1
vote
0
answers
11
ace test
I got 206???
asked
Jan 21
in
Algorithms
by
Deepak Mokili
(
307
points)

124
views
acetestseries
algorithms
dynamicprogramming
merging
graphtheory
optimalmergepattern
+1
vote
0
answers
12
Dynamic programming
Consider the following recursive function which is used by dynamic programming: T(n)= 0 ;if n<1 = 1;if n=1 =T(n1)+T(n2)+1 ;if n>1 Assume for every function call T(i) it checks the table first, if its value is already ... of n' so that overflow cannot occur ________. (Assume system allocate 4 byte to each stack entry which is sufficient for storing required data.)
asked
Jan 20
in
Algorithms
by
VS
Loyal
(
9.2k
points)

139
views
algorithms
dynamicprogramming
+3
votes
0
answers
13
gatebook test  Algorithm design paradigms
asked
Jan 10
in
Algorithms
by
junk_mayavi
Active
(
4k
points)

121
views
algorithms
testseries
dynamicprogramming
0
votes
1
answer
14
Dynamic programming
Which of the following statement(s) is/are correct? P: For a dynamic programming algorithm, computing all values in a bottomup fashion is asymptotically faster than using recursion Q: The running time of a dynamic programming algorithm is always Θ(P) where P is the number of subproblems.( Marks: 0.66 ) I mark only P is true. Answer neither P and Q
asked
Dec 26, 2017
in
Algorithms
by
sunil sarode
Active
(
1.3k
points)

223
views
dynamicprogramming
algorithms
+1
vote
1
answer
15
Greedy vs Dynamic
Unlike greedy algorithms, dynamic programming method always provide correct/optimal solution. Is the above statement correct?
asked
Dec 13, 2017
in
Algorithms
by
Tuhin Dutta
Loyal
(
8.2k
points)

425
views
algorithms
greedyalgorithm
dynamicprogramming
0
votes
2
answers
16
Matrix multiplications
Let A1, A2, A3, A4, A5 be five matrices of dimensions 2×3, 3×5, 5×2, 2×4, 4×3 respectively. The minimum number of scalar multiplications required to find the product A1 A2 A3 A4 A5 using the basic matrix multiplication method is_____
asked
Dec 10, 2017
in
Algorithms
by
Parshu gate
Active
(
5k
points)

433
views
matrixchainordering
dynamicprogramming
algorithms
0
votes
1
answer
17
Dynamic programming
asked
Dec 5, 2017
in
Algorithms
by
Parshu gate
Active
(
5k
points)

101
views
algorithms
dynamicprogramming
+1
vote
1
answer
18
Matrix chain multiplication
Which of the following is the recurrence relation for the matrix chain multiplication problem where p[i1]*p[i] gives the dimension of the i^th matrix? dp[i,j]=1 if i=j dp[i,j]=min{dp[i,k]+dp[k+1,j]} dp[i,j]=1 if i=j dp[i,j]=min{dp[i,k]+dp[k+1,j]}+p[i1]*p[k]*p[j] dp[i,j]= ... dp[i,j]=min{dp[i,k]+dp[k+1,j]} dp[i,j]=0 if i=j dp[i,j]=min{dp[i,k]+dp[k+1,j]}+p[i1]*p[k]*p[j]
asked
Nov 27, 2017
in
Algorithms
by
Parshu gate
Active
(
5k
points)

342
views
dynamicprogramming
algorithms
matrixchainordering
+2
votes
2
answers
19
CLRS DivideandConquer Strassens's algorithm
asked
Oct 9, 2017
in
Algorithms
by
Manasi Srivastava
(
79
points)

219
views
algorithms
divideandconquer
dynamicprogramming
+1
vote
3
answers
20
Matrix Chain
Total no. of ways to perform matrix multiplication having 7 matrices is ? Total no. of ways to by which we could parenthesize 7 matrices is ? Does the above two questions are different or same ? Plz explain the answer.
asked
Oct 1, 2017
in
Algorithms
by
ashwina
Active
(
2.1k
points)

937
views
algorithms
dynamicprogramming
0
votes
0
answers
21
DYNAMIC PROGRAMMING
asked
Sep 17, 2017
in
Algorithms
by
Parshu gate
Active
(
5k
points)

139
views
algorithms
dynamicprogramming
graphtheory
0
votes
0
answers
22
dynamic programming
asked
Sep 17, 2017
in
Algorithms
by
Parshu gate
Active
(
5k
points)

79
views
dynamicprogramming
algorithms
0
votes
0
answers
23
Floydwarshall for longest path problem
I have few doubts related to Longest distance problem. From Wikipedia > The NPhardness of the unweighted longest path problem can be shown using a reduction from the Hamiltonian path problem: a graph G has a ... normal algorithm as asked in (https://stackoverflow.com/questions/42500120/floydwarshallforlongestdistanceforundirectedgraph)
asked
Sep 8, 2017
in
Algorithms
by
Chhotu
Boss
(
11.2k
points)

362
views
graphalgorithms
dynamicprogramming
0
votes
1
answer
24
dynamic programming
asked
Aug 26, 2017
in
Algorithms
by
set2018
Loyal
(
8k
points)

134
views
algorithms
dynamicprogramming
+2
votes
1
answer
25
Longest Common Subsequence
For finding longest common subsequence(LCS), standard sources mention that the recursive procedure consisting of the recursive tree occupies O(m+n) space( WITHOUT applying Dynamic Programming). I am unable to understand why is space occupied O(m+n)? Consider the tree of LCS(3,3). ... value of2^ k = O(m+n) and hence, space should be k=log(m+n). What's wrong with my logic?
asked
May 17, 2017
in
Algorithms
by
Bongbirdie
Junior
(
719
points)

422
views
algorithms
longestcommonsubsequence
dynamicprogramming
+1
vote
4
answers
26
difference between dynamic programming and divide and conquer technique is
asked
Apr 17, 2017
in
Algorithms
by
LavTheRawkstar
Active
(
5.1k
points)

3.8k
views
divideandconquer
algorithms
dynamicprogramming
programming
+1
vote
2
answers
27
Dynamic Programming
Find an optimal parenthesization of a matrixchain product whose sequence of dimensions <5,10,3,12,5,50,6>.
asked
Mar 21, 2017
in
Algorithms
by
saurabh rai
Boss
(
12.3k
points)

255
views
algorithms
dynamicprogramming
+3
votes
2
answers
28
What is the general idea to approach to problems in Dynamic Programming ?
asked
Jan 6, 2017
in
Algorithms
by
Dulqar
Active
(
2.8k
points)

335
views
algorithms
dynamicprogramming
+2
votes
1
answer
29
Made Easy Test Series
asked
Jan 3, 2017
in
Algorithms
by
Lucky sunda
Active
(
4.5k
points)

263
views
madeeasytestseries
algorithms
dynamicprogramming
+1
vote
2
answers
30
virtual gate
asked
Dec 30, 2016
in
Algorithms
by
firki lama
Junior
(
873
points)

254
views
virtualgate
testseries
dynamicprogramming
matrixchainordering
Page:
1
2
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
List of Available Exams
New Assignment on Network programming : P2P simulation
Theory of Computation  GO Classroom
Probability  GO Classroom
Daily Quiz
Follow @csegate
Gatecse
Recent questions tagged dynamicprogramming
Recent Blog Comments
Nice 2 know. You are welcome. :)
Hello @Arjun, I got books now...thanks for your...
You may contact FedEx local delivery office. It...
Yes you are right, it's showing this status from...
FedEx delivery is shown and as per that it is out...
40,904
questions
47,561
answers
146,300
comments
62,306
users