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 isnlognisO(logn!)

Short Answer

Expert verified

By the definition of growth function and O-notation, f(x)is O(g(x))if there are constants C and k such that |f(x)|C|g(x)|wheneverx>k , it is proved thatnlognisO(logn!)

Step by step solution

01

Defining the definition of Growth function:

Consider f and g are functions from the set of integers or from the set of real numbers to the set of real numbers, we say that

By the definition of growth function and O-notation, f(x)isO(g(x)) if there are constants C and k such that |f(x)|C|g(x)|wheneverx>k

02

Simplifying the factorial function:

We have,

n!=n(n1)(n2)

n! is bigger than or equal to all the terms, we can write,

n!n(n1)n2

Since, all the terms are bigger than or equal ton2 we have,

n!n2n2n2

Thus, we can write,

n!n2n2

Applying logarithm on both sides,

log(n!)n2logn2n2lognn2log2

Thus, from the definition of O-notation, we can say that nlognisO(logn!) .

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

Most popular questions from this chapter

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free