Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Show that \({2^n}\) is \(O({3^n})\) and \({3^n}\)is not \(O({2^n})\).

Short Answer

Expert verified

Hence, we obtain\({2^n}\) is \(O({3^n})\) and \({3^n}\)is not \(O({2^n})\).

Step by step solution

01

Step 1:

Let \(f(x) = {2^n}\) and \(g(x) = {3^n}\)

When \(x > 1\)we have property \({3^n} > {2^n}\)

Let \(k = 1\)

\(\left| {f(x)} \right| = \left| {{2^n}} \right| \le \left| {{3^n}} \right|\)

\( \Rightarrow C = 1\)

\( \Rightarrow f(x) = {2^n}\) is \(O({3^n})\)

02

Step 2:

Let \(f(x) = {3^n}\) and \(g(x) = {2^n}\)

Assuming \(f(x) = {3^n}\)is\(O({2^n})\).

\( \Rightarrow \left| {{3^n}} \right| \le C\left| {{2^n}} \right|\)where \(n > k\)

Let\(k > 1\)

\(\begin{array}{l}{3^n} = \left| {{3^n}} \right| \le C\left| {{2^n}} \right|\\ = C{2^n}\end{array}\)

Solving inequality

\(\begin{array}{l}C \le \frac{{{3^n}}}{{{2^n}}}\\C \le {\left( {\frac{3}{2}} \right)^n}\end{array}\)

Now,\(n \le {\log _{3/2}}(C)\)

Here, we are getting a contradiction because\(n > k\)

\( \Rightarrow \)\(f(x) = {3^n}\)is not \(O({2^n})\)

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free