Anagram knapsacked