What's a good algorithm for reducing Transaction fees?
https://en.bitcoin.it/wiki/Transaction_fees
Those are rules about calculating fees.

Considering algorithms, i think you should check all possiblities (brute-force) or it could be also some kind of knapsack problem.