KonkurStudy
همه کارت‌ها

Fractional Knapsack (Greedy by Value Density)

Sort items by value-to-weight ratio and fill the knapsack greedily, taking a fraction of the last item; this is provably optimal for the fractional knapsack, unlike 0/1.

کارت الگوریتم کنکور ارشد علوم کامپیوتر