complete greedy stucture