I think we can both agree that if you hold m, p and n constant then q would be O(n). That is because all the variables are in the same complexity class i.e. they differ by a constant.
That is why the argument doesn't hold for your other examples. E is not in the same complexity class as V. And n is not in the same complexity class as 1.
2
u/cwolf79 Dec 22 '16
I think we can both agree that if you hold m, p and n constant then q would be O(n). That is because all the variables are in the same complexity class i.e. they differ by a constant.
That is why the argument doesn't hold for your other examples. E is not in the same complexity class as V. And n is not in the same complexity class as 1.