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 nnis not.

Short Answer

Expert verified

nnis notO(n!)from theproof by contradiction.

Step by step solution

01

Definition of Big-O  Notation

Letfandgbe functions from the set of integers or the set of real numbers to the set of real numbers. We say thatf(x)isO(g(x))if there are constantscandksuch that

|f(x)|C|g(x)|

Wheneverx>k

02

 To prove nn is not O(n!)

By the proof by contradiction,

Let assumennis O(n!). Thenthere are constantscandksuch that

|nn|C|n!|

Whenevern>k

Divide by|n!|on both sides,

|nn||n!|C|n!||n!||nn||n!|C

03

Final Solution

Let k>1 for n>1, then,

nnn!=nnnn1n2n1111nnnn! ,

Now combing with the previous inequality we get,

nnnn!C

Here the function f(n)=nis not bounded as n is large.

Hence our assumption nnis O(n!)is false.

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