The dynamic programming algorithm

Assignment Help Computer Engineering
Reference no: EM131148012

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: EM131148012

Questions Cloud

How many shares were used to calculate eps : How many shares were used to calculate E.P.S.? What is the amount of Net Earnings? List 3 examples of selling and administrative expenses. What is the amount of Gross Margin?
What are economies of scale in a manufacturing plant : What are economies of scale in a manufacturing plant? Do they continue forever? What are diseconomies of scale? How might you decide the optimal size of a plant?
Construct an sql schema definition for database : Construct an SQL schema definition for this database. Use inheritance where appropriate.
Explain project management as a discipline : Explain project management as a discipline. Describe the industries in which project managers are in high demand. Provide evidence to support your response
The dynamic programming algorithm : How many different optimal subsets does the instance of part (a) have - 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?
What does generation x contribute to the workplace : Explain how you would prepare for this workforce transition. How would you ensure that your organization does not experience a leadership gap with the retirement of its seasoned leaders?
What are the costs of each alternative : What are the advantages and disadvantages of each alternative? What are the costs of each alternative? When is one alternative preferred over the other?
Determine the constraints on the variables : The CDs she buys at a discount for $12 each. Write an inequality to model the situation. Then, determine the constraints on the variables.
What are two approaches in conceiving a vision : What are two approaches in conceiving a vision, and what are the positives and negatives of each approach?- How would you become a better listener?

Reviews

Write a Review

Computer Engineering Questions & Answers

  For this assignment you will use your proposed solution as

for this assignment you will use your proposed solution as revised following grading and input from your professor

  Demonstrate ascii code conversion

Develop a program for the PIC 16F84A using the MPLAB v8 IDE (MPLAB IDE v8.86) simulator software - Demonstrate the use of subroutines, e.g. initialize the peripheral registers and to set the time delays, etc.

  Write a program use a matrix represent

Write a Program Use a matrix represent.

  Computer architectureinput devicesnbspwrite a two to three

computer architectureinput devicesnbspwrite a two to three 2 page paper in which youcompare how the gestures data is

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

  When programmer intentionally creates endless loop

When programmer intentionally creates an endless loop, how would he end the loop.

  Need on ms access database

simple database table to hold provider contact information;some of the required fields in the table require that a Caption be added to the field characteristics. The Caption will be displayed in the report that is to be generated.

  Create a two-dimensionsl array depending on user choices

design an application that either sums or averages the rows or columns of a two-dimensionsl array depending on user choices. Use following data for the array.

  What technologies must be used to secure those areas

The employees have hopes of making the breakthrough and bringing the company public in next two years. You have been hired as a security consultant to assess the company's needs.

  Explaining the business uses of cloud computing

In this research paper, you will research cloud computing and Web 2.0 and write a two- to four-page (500-1000 word) research paper explaining the business uses of each. Using the internet, research the business uses of cloud computing and Web 2.0

  Select a company described in the wall street journal

select a company described in the wall street journal fortune forbes or another reputable business application. visit

  How to redesign the coding design

How to redesign the coding design? Write down a sentence for each change you have optional, indicating what data entry problem (from part a) change will eliminate.

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