Questions tagged [knapsack-problem]

Refers to the "knapsack" or "rucksack" problem in combinatorial optimization.

https://en.wikipedia.org/wiki/Knapsack_problem

4 questions
11
votes
1 answer

Strategic planning and multi dimensional knapsack problem

I'm trying to find a planning approach to solve a problem that attempts to model learning of new material. We assume that we only have one resource such as Wikipedia, which contains a list of articles represented as a vector of knowledge it contains…
Artem
  • 211
  • 1
  • 3
4
votes
1 answer

How do I solve the knapsack problem using the hill climbing algorithm?

I need to solve the knapsack problem using hill climbing algorithm (I need to write a program). But I'm clueless about how to do it. My code should contain a method called knapsack, the method takes two parameters, the first is a 2xN array of…
lujain
  • 41
  • 1
  • 2
0
votes
0 answers

Solutions for free-form bin packing?

I'm working on a solution for free-form bin packing and what I have found so far is https://www.researchgate.net/publication/267165843_A_scanline-based_algorithm_for_the_2D_free-form_bin_packing_problem But, still, I want to find some other varied…
0
votes
2 answers

How to represent "terminate episode" for Knapsack problem with a Pointer Network?

I am currently implementing a Pointer Network to solve a simple Knapsack Problem. However, I am a bit puzzled over the correct (or common, or "best") way to give the agent the option to stop taking the item (terminate episode). Currently, I have…
Sanyou
  • 165
  • 2
  • 10