Shouldn't we use better notation for the time complexity of the algorithms? For example, an algorithm can have
O(n^2) + rt * O(n)
time complexity (where rt is the round trip time). Of course this expression collapses to O(n^2), but by writing it like above you can more clearly see where the cost comes from.
EDIT: on second thought, perhaps bring the rt under the O() together with n.
I agree with the spirit, but why use O here at all? Isn’t the idea that O collapses to its highest ordered term, so if you don’t want that, don’t use it.
You could use a normal function. Like t(n) = f(n^2) + g(n) + rt
EDIT: on second thought, perhaps bring the rt under the O() together with n.