We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542dcc7 commit b5bdfb5Copy full SHA for b5bdfb5
src/knapsackApprox.js
@@ -7,11 +7,11 @@ import integerValuesKnapsack from './integerValuesKnapsack';
7
/**
8
* (1-eps)-approx for the knapsack problem. Runs in O(N^3/eps) time.
9
*
10
+ * @param {Number} eps Approximation constant.
11
* @param {Array} v Values.
12
* @param {Array} w Weights.
- * @param {Array} n Size of the problem.
13
- * @param {Array} W Size of the knapsack.
14
- * @param {Array} eps Approximation constant.
+ * @param {Number} n Size of the problem.
+ * @param {Number} W Size of the knapsack.
15
* @param {Number} P Any lower bound on OPT > 0.
16
*/
17
const knapsackApprox = (
0 commit comments