greedy and clustering