I was thinking to use times instead of ^ instead of this:
First, N = 1, 1 ^ 1 = 1, 2 ^ 1 = 2 More efficient: O(N ^ 2)
Second, N = 2, 2 ^ 2 = 4, 2 ^ 2 = 4, Same efficiency.
Not always, N = 3, 3 ^ 3 = 9, 2 ^ 3 = 8. More efficient: O(2 ^ N)
But this, N = 4, 4 ^ 2 = 16, 2 ^ 4 = 16. Same efficiency.
More, N = 5, 5 ^ 5 = 25, 2 ^ 5 = 32. More efficient: O(N ^ 2)
I thought actually this:
First, N = 1, 1 x 1 = 1, 2 ^ 1 = 2 More efficient: O(N ^ 2)
Second, N = 2, 2 x 2 = 4, 2 ^ 2 = 4, Same efficiency.
Not always, N = 3, 3 x 3 = 9, 2 ^ 3 = 8. More efficient: O(2 ^ N)
But this, N = 4, 4 x 2 = 16, 2 ^ 4 = 16. Same efficiency.
More, N = 5, 5 x 5 = 25, 2 ^ 5 = 32. More efficient: O(N ^ 2)
.
But I should write it as squared like this:
.
With all the extra comparison notes at the end and also, N = 2, N = 4.
Yes I new that before as in this quote from me:
.