Recent questions tagged dynamic-programming

1 votes
1 answer
92
Unlike greedy algorithms, dynamic programming method always provide correct/optimal solution.Is the above statement correct?
0 votes
1 answer
96
5.Consider the Knapsack instance with 5 objects and a capacity M=11, profit P=(5,4,7,2,3) andweight W=(4,3,6,2,2.). Solve it using dynamic programming approach.
2 votes
2 answers
97
5 votes
5 answers
98
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 ...
0 votes
0 answers
99
0 votes
0 answers
100
0 votes
1 answer
103
1 votes
2 answers
104
fib(n){if(n==0)return 0;if(n==1)return 1;return(fib(n-1) + fib(n-2));}for fib(4) the number of function calls by dynamic programmming is 7and without dynamic programming ...
1 votes
1 answer
105
Number of ways we can perform matrix multiplicationandnumber of ways a matrix can be parenthesized means the same?
1 votes
1 answer
106
travelling salesman problem is based ona) dynamic programmingb)greedy methodc)recursive approachd)divide and conquer
0 votes
1 answer
107
Are 'Longest Common Palindromic Subsequence' and 'Longest monotonically Increasing Subsequence' in Gate syllabus??
1 votes
1 answer
108
is sum of subset problem is there in the gate cse syllabus ?
0 votes
1 answer
111
what is difference between divide and conquer and dynamic programming?
2 votes
2 answers
112
Find an optimal parenthesization of a matrix-chain product whose sequence of di-mensions<5,10,3,12,5,50,6>.
2 votes
1 answer
114
Whats the minimum number of multiplications required to compute$x^{7}$ * $x^{17}$ for any given integer value of 'x' ?A) 4B) 5C) 6D) 7
1 votes
1 answer
116
given a N-bit string.what is the time complexity to find out all subsets of that string which is parlindrome?