Search Header Logo

Fractional Knapsack Quiz

Authored by Dr. 2330

Education

University

Used 1+ times

Fractional Knapsack Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between 0/1 knapsack and fractional knapsack?

Fractional allows only full items
0/1 allows fractional parts
Fractional allows partial items
Both allow only one item

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the greedy choice based on in the fractional knapsack problem?

Highest value
Lowest weight
Lowest cost
Highest value-to-weight ratio

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an item has value $200 and weight 20kg, what is its value-to-weight ratio?

5
10
15
20

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a greedy algorithm guarantee optimal solution for fractional knapsack?

Yes
No
Only if sorted
Depends on the values

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Find Optimal Solution, Capacity =50 kg. Items with weights 10kg, 20kg, 30kg and values $6 0, $100, $120 respectively.

$280
$240
$260
$300

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The greedy method works for fractional knapsack because:

It checks all combinations
It ignores weight
It uses value/weight ratio and allows partial items
It uses dynamic programming

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if two items have the same value/weight ratio?

Skip one
Take the heavier one
Any order works
None are taken

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?