Shot in the dark if anybody knows how to code in Prolog. orz
Yup, I do.
It's been a while since I touch Prolog, so I am probably quite rusty.
Wait, I got through my troubles. :P I didn't know that calling a rule would call all rules that fit the signature. I'm stupid orz
I wrote a solution to the knapsack problem in this and then prompty forgot it all. There is a book on my shelf about it :(