My thoughts: If you know the person, acknowledge them, if you don't, it's not required.

A few places are pretty common to greet other strangers, for example, in the gym. All the men seem to greet each other, well those who lift weights at least. Also, around here.. if you're riding a motorcycle, you always wave at other motorcyclists.