Fractional Knapsack Quiz

Fractional Knapsack Quiz

University

9 Qs

quiz-placeholder

Similar activities

Chapter 2: Gathering Network Requirement

Chapter 2: Gathering Network Requirement

University

10 Qs

JavaScript Fundamentals

JavaScript Fundamentals

9th Grade - Professional Development

10 Qs

Kuis Webinar IMD PKGK FKM UI

Kuis Webinar IMD PKGK FKM UI

University - Professional Development

10 Qs

DAA Quiz 1

DAA Quiz 1

University

10 Qs

Quiz-1

Quiz-1

University

10 Qs

Probability & Entropy

Probability & Entropy

University

13 Qs

ByteWise_round1

ByteWise_round1

University

12 Qs

Project Management Quizz

Project Management Quizz

University

14 Qs

Fractional Knapsack Quiz

Fractional Knapsack Quiz

Assessment

Quiz

Education

University

Practice Problem

Easy

Created by

Dr. 2330

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?