dynamic-programming
divide list in two parts that their sum closest to each other
This is a hard algorithms problem that : Divide the list in 2 parts (sum) that their sum closest to (most)each other[详细]
2023-01-31 01:42 分类:问答Dynamic programming to split a string into a list of separate words
This is basically a dublicate of: How to split a string into words. Ex: "stringintowords" -> "String Into Words"?[详细]
2023-01-28 04:16 分类:问答DP approach for the n-puzzle problem
is there a DP approach for开发者_开发知识库 the n-puzzle problem thanks all, appreciate that...[详细]
2023-01-28 03:36 分类:问答Efficient placement of variable size rectangles within a rectangular field
This seems to me like it may be a version of the knapsack problem: I have a list of rectangles of varying sizes that I want to place within a field without overlapping or grouping sim开发者_运维技巧il[详细]
2023-01-26 19:56 分类:问答minimum difference between sum of two subsets
Folks, came across a problem... found this intersting... am modifying it a little bit just tu pep it up.[详细]
2023-01-26 04:39 分类:问答Challenging dynamic programming problem
This is a toned down version of a computer vision problem I need to solve. Suppose you are given parameters n,q and have to count the number of ways of assigning integers 0..(q-1) to elements of n-by-[详细]
2023-01-24 01:42 分类:问答Efficient Method for Calculating the Probability of a Set of Outcomes?
Let\'s say I\'m playing 10 different games.For each game, I know the probability of winning, the probability of tying, and the probability of losing (each game has different probabilities).[详细]
2023-01-18 23:58 分类:问答Is this problem NP-hard?
I\'m trying to come up with a reasonable algorithm for this problem: Let\'s say you have a bunch of balls.Each ball has at least one color, but can also be multicolored.Each ball also has a number on[详细]
2023-01-18 07:22 分类:问答Contiguous All-one block in a matrix
Suppose you are given an mXn bitmap, represented by an array M[1..m,1.. n] whose entries are all 0 or 1. A all-one block is a subarray of the form M[i .. i0, j .. j0] in which every bit is equal to 1.[详细]
2023-01-18 03:36 分类:问答Finding maximum size sub-matrix of all 1's in a matrix having 1's and 0's
Suppose you are given an mXn bitmap, represented by an array M[1..m,1.. n] whose entries are all 0 or 1. A all-one block is a subarray of the form M[i .. i0, j .. j0] in which every bit is equal to 1.[详细]
2023-01-17 15:22 分类:问答
加载中,请稍侯......