greedy complete