Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.)Given the following items, their weights and values, compute the maximum value of the items that could be accumulated in a knapsack of weight W

1.)Given the following items, their weights and values, compute the maximum value of the items that could be accumulated in a knapsack of weight W = 6 lb (also listed in the table). Compute your solutions as:

(i) Fractional Knapsack problem

(ii) Integer Knapsack problem (W = 6 lb)

(iii) Using the result of (ii), determine the total maximum value and the corresponding items that can be picked if the Knapsack weight is reduced to 5 lb.

Show all the work (including the value and history tables for the Integer Knapsack problem)

*I = Item, V= Value, W= Weight

I V($) W(lb)

1 19 1

2 80 4

3 25 2

4 45 3

5 15 1

2.)Run a Breadth First Search (BFS) on the graph and find the level numbers of the vertices as well as identify the tree edges and cross edges.

Use the results to determine whether the graph is bipartite (2-colorable) or not. If the graph is bipartite, identify the two partitions of the graph. If the graph is not bipartite, identify the edges that prevent the graph from being bipartite.

image text in transcribed

8 4 2 7 5 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago