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

  Algorithm to recognize substrings which form numbers

Given the string of numbers, recognize all the substrings which form numbers which are divisible by 3. For instance, applying algorithm on the string.

  Portfolio planning using optimization

Set this problem up as a linear programming model in Excel, and use Solver to determine how the $10 million should be invested. What is the overall return (in dollars terms)

  Pseudocode program

Write a program that inputs the first name, middle initial (without the period), last name, age, salary and sex of new employee. Then displays that person's name with the first name first, middle initial followed by a period, and last name then ag..

  Systems analysis and design

What are the benefits of a thorough system requirements document? Drawbacks? How can a system requirements document be used to manage stakeholder expectations?

  Dbms and data mining to imporve customer service

Discuss how a database management system and data mining can help motor vehicle maintenance center improve its services, and what tables would be required in such a database.

  Questionm about distributed database

Explain what a distributed database is and how replication works with respect to managing the information in these databases.

  Data structures and algorithm design

Data Structures and Algorithm Design

  The time delay of a long-distance

The time delay of a long-distance call can be determined by multiplying a small fixed constant by the number of communication links on the telephone network between the caller and callee

  An undirected graph g is called bipartite

An undirected graph G is called bipartite if its vertices can be partitioned into two sets X and Y such that every edge in G has one end vertex in X and one end vertex in Y

  Multiple choice - high school excel 2003

Cell E23 has a date value and you want to place that date on an invoice prefaced with the text located in B15. Determine the command to do that?

  Write a c program to find the intersection andor union of

write a c program to find the intersection andor union of two doubly linked lists using recursion. you are not allowed

  Design algorithm to find the average miles per gallon

Design an algorithm to find the average miles per gallon. Sample data: 68723, 71289, 15.75, 16.30, 10.95, 20.65, 30.00.

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