A simple implementation of 0/1 KnapSack Problem