greedy solver