1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
True [87]
3 years ago
14

The 0-1 knapsack problem is the following. A thief robbing a store finds n items. The ith item is worth vi dollars and weighs wi

pounds, where vi and wi are integers. The thief wants to take as valuable a load as possible, but he can carry at most W pounds in his knapsack, for some integer W . Which items should he take?
Computers and Technology
1 answer:
icang [17]3 years ago
3 0

Step by step Explanation:

Based on what we could deduce from the above statement, the items he should take are:

  • must either take one single item or must leave the other behind,
  • and only a whole amount of an item must be taken,
  • in which an item cannot be taken more than once into his knapsack.

Hence, the thief needs to carefully determine items with an optimal value which still falls within his specified weight (W).

You might be interested in
The range of Cell that go across the spread sheet and are identified by numbers is called​
Zanzabum

Cells are identified by the Cell Name (or Reference, which is found by combining the Column Letter with the Row Number. For example the cell in Column "C" in Row "3" would be cell C3. Cells may contain Labels, Numbers, Formulas or Functions. Cell Name: By default, the name of a cell is the cell reference.

Hope this helps

7 0
2 years ago
Bruno is asked to create a program that will require the user to enter a passcode. If the wrong passcode is entered, the user ca
almond37 [142]

Answer:

a condition controlled loop

Explanation:

if a user get the password right he will not have to restart

3 0
2 years ago
Write some html on a css page that transforms a sentence within a paragraph to tahoma font style, 16px font size, and red font c
Reptile [31]
P {
font-style: tahoma;
font-size: 16px;
font-color: red;
}
7 0
4 years ago
Question Workspace Check My Work You disassemble and reassemble a desktop computer. When you first turn it on, you see no lights
Greeley [361]

Answer:

D. Power cords to the motherboard are not connected.

Explanation:

The correct option is the power cord that supplies electricity to the motherboard is not connected. The idea that there's no light or sound indicates the system isn't on or booting. The only option there that indicates why the computer may not boot.

Other options available albeit creates a problem for the computer, will still turn on the computer. But if the motherboard doesnt get power, the booting process doesn't start.

6 0
3 years ago
you just bought a new hard drive for your computer .you plan to use this as a secondary hard drive to store alll your files. wha
marin [14]
In case the first drive fails, the data will all be backed up onto the second drive, a copy will still be intact.
7 0
4 years ago
Other questions:
  • Consider the following method intended to modify the parameter names by removing all instances of the String n.
    14·1 answer
  • In a _____, if any link between nodes is severed, the entire network is affected, and failure of a single node disrupts the enti
    9·1 answer
  • What’s the answer of Dennis Brylow’s computer science
    15·1 answer
  • What's the minimum number of ip addresses that a router must have?
    6·1 answer
  • In the dewey decimal sysytem, the call number 800 notes which section
    10·1 answer
  • Communication competence is _____.
    10·1 answer
  • Consider the following two implementations of the same algorithm, each written in a different language.
    11·1 answer
  • In 1997, microsoft was accused of using a monopoly in operating systems to control the market for _____.
    8·2 answers
  • Write a class that specify the characteristics of a car, like type (sedan, jeep, mini, SUV, etc), gear (auto, manual), maximum s
    12·1 answer
  • Is there actually a difference between left and right twix
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!