I have slides where 2 versions of local search algorithms are compared: greedy and steepest.
Greedy: generate solution x; repeat { for each y in N(x) in random order { if f(y) > f(x) then x = y; } } until no better solution was found
Steepest: generate solution x; repeat { find the best solution y in N(x); if f(y) > f(x) then x = y; } until no better solution was found
But everywhere on the Internet I read that greedy method searches for the best (not first better found) solution. So - what is the difference? And: which version is true?