演算法›Ch7 貪婪演算法
第 1 題/共 12 題
◀ AL 1/12
1. Fractional Knapsack、貪心演算法
#AL-07-001易Fractional Knapsack貪心演算法

Consider a fractional knapsack problem of 6 items. The ii-th item is worth viv_i dollars and weighs wiw_i pounds.

item ii123456
pounds wiw_i428558
dollars viv_i38167920

Suppose that at most W=20W=20 pounds can be carried in the knapsack. The sequence of picking the items is

📄 台大111
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch7 貪婪演算法
本章題號 · 1–12 / 12