Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Binary Splitting
Why it works
Check Your Understanding
In bounded knapsack with k copies of each item, what is the purpose of binary splitting (1, 2, 4, ...)?
- A.To reduce k items to O(log k) virtual items while covering all counts 0 to k
- B.To compress the weight values
- C.To find the median item
- D.To sort items by weight