For functions , big O notation meansUsing the natural logarithm and exponential function, . Since , for every we have . The witnesses therefore prove
Suppose the definition of big O notation held with constants . Choose an odd integer . At this input, and , so the required inequality would be , a contradiction. ThusThe infinitely many even inputs, where , cannot repair the failure on odd inputs because the bound must hold for every sufficiently large input.
A direct mathematical induction proves . The base cases and hold. If the bound holds at and , then the Fibonacci recurrence givesThus the definition of big O notation holds with , proving
Articles by others on the same topic
There are currently no matching articles.