Give big-O estimates for the factorial function and the logarithm of the factorial function, where the factorial function f(n) = n! is defined by n! = 1 · 2·3· ... ·n whenever n is a positive integer, and O! = 1 . For example, 1 ! = 1, 2! = 1 · 2=2, 3 ! =1· 2·3 = 6, 4! = 1 · 2·3· 4=24. Note that the function n! grows rapidly. For instance, 20! = 2,432,902,008,176,640,000.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Give big-O estimates for the factorial function and the logarithm of the factorial function, where
the factorial function f(n) = n! is defined by
n! = 1 · 2·3· ... ·n
whenever n is a positive integer, and O! = 1 . For example,
1 ! = 1, 2! = 1 · 2=2, 3 ! =1· 2·3 = 6, 4! = 1 · 2·3· 4=24.
Note that the function n! grows rapidly. For instance,
20! = 2,432,902,008,176,640,000. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Problems on numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage