Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged dynamic-programming
0
votes
1
answer
61
DYNAMIC PROGRAMMING [self doubts]
how to form The minimum number of scalar multiplications to find the product B1 B2 B3 B4 B5 using the Matrix Chain Multiplication method
how to form The minimum number of scalar multiplications to find the product B1 B2 B3 B4 B5 using the Matrix Chain Multiplication method
altamash
360
views
altamash
asked
Nov 11, 2018
Algorithms
dynamic-programming
matrix-chain-ordering
+
–
0
votes
1
answer
62
made easy test series
Chetan28kumar
722
views
Chetan28kumar
asked
Nov 4, 2018
Algorithms
made-easy-test-series
matrix-chain-ordering
dynamic-programming
numerical-answers
+
–
0
votes
0
answers
63
Backtracking part of Algo
Is Backtracking Branch and Bound part of Gate syllabus?
Is Backtracking Branch and Bound part of Gate syllabus?
sripo
879
views
sripo
asked
Oct 22, 2018
Algorithms
algorithms
dynamic-programming
syllabus
usergate2019
+
–
0
votes
0
answers
64
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?
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?
Mariela Prasetyo
324
views
Mariela Prasetyo
asked
Oct 10, 2018
Algorithms
dynamic-programming
time-complexity
+
–
0
votes
2
answers
65
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,n-1,k)+f(a,n-1,k-1); return a[n][k]; } a)theta(m) b)theta(m^2) c)theta(2^m) d)O(1) }
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<=...
balaganesh
471
views
balaganesh
asked
Sep 16, 2018
Algorithms
dynamic-programming
algorithms
+
–
0
votes
1
answer
66
#self doubt #Lcs
How many distinct function calls are there in LCS(m,n)=. How to calculate it?
How many distinct function calls are there in LCS(m,n)=. How to calculate it?
Rustam Ali
369
views
Rustam Ali
asked
Sep 11, 2018
Algorithms
algorithms
dynamic-programming
longest-common-subsequence
descriptive
+
–
1
votes
0
answers
67
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.
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.
Nidhi Budhraja
387
views
Nidhi Budhraja
asked
Sep 10, 2018
Algorithms
ace-test-series
algorithms
dynamic-programming
+
–
1
votes
0
answers
68
Dynamic Programming Preparation for Gate
How to prepare for Dynamic Programming topic in DAA for GATE exam?
How to prepare for Dynamic Programming topic in DAA for GATE exam?
dan31
1.1k
views
dan31
asked
Sep 9, 2018
Algorithms
algorithms
dynamic-programming
gate-preparation
+
–
0
votes
1
answer
69
Test series
Let B1, B2, B3, B4, B5 be five matrices of dimensions 15 x 20, 20 x 17, 17 x 22, 22 x 16, 16 x 23 respectively. The minimum number of scalar multiplications required to find the product B1 B2 B3 B4 B5 using the Matrix Chain Multiplication method _____
Let B1, B2, B3, B4, B5 be five matrices of dimensions 15 x 20, 20 x 17, 17 x 22, 22 x 16, 16 x 23 respectively. The minimum number of scalar multiplications required to f...
mitesh kumar
471
views
mitesh kumar
asked
Aug 30, 2018
Algorithms
dynamic-programming
test-series
matrix-chain-ordering
numerical-answers
+
–
0
votes
1
answer
70
#Matrix
What do you suggest to do about big matrix multiplications questions in dynamic programming,because they take long time to get solved.Should we solve those questions in gate or we should leave them?I need advice on this.Please help me ou
What do you suggest to do about big matrix multiplications questions in dynamic programming,because they take long time to get solved.Should we solve those questions in g...
amitqy
308
views
amitqy
asked
Aug 20, 2018
Algorithms
algorithms
dynamic-programming
+
–
1
votes
1
answer
71
Dynamic Programming(Cormen)
Why we need to do top-down and bottom-up these 2 approach in dynamic programming? I know bottom-up 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 top-down bottom-up
Why we need to do top-down and bottom-up these 2 approach in dynamic programming? I know bottom-up has better overhead. Then why not bottom up used everywhere? Both have ...
srestha
574
views
srestha
asked
Aug 17, 2018
Algorithms
algorithms
dynamic-programming
+
–
0
votes
0
answers
72
self-doubt
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?
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 ...
AIkiran01
308
views
AIkiran01
asked
Aug 10, 2018
Algorithms
algorithms
dynamic-programming
+
–
2
votes
2
answers
73
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 ________.
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 ...
talha hashim
2.0k
views
talha hashim
asked
Aug 1, 2018
Algorithms
algorithms
dynamic-programming
made-easy-test-series
longest-common-subsequence
+
–
0
votes
1
answer
74
Dynamic programming
Given a sequence of n real numbers a1,a2,a3...an then to find contiguous subsequence ai,ai+1,ai+2....aj. Such that it's sum is maximum. How much time the above problem will take if you use dynamic programming?
Given a sequence of n real numbers a1,a2,a3...an then to find contiguous subsequence ai,ai+1,ai+2....aj. Such that it's sum is maximum. How much time the above problem wi...
shipra tressa
1.5k
views
shipra tressa
asked
Jul 17, 2018
Algorithms
dynamic-programming
time-complexity
+
–
0
votes
1
answer
75
matrics multiplication
shruti gupta1
874
views
shruti gupta1
asked
Jun 29, 2018
Algorithms
algorithms
matrix-chain-ordering
dynamic-programming
test-series
+
–
1
votes
1
answer
76
Ace Test Series: Algorithms - Dynamic Programming OBST
Na462
1.5k
views
Na462
asked
Jun 29, 2018
Algorithms
ace-test-series
algorithms
dynamic-programming
time-complexity
+
–
0
votes
1
answer
77
Dynamic programming
Consider the following C functions: int fun ( int n) { if (n<6) return 1; else return( fun(n-1)+fun(n-3)+fun (n-5)); } Q) Suppose we modify the above function fun( ) and store the values of fun (i), 0<=i<n, as and when they are computed . With this ... ( ) is significantly reduced. What is the time complexity of modified fun( ) would be: a)O(1) b)O(n) c)O(n^2) d)O(n!)
Consider the following C functions:int fun ( int n){ if (n<6) return 1; else return( fun(n-1)+fun(n-3)+fun (n-5));}Q) Suppose we modify the above function ...
Rohit Pandey
351
views
Rohit Pandey
asked
Jun 28, 2018
Algorithms
algorithms
dynamic-programming
time-complexity
+
–
1
votes
1
answer
78
Gate 2018
This is another form of gate 2018 matrix-chain question
This is another form of gate 2018 matrix-chain question
kunal goswami
476
views
kunal goswami
asked
Jun 28, 2018
Algorithms
algorithms
dynamic-programming
matrix-chain-ordering
+
–
3
votes
2
answers
79
#Algorithms Time Complexity Analysis of Multistage Graph using Bottom Up Dynamic Programming
Time complexity of Multistage Graph is O(n2) or O(V2) but then some people says it's O(E). So, from O(V2) to O(E) are they taking about dense/complete graphs in which number of edges |E| = |V2|? Kindly help!
Time complexity of Multistage Graph is O(n2) or O(V2) but then some people says it's O(E). So, from O(V2) to O(E) are they taking about dense/complete graphs in which num...
iarnav
5.2k
views
iarnav
asked
Jun 3, 2018
Algorithms
algorithms
dynamic-programming
+
–
1
votes
1
answer
80
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?
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 multiplicat...
Ayesha_S
913
views
Ayesha_S
asked
Jun 2, 2018
Algorithms
made-easy-test-series
algorithms
dynamic-programming
+
–
0
votes
0
answers
81
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(n-1,k-1) + c(n,k-1)$ terminating condition $c(n,n) = 1, c(n,0) = 1$.
What is the max height of recursion tree of recurrence $c(100,50)$?here, the recursive function is defined as$c(n,k) = c(n-1,k-1) + c(n,k-1)$terminating condition$c(n,n) ...
hacker16
481
views
hacker16
asked
Apr 28, 2018
Algorithms
algorithms
recursion
dynamic-programming
+
–
1
votes
1
answer
82
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(n-k-1), according to my understanding it should not be there ... ) is the count of right sub-trees, so there are only T(k)*T(n-k-1) possibilities for each k, sum over the limits
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 wit...
Yash Khanna
445
views
Yash Khanna
asked
Mar 25, 2018
Algorithms
binary-tree
algorithms
dynamic-programming
combinatory
test-series
+
–
0
votes
0
answers
83
Dynamic programming--tabulation 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.
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 othe...
Surajit
986
views
Surajit
asked
Feb 22, 2018
Algorithms
dynamic-programming
+
–
31
votes
6
answers
84
GATE CSE 2018 | Question: 31
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 parenthesizing ... the explicitly computed pairs is/are $F_1F_2$ and $F_3F_4$ only $F_2F_3$ only $F_3F_4$ only $F_1F_2$ and $F_4F_5$ only
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...
gatecse
19.2k
views
gatecse
asked
Feb 14, 2018
Algorithms
gatecse-2018
algorithms
dynamic-programming
2-marks
+
–
2
votes
1
answer
85
MadeEasy Test Series 2018: Algorithms - Dynamic Programming
The number of balance parenthesis possible with 5-pairs of parenthesis _________. [ Assume ( ) and (( )) is balance parenthesis but not ) ( ]
The number of balance parenthesis possible with 5-pairs of parenthesis _________. [ Assume ( ) and (( )) is balance parenthesis but not ) ( ]
Sumaiya23
2.1k
views
Sumaiya23
asked
Jan 29, 2018
Algorithms
algorithms
dynamic-programming
counting
made-easy-test-series
+
–
1
votes
1
answer
86
MadeEasy Test Series 2018: Algorithms - Dynamic Programming
sumit chakraborty
841
views
sumit chakraborty
asked
Jan 28, 2018
Programming in C
algorithms
dynamic-programming
made-easy-test-series
+
–
1
votes
0
answers
87
Ace Test Series: Algorithms - Dynamic Programming Optimal Merging Of Files
I got 206???
I got 206???
rasto mapp
898
views
rasto mapp
asked
Jan 21, 2018
Algorithms
ace-test-series
algorithms
dynamic-programming
merging
graph-theory
optimal-merge-pattern
+
–
1
votes
0
answers
88
Dynamic programming
Consider the following recursive function which is used by dynamic programming: T(n)= 0 ;if n<1 = 1;if n=1 =T(n-1)+T(n-2)+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.)
Consider the following recursive function which is used by dynamic programming:T(n)= 0 ;if n<1 = 1;if n=1 =T(n-1)+T(n-2)+1 ;if n>1 Assume for every functi...
VS
1.1k
views
VS
asked
Jan 19, 2018
Algorithms
algorithms
dynamic-programming
+
–
3
votes
0
answers
89
gatebook test - Algorithm design paradigms
Select the wrong statement from the following given options. a. Dynamic programming is applicable when subproblems are not independent. b. Divide and conquer algorithm does more work than necessary repeatedly solving the common subproblems c. ... exactly once and saves the result into a table. d. Longest path problem has optimal substructure property.
Select the wrong statement from the following given options. a. Dynamic programming is applicable when subproblems are not independent.b. Divide and conquer algorithm doe...
junk_mayavi
606
views
junk_mayavi
asked
Jan 10, 2018
Algorithms
algorithms
test-series
dynamic-programming
+
–
0
votes
2
answers
90
Dynamic programming
Which of the following statement(s) is/are correct? P: For a dynamic programming algorithm, computing all values in a bottom-up 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 sub-problems.( Marks: -0.66 ) I mark only P is true. Answer neither P and Q
Which of the following statement(s) is/are correct?P: For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using...
sunil sarode
2.4k
views
sunil sarode
asked
Dec 26, 2017
Algorithms
dynamic-programming
algorithms
+
–
Page:
« prev
1
2
3
4
5
6
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register