The question is, "as mentioned in the lecture, assume that a computer can do 10^8 comparisons in a second. How many seconds will it take for the computer to do pairwise comparisons of one million (1, 000, 000) elements?"
The correct answer happens to be nearly 5000 seconds.
I didn't understand how it is calculated.
1, 000, 000 is 10^6 which is less than 10^8 so the answer according to me should be less than 1 second.
Can someone kindly explain the method used in solving this question.
Would be very helpful.
Thank you.