Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Knapsack
Fractional vs 0/1
Check Your Understanding
Why does greedy work for fractional but not 0/1 knapsack?
- A.Fractional is easier to implement
- B.0/1 has larger inputs
- C.Greedy works for both
- D.Fractions allow partial items, so no blocking occurs