I asked myself, which Big O Notation C++ min has.
I want the minima from a Set of integers.
I saw in stackoverflow a similar question.
The answer was O(n), because you have to read n numbers.
But this is only correct, if reading is the critical operation.
My question is: What is more expensive? (in cpu clocks or whatever)
Reading or comparing?