pykp.knapsack.
Item#
- class pykp.knapsack.Item(value: int, weight: int)#
Represents an item for the knapsack problem.
- Parameters:
- value: int
The value of the item.
- weight: int
The weight of the item.
- Attributes:
- value: int
The value of the item.
- weight: int
The weight of the item.