Is it true?

True or False?

2 2 n = O ( 2 n ) \large 2^{2n} = O(2^n)

False True

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

The common error is the subconscious assumption that to verify this relation, we have to find a positive constant C C such that 0 2 2 n 2 C n 0 \leq 2^{2n} \leq 2^{Cn} , for n n 0 n\geq n_0 , where n 0 n_0 is another positive constant.

But actually we have to find a positive constant C C such that 0 2 2 n C 2 n 0 \leq 2^{2n} \leq C2^n , for n n 0 n\geq n_0 , where n 0 n_0 is another positive constant.

For the sake of Contradiction, let's assume such C C exist so that 0 2 2 n C 2 n 0 \leq 2^{2n} \leq C2^n .

But 2 2 n C 2 n 2 n C 2^{2n} \leq C2^n \implies 2^n \leq C , for ALL n n greater than some positive constant n 0 n_0 (Dividing both sides by 2 n 2^n ). Obviously such a C C can't exist.

So, the answer is False .

The common error is the subconscious assumption that to verify this relation

Is this a common misconception that people have?
If yes, why do they do it? Is it that they put the "C" in front of "n"?

Calvin Lin Staff - 4 years, 6 months ago

Log in to reply

Yeah, in my experience, I've seen too many people who thinks putting C C just before n n suffices.

Muhammad Rasel Parvej - 4 years, 6 months ago

And this particular example can be used as counter-example against each of following propositions

  • f ( n ) = θ ( g ( n ) ) 2 f ( n ) = θ ( 2 g ( n ) ) f(n)= \theta (g(n)) \implies 2^{f(n)}= \theta (2^{g(n)}) .

  • f ( n ) = θ ( g ( n ) ) h ( f ( n ) ) = θ ( h ( g ( n ) ) f(n)= \theta (g(n)) \implies h(f(n))= \theta (h(g(n))

  • f ( c n ) = θ ( f ( n ) ) f(cn)= \theta( f(n)) for any positive constant C C .

The first and third ones can be considered as special cases of the second one.

Each of those three propositions may seem intuitively fine and obvious . Most of the people, again in my experience, have found each of those propositions so obvious that they haven't feel any need to verify it mathematically.

And if they use any of those three to solve this problem, they'll get it wrong.

Muhammad Rasel Parvej - 4 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...