Greedy approximate, attempt at dynamic