|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--applications.RecursiveBTKnapsack
Constructor Summary | |
RecursiveBTKnapsack()
|
Method Summary | |
static double |
knapsack(double[] theProfit,
double[] theWeight,
double theCapacity)
|
static void |
main(java.lang.String[] args)
test program |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RecursiveBTKnapsack()
Method Detail |
public static double knapsack(double[] theProfit, double[] theWeight, double theCapacity)
theProfit[1:theProfit.length]
- is array of object profitstheWeight[1:theProfit.length]
- is array of object weightstheCapacity
- is knapsack capacitypublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |