Optimal subset for the knapsack problems instance

Assignment Help Data Structure & Algorithms
Reference no: EM131145439

a. Apply the dynamic programming algorithm to the following instance of the 0-1 knapsack problem:

Item

Weight

Value

1

3

$25

2

2

$20

3

1

$15

4

4

$40

5

5

$50

capacity W = 6. Show your pseudo codes for the dynamic programming solution. You should include a procedure to retrieve an optimal solution.

b. How many different optimal subsets does the instance of part (a) have?

c. In general, how can we use the table generated by the dynamic programming algorithm to tell whether there is more than one optimal subset for the knapsack problem's instance?

Reference no: EM131145439

Questions Cloud

How you would conduct simulation to perform risk analysis : Choose any industry and describe how you would conduct a simulation to perform risk analysis.
Discuss the differences in the benefits to farmers : uppose the government wants to increase the price of a specific agricultural product. Discuss the welfare effects of four possible policies: price floor, price support, production quota and voluntary production reduction. Which policy is least effici..
Developing leaders for a sustainable global society : Which design will you choose?- Would it make a difference in your decision if the design was primarily for economically-developed countries or for third-world countries?
What do you think of this idea : ValuMart, a large national retail chain, is nearing its fiscal year-end. It appears that the company is not going to hit its revenue and net income targets.
Optimal subset for the knapsack problems instance : How can we use the table generated by the dynamic programming algorithm to tell whether there is more than one optimal subset for the knapsack problem's instance?
Strategic action plan outline : Strategic Action Plan Outline.  Cover page (does not count toward your final page count) ?Overview of Organization and Sector (suggested length: 1 page) ?Forces for change. ?Degree of uncertainty and turbulence. Define framing of power. ?Define the g..
A. how many spaghetti dinners should the firm make each day : a. How many spaghetti dinners should the firm make each day? b. What if the firm has avoidable fixed costs of $1562.50? c. What is the firm's supply function if there is no avoidable fixed cost? d. What is the supply function if the firm has avoidabl..
Which economic systems would be most suitable for a country : Which economic systems would be most suitable for a country: centrally planned, mixed economy, or market economy? Since Canada is the #1 trading partner with the USA, focus specifically on Canada.
Explain in terms of the environmental kuznets curve : Explain in terms of the environmental Kuznets curve.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Towers of hanoi problem

Solving the Towers of Hanoi Problem using State Space Search- There are 3 disks on peg A. The top disk has a diameter of 1, the middle disk has a diameter of 2, and the bottom disk has a diameter of 3

  Show how the following values would be stored by machines

Show how the following values would be stored by machines with 32-bit words, using little endian and big endian format. Assume each value starts at address 016. Draw a diagram of memory for each, placing the appropriate values in the correct (and ..

  Sort array of elements using the quick sort algorithm

"sort an array of 10,000 elements using quick sort algorithm as follows: sort the array using pivot as middle element of the array

  Find the checksum field in a single parity bit scheme

Assume that the information content of a packet is the bit pattern 1111000010100101 and an even parity is being used

  Design algorithm to receive two integer items from terminal

Design an algorithm that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product and quotient.

  Project1 install mysql dbms and dblanguage connector

project1. install mysql dbms and dblanguage connector software on your machine2. create world database using mysql

  Class to write computer games that have animated sprites

The Ucigame (pronounced 00-see-GAH-me) framework is designed to enable novice programmers to create 2D computer games in Java.

  Professional codes of ethics

Select one of the Professional Codes of Ethics associated with IT. If you were to complete a assignment related to securing the connectivity in your firm and its business partners.

  What do you meant by an rfp

Select a specific category of vertical applications to investigate. Use the Internet and any other sources of information you might have to study some of the different products that are available in that category.

  Write essay on djkistrars algorithm

Write Essay on Djkistrars Algorithm

  Do you observe any changes in cluster memberships

Draw the graphic for the healthy set, representing the values, healthy and unhealthy and what is the degree of membership to the fuzzy set healthy of person B who has a BMI of 26.2? And to the fuzzy set unhealthy?

  Find a popular story and write it into an array

Find a popular children's story and write it into an array.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd