Let's say I have two algorithms, one of which is less efficient in the sense that the complexity in the $\mathcal{O}$ notation has an additional factor $n$ (so for example, one is $\mathcal{O}(n^2)$ while the other is only $\mathcal{O}(n)$.
So how can I express the difference between these two algorithms, not knowing their overall complexity? For example, I may know that $A_1$ and $A_2$ are built using a common building block, but that $A_1$ does the main computation $n$ times while $A_2$ only does it once. Can I say $A_1$ is more complex than $A_2$ by $\mathcal{O}(n)$?
Example:
$A_1$:
for i = 1 : n
do_something_with_unknown_constant_complexity(...);
end
$A_2$:
do_something_with_unknown_constant_complexity(...);