complete greedy