dynamic-programming
how to find longest palindromic subsequence?
Here is the problem (6.7ch6 ) from Algorithms book (by Vazirani) that slightly differs from the classical problem that finding longest palindrome. How can I solve this problem ?[详细]
2023-02-06 07:46 分类:问答find the longest sequence S that is a subsequence of A,B,C string
Give a polynomial time algorithm that takes three strings, A, B and C, as input, and returns the longest s开发者_开发问答equence S that is a subsequence of A, B, and C.Let dp[i, j, k] = longest common[详细]
2023-02-04 06:42 分类:问答computes the number of possible orderings of n objects under the relations < and =
Here is the problem : Give a algorithm that takes a positive integer n as input, and computes the number of possible orderings[详细]
2023-02-04 06:24 分类:问答Dynamic Programming resources in C?
I\'ll be writing the online Google test tomorrow as a fresher. Apparently, they definitely ask one problem on Dynamic Programming?[详细]
2023-02-03 11:48 分类:问答What's the best way to implement a dynamic proxy in C#?
I\'ve got a need to create a dynamic proxy in C#. I want this class to wrap another class, and take on it\'s public interface, forwarding calls for those functions:[详细]
2023-02-03 01:04 分类:问答algorithm to find longest non-overlapping sequences
I am trying to find the best way to solve the following problem. By best way I mean less complex. As an input a list of tuples (start,length) such:[详细]
2023-02-02 23:13 分类:问答minimum L sum in a mxn matrix - 2
Here is my first question about maximum L sum and here is different and hard version of it. Problem : Given a mxn positive integer matrix find the minimum L sum from 1th row to the 开发者_运维百科m\'[详细]
2023-02-01 03:28 分类:问答Why is the knapsack problem pseudo-polynomial?
I know that Knapsack is NP-complete while it can be solved by DP. They say that the DP solution is pseudo-polynomial, since it is exponential in the \"length of input\" (i.e.开发者_StackOverflow社区 t[详细]
2023-02-01 02:28 分类:问答find the minimum sum of matrix (n x n) that select only one in each row and column
this is another algorithms problem related to dynamic programming Here is the problem : find the minimum sum of the given matrix such that select开发者_StackOverflow社区 one in each row and column[详细]
2023-01-31 12:05 分类:问答How is this solution an example of dynamic programming?
A lecturer gave this question in class: [question] A sequence of n integers is stored in an array A[1..n]. An integer a in A is[详细]
2023-01-31 03:46 分类:问答