greedy and greedyPlus