Fractional Knapsack Quiz

Fractional Knapsack Quiz

University

9 Qs

quiz-placeholder

Similar activities

Research methods

Research methods

9th Grade - University

10 Qs

Cognitive View of Learning Edu Psycho

Cognitive View of Learning Edu Psycho

University

12 Qs

01 marketing basic concepts

01 marketing basic concepts

University

10 Qs

Dynamic Programming Part 1 - Quiz

Dynamic Programming Part 1 - Quiz

University

10 Qs

DAA-UNIT III

DAA-UNIT III

University

10 Qs

AOA Quiz

AOA Quiz

University

12 Qs

Fables

Fables

5th Grade - University

10 Qs

1499EDN Week 7 Cognitive Views of Learning

1499EDN Week 7 Cognitive Views of Learning

University

14 Qs

Fractional Knapsack Quiz

Fractional Knapsack Quiz

Assessment

Quiz

Education

University

Easy

Created by

Dr. 2330

Used 1+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we stop when the knapsack is full?
To avoid adding too much value
It's required in the algorithm
Capacity limit is reached
To take only one item

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What property guarantees the greedy algorithm works for fractional knapsack?
Dynamic Optimality
Greedy Choice Property
Local Minimum Principle
Heuristic Analysis