Named Greedy algorithm more explicitly