partition-problem
Recursive-backtracking algorithm for solving the partitioning problem
Hey, i\'m looking for some help to find an algorithm which divides an array of positive numbers into k-parts so that each part has the (approximately) the same sum ... let\'s say we have[详细]
2023-03-01 15:30 分类:问答Subset sum problem where each number can be added or subtracted
Given a set A containing n positive integers, how can I find the smallest integer >= 0 that can be obtained using all the elements in the set. Each element can be can b开发者_运维百科e either added or[详细]
2023-02-27 06:58 分类:问答3-PARTITION problem
here is another dynamic programming question (Vazirani ch6) Consider the following 3-PARTITION problem. Given integers a1...an, we[详细]
2023-02-06 15:36 分类:问答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 分类:问答Arrays multiplication
开发者_运维知识库How to write arrayt multiplication (multiplicating two matrieces ie 3x3) of arrays of known size in c++ ? What will be the difference using pointers and reference ?Have you looked at[详细]
2022-12-25 03:41 分类:问答