Home > Software engineering >  Break and a simple algorithm
Break and a simple algorithm

Time:03-03

Question:

Function modules to enable this feature requires energy
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Function 1 x1 A's energy + x2 A B
Energy function 2 x3 C
Function 3 x4 D energy
.
.
Function n...
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Suppose there are
A energy, m1 m2 B energy, m3 A C energy, m4 D

Excuse me, how to enable these functions, meet the following two conditions
1. As far as possible to enable more function
2. As far as possible to enable more energy function

CodePudding user response:

Dynamic programming?
Knapsack problem?

CodePudding user response:

Looks like, I study, thank the bosses
  • Related