pub fn knapsack_coin_algorithm(
rng: &mut impl Rng,
spendable_coins: &[Coin],
amount: u128,
max_amount: u128,
max_coins: usize,
) -> Option<IndexSet<Coin>>Expand description
Runs the knapsack algorithm on a set of coins, attempting to find an optimal set.