ArticleslgStudy

science

List of knapsack problems

List of knapsack problems is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand List of knapsack problems rather than just read about it. In short: The knapsack problem is one of the most studied problems in combinatorial optimization, with many real-life applications. For this reason, many special cases and generalizations have been examined.

Key takeaways

  • List of knapsack problems belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect List of knapsack problems to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of List of knapsack problems from memory before moving on to harder problems.

Reference excerpt

The knapsack problem is one of the most studied problems in combinatorial optimization, with many real-life applications. For this reason, many special cases and generalizations have been examined. Common to all versions are a set of n items, with each item 1 ≤ j ≤ n {\displaystyle 1\leq j\leq n} having an associated profit pj and weight wj. The binary decision variable xj is used to select the item. The objective is to pick some of the items, with maximal total profit, while obeying that the maximum total weight of the chosen items must not exceed W. Generally, these coefficients are scaled to become integers, and they are almost always assumed to be positive. The knapsack problem in its most basic form:

Direct generalizations One common variant is that each item can be chosen multiple times. The bounded knapsack problem specifies, for each item j, an upper bound uj (which may be a positive integer, or infinity) on the number of times item j can be selected:

The unbounded knapsack problem (sometimes called the integer knapsack problem) does not put any upper bounds on the number of times an item may be selected:

The unbounded variant was shown to be NP-complete in 1975 by Lueker. Both the bounded and unbounded variants admit an FPTAS (essentially the same as the one used in the 0-1 knapsack problem). If the items are subdivided into k classes denoted N i {\displaystyle N_{i}} , and exactly one item must be taken from each class, we get the multiple-choice knapsack problem:

If for each item the profit and weight are equal, we get the subset sum problem (often the corresponding decision problem is given instead):

If we have n items and m knapsacks with capacities W i {\displaystyle W_{i}} , we get the multiple knapsack problem:

As a special case of the multiple knapsack problem, when the profits are equal to weights and all bins have the same capacity, we can have multiple subset sum problem. Quadratic knapsack problem:

Set-Union Knapsack Problem: SUKP is defined by Kellerer et al (on page 423) as follows:

Given a set of n {\displaystyle n} items N = { 1 , … , n } {\displaystyle N=\{1,\ldots ,n\}} and a set of m {\displaystyle m} so-called elements P = { 1 , … , m } {\displaystyle P=\{1,\ldots ,m\}} , each item j {\displaystyle j} corresponds to a subset P j {\displaystyle P_{j}} of the element set P {\displaystyle P} . The items j {\displaystyle j} have non-negative profits p j {\displaystyle p_{j}} , j = 1 , … , n {\displaystyle j=1,\ldots ,n} , and the elements i {\displaystyle i} have non-negative weights w i {\displaystyle w_{i}} , i = 1 , … , m {\displaystyle i=1,\ldots ,m} . The total weight of a set of items is given by the total weight of the elements of the union of the corresponding element sets. The objective is to find a subset of the items with total weight not exceeding the knapsack capacity and maximal profit.

Multiple constraints If there is more than one constraint (for example, both a volume limit and a weight limit, where the volume and weight of each item are not related), we get the multiple-constrained knapsack problem, multidimensional knapsack problem, or m-dimensional knapsack problem. (Note, "dimension" here does not refer to the shape of any items.) This has 0-1, bounded, and unbounded variants; the unbounded one is shown below.

The 0-1 variant (for any fixed m ≥ 2 {\displaystyle m\geq 2} ) was shown to be NP-complete around 1980 and more strongly, has no FPTAS unless P=NP. The bounded and unbounded variants (for any fixed m ≥ 2 {\displaystyle m\geq 2} ) also exhibit the same hardness. For any fixed m ≥ 2 {\displaystyle m\geq 2} , these problems do admit a pseudo-polynomial time algorithm (similar to the one for basic knapsack) and a PTAS.

Knapsack-like problems If all the profits are 1, we will try to maximize the number of items which would not exceed the knapsack capacity:

If we have a number of containers (of the same size), and we wish to pack all n items in as few containers as possible, we get the bin packing problem, which is modelled by having indicator variables y i = 1 ⇔ {\displaystyle y_{i}=1\Leftrightarrow } container i is being used:

The cutting stock problem is identical to the bin packing problem, but since practical instances usually have far fewer types of items, another formulation is often used. Item j is needed Bj times, each "pattern" of items which fit into a single knapsack have a variable, xi (there are m patterns), and pattern i uses item j bij times:

If, to the multiple choice knapsack problem, we add the constraint that each subset is of size n and remove the restriction on total weight, we get the assignment problem, which is also the problem of finding a maximal bipartite matching:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with List of knapsack problems

Start with the simplest possible case. Write down what List of knapsack problems claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to List of knapsack problems before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about List of knapsack problems ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of List of knapsack problems

In research
List of knapsack problems appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses List of knapsack problems in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
List of knapsack problems is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorial optimization, so understanding it makes those chapters shorter.
In everyday life
Look for List of knapsack problems outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study List of knapsack problems in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what List of knapsack problems means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain List of knapsack problems out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is List of knapsack problems in simple terms?

The knapsack problem is one of the most studied problems in combinatorial optimization, with many real-life applications. For this reason, many special cases and generalizations have been examined.

Why does List of knapsack problems matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study List of knapsack problems?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on List of knapsack problems.

Tags

  • Combinatorial optimization

Keep exploring