Program to prove that the definition of o-notation holds.

Assignment Help C/C++ Programming
Reference no: EM13939639

See the attach file for problem. Please read R as R+

Question :

Prove that ! ( )
n
n ∈ο n by using the definition of the small o- notation.
Definition: Let : N →R∪{0}, where

N is the set of all non-negative integers:
R is the set of all positive real numbers.
f
0 0
o( f )={ g : N →R ∪{0}|∀c∈R,∃n ∈N :g(n) <cf (n),∀n ≥n }
Solution
The factorial of n, represented by n! is defined for integers n ≥ 0 as
n! = 1 if n=0
= n. (n-1)! if n>0
First of all let us try and arrive at an intuitive solution. A weak upper bound on n! is n
n
, since
each of the n terms in the factorial product is at most n. The o-notation is used to denote an upper
bound that is NOT asymptotically tight.
Hence, intuitively ! ( )
n
n ∈ο n
Proof:
To prove this we need to prove that the definition of o-notation holds.
According to the definition of o-notation, we need to prove that for any positive constant c > 0, there exists a constant n0 >0 such that
0 ≤ n! < c n
n
for all n ≥ n0 Equation (i)
So it now boils down to showing that the inequalities hold and then we are done.
(a) The first inequality (0 ≤ n!) follows from the definition of n! :
• n! is always greater than 0.
• Minimum value of n! is 1 which occurs when n=0.
Hence n! ≥ 0 for all n ≥ 0.
(b) To show the second inequality, we just need to look at the factorials carefully.
Once again, let us start with the basic factorials: 0! = 1 and 1! = 1. So in order for these factorials
to satisfy the inequality, it is obvious that c must be >1 [because 1 < c*1 iff c >1].
For all other factorials, i.e. n ≥ 2, the inequality will hold for any c > 1. So, in order to
summarize:
The second inequality n! < c n
n
is true for n ≥ 2 for any c ≥1. This is in the same form as
Equation (i).
Therefore for all c ε R+, n0 = 2 satisfies Equation (i).
Hence ! ( )
n
n ∈ο n is proved

Reference no: EM13939639

Questions Cloud

What is the operating cash flow for the project in year : You are evaluating a project for The Tiff-any golf club, guaranteed to correct that nasty slice. You estimate the sales price of The Tiff-any to be $470 per unit and sales volume to be 1,000 units in year 1; 900 units in year 2; and 1,325 units in ye..
Health programs available to prevent communicable diseases : Vaccines are one of the largest public health programs available and help prevent many communicable diseases. When browsing the website, make sure to review the following sections beneath "Vaccines and Immunizations Topics":
What is its after tax cost of debt : Lcorp has a $11.9 million debt issue outstanding, with a 5.9% coupon rate. The debt has semi annual coupons, the next coupon is due in six months, and the debt matures in five years. It is currently priced at 94% of par value. If Lcorp faces a 40% ta..
Developing technology to communicate and share : iWish Is an application that will gather all people who are interested in developing technology to communicate and share their ideas and wishes in technology in one place, people nowadays are more into technology and want to add more to it so with..
Program to prove that the definition of o-notation holds. : To prove this we need to prove that the definition of o-notation holds.
Evaluate the proposed acquisition-what will cash flows : You have been asked by the president of your company to evaluate the proposed acquisition of a new special-purpose truck for $70,000. The truck falls into the MACRS 3-year class, and it will be sold after three years for $19,900. What will the cash f..
Explain why the roi increased over the year three level : Suppose that in year 4 the sales and operating income were achieved as expected, but inventories remained at the same level as in year 3. Compute the expected ROI, margin, and turnover. Explain why the ROI increased over the year 3 level.
That distinguish financial management in firms : Identify the principal factors (at least five), with explanations, that distinguish financial management in firms operating entirely in a single country from those that operate globally.
Operate an it support services system : Why is it good or bad to operate an IT support services system (help desk) on a strictly, first-come, first-served basis? Question 1a (500 words) Explain how higher quality can lead to lower costs.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd