Anytime automatic algorithm selection for knapsack uri icon