r/AskComputerScience • u/silvers_puppet • Aug 07 '26
Does empirical complexity analysis in a container on a server pose any problems?
I haven't worked with servers or containers that much and so I wanted to ask if I try to measure the complexity of an algorithm, by repeatedly running the script with larger n, how likely is it that my measurements will be falsified?
If I do the same approach on a desktop the differences in time measurements depending on, memory and other processes running on the computer are negligible. Is there any difference when I am trying to measure on a server while that same server is also handling requests and do you think this is going to cause me problems with assessing the complexity correctly?
View all comments
Show parent comment
1
u/silvers_puppet Aug 08 '26
So I understand that theoretically my scale could shift for whatever input I decide to stop testing.
However, since some in scientific literature (cf. Goldsmith et al. 2007) advocate for empirical measurements, I feel like it is fine to claim at least some relevancy to the complexity of the algorithm. It's not like the time measured is totally unrelated to the complexity. Although, I have to admit the block-measuring approach of trend-proof seems a lot more rigorous than my naive time-measuring idea.