{{ block title }}Knapsack Problem (Training){{ endblock }} {{ block content }} Your knapsack has a capacity of {{c}}kg.
Item # Weight (in kg) Value (in Euro)
1 {{w.0}} {{v.0}}
2 {{w.1}} {{v.1}}
3 {{w.2}} {{v.2}}

Please pick items to put into your knapsack. You should try to fit the most valuable combination that weighs at most {{c}}kg. {{ formfields }} {{ next_button }} {{ endblock }}