greedyknapsack work and home paths