The Fibonacci numbers F0,F1,F2,... are defined by the rule

F0=0,F1=1,Fn=Fn1+Fn2.

In this problem we will confirm that this sequence grows exponentially fast and obtain some bounds on its growth.

(a) Use induction to prove that Fn20.5nfor n6.

(b) Find a constant c<1such thatFn2cn for all n0. Show that your answer is correct.

(c) What is the largestc you can find for which Fn=Ω(2cn)?

Short Answer

Expert verified
  1. It is proved that Fn20.5n for n6.
  2. The value of the constant is 1>c0.69.
  3. The largest value is c~0.69.

Step by step solution

01

Rules for Fibonacci

We are given that:

F0=0F1=1Fn=Fn1+Fn2

02

Step 2:Solution to part (a) 

We know that for n=6,the Fibonacci numberF6=8.

Also, for n=6, use induction to prove that Fn20.5n for n=6.

Find Fn20.5nfor n=6.

F(6)?20.568?2388

This is true. Or it can be said that F(6)20.56 is true.

So, let us assume this statementFn20.5n is true for all values of k, i.e., Fk20.5k.

Now, we will check fork=k+1.

So, we have the Fibonacci series as:

Fk+1=F(k+1)1+F(k+1)2=Fk+Fk120.5k+20.5(k1)20.5k+20.5k20.520.5k(1+20.5)

We know that1+20.520.5.

Hence,Fk+120.5(k+1)for all k.

So,Fn20.5nfor n6 is true.

Hence it is proved.

03

Step 3:Solution (b)

We are given that Fn2cn for n0.

Also from the Fibonacci series:FnFn1+Fn2.

Thus,

2cn2c(n1)+2c(n2)2c2c+22c22c2c+1

Let2c=x.

Then,

x2x+1x2x10

On solving the above quadratic equation:

x1±522c1±52

Take log on both sides; we have:

log2(2c)log21±52c0.69

So, the value must be 1>c0.69.

04

Step 4:Solution (c)

In the previous solution, the largest possible value of c would be 0.69.

Since Fn=Ω(2cn), this means it is the lowest bound.

Therefore,c=0.69 .

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

A vertex cover of a graph G=(V,E)is a subset of vertices SVthat includes at least one endpoint of every edge in E. Give a linear-time algorithm for the following task.

Input: An undirected tree T=(V,E).

Output: The size of the smallest vertex cover of T. For instance, in the following tree, possible vertex covers include{A,B,C,D,E,F,G}and{A,C,D,F}but not{C,E,F}.The smallest vertex cover has size 3: {B,E,G}.

Show that, if c is a positive real number, then g(n) = 1 + c + c2 + · · · + cn is:

(a) Θ(1) if c < 1.

(b) Θ(n) if c = 1.

(c) Θ(cn) if c > 1.

The moral: in big-Θ terms, the sum of a geometric series is simply the first term if the series is strictly decreasing, the last term if the series is strictly increasing, or the number of terms if the series is unchanging.

There are many variants of Rudrata’s problem, depending on whether the graph is undirected or directed, and whether a cycle or path is sought. Reduce the DIRECTED RUDRATA PATH problem to each of the following.(a)The (undirected) RUDRATA PATH problem.(b) The undirected RUDRATA PATH problem, which is just like RUDRATA PATH except that the endpoints of the path are specified in the input.

The kSPANNING TREE problem is the following.Input: An undirected graph G=(V,E) Output: A spanning tree of G in which each node has degree k, if such a tree exists.Show that for any k2:

  1. k SPANNING TREE is a search problem.
  2. k SPANNING TREE is NP-complete. (Hint: Start with k=2 and consider the relation between this problem and RUDRATA PATH.)

Here’s a problem that occurs in automatic program analysis. For a set of variablesx1,......,xn, you are given some equality constraints, of the form “ xi=xj” and some disequality constraints, of the form “ xixj.” Is it possible to satisfy all of them?

For instance, the constraints.

x1=x2,x2=x3,x3=x4,x1x4

cannot be satisfied. Give an efficient algorithm that takes as input m constraints over n variables and decides whether the constraints can be satisfied.

See all solutions

Recommended explanations on Computer Science 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