Algo-Greedy
Activity-Selection problem
pseudocode
1 |
|
python
1 |
|
The Knapsack problem
Fractional Knapsack
pseudocode
1 |
|
0-1 Knapsack (DP解)
沒有greedy-choice property, 所以無法用greedy, 只能用DP解。
pseudocode
1 |
|
Huffman code
pseucode
1 |
|
constructing
1 |
|
Algo-Greedy
http://example.com/2021/11/16/Algo-Greedy/