Write a python program to compute the fibonacci numbers

Assignment Help Computer Engineering
Reference no: EM13334019

  1. In each of the following situations, indicate whether f = O(g), or f = O(g), or both (in which case f = T(g)). Briefly explain why. 
    (a) f(n)=10n5 +8n2,g(n)=20n4 +7n3 +300 (b) f(n) = log 8n, g(n) = log(n2) 
    (c) f(n)=n3logn,g(n)=13n 5 
    (d) f(n) = (3)n, g(n) = 6n3 2
  2. We introduced in class that when analyzing algorithm complexity, we can ignore the lower-order terms and the coefficient of the leading term. For example, 3n + 5 ? n. Using the formal definition of the big-O notation, show that 3n + 5 = O(n) and n = O(3n + 5), in other words, 3n + 5 = T(n).
  3. The Fibonacci numbers F0, F1, F2, . . ., are defined by the rule F0 =0,F1 =1,Fn =Fn-1 +Fn-2. 
    Use induction to prove that Fn = 20.5n for n = 6.
  4. Write a python program to compute the Fibonacci numbers F8, F28, F48. What are the three values? What is the total number of additions needed by your program? Provide your answers as well as your source code.

Reference no: EM13334019

Questions Cloud

Determine what is the projects internal rate of return irr : A project that costs $2,200 to install will provide annual cash flows of $720 for each of the next 5 years. Calculate the NPV if the opportunity cost of capital is 10%
Determine the speed of the yo-yo : The string in a yo-yo is wound around an axle of radius 0.531 cm. The yo-yo has both rotational and translational motion, like a rolling object, What is the speed of the yo-yo when it reaches the distance of 1.42 m
Communicating with a disaster survivor : 1. When communicating with a disaster survivor whose English proficiency is limited, it helps to repeat information loudly and slowly.
What if the bank pays compound interest annually : You deposit $2,200 in your bank account. If the bank pays 4% simple interest, how much will you accumulate in your account after 10 years. What if the bank pays compound interest (annually)
Write a python program to compute the fibonacci numbers : Write a python program to compute the Fibonacci numbers F8, F28, F48. What are the three values? What is the total number of additions needed by your program? Provide your answers as well as your source code.
Development of the now ubiquitous lego brick : Write a well-researched report that analyses and describes how, under Jorgen VigKnudstorp's leadership, LEGO effectively manages innovation measurable in the popularity and success of its products
What is the original speed of the mess kit : A 3.0 kg mess kit sliding on a frictionless surface explodes into two 1.5 kg parts, one moving at 2.1 m/s, What is the original speed of the mess kit
Describe relationship between discounting and compounding : Calculate the amount of money that Emily needs to set aside from her bonus this year to cover the down payment on a new car, assuming she can earn 6% on her savings. What if she could earn 10% on her savings
Evaluate the business strategy of a publicly traded company : Evaluate the business strategy of a publicly traded company

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a function named filteronmax that takes a queue

Write a function named filterOnMax that takes a queue of integers and an integer value named max as parameters and returns a new queue of integers that contains only the values in the original queue that are less than or equal to the value of max.

  Create a program that demonstrate passing arguments

create a program that demonstrate passing arguments ByVal and then ByRef. I just need help with the coding.

  Give the highest test score and the name of the students

I need a C++ program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should too find out and print the highest test score and the name o..

  Description of the situation, intended users

Write down a paper demonstrating the application of your chosen DSS.

  How many bits are needed to address

How various bits are required to address a 1M × 8 main memory if Main memory is byte-addressable.

  Write down the code to declare a 2d integer array

Write down the code to initialize myary1 beginning with myary1[0][0] = 1 and adding one for each subsequent array location.

  Difference between clustered and nonclustered indexes

define the meaning of each of the transaction levels supported by SQL Server.

  Efficiency of variable n using big-o notation

Classify its efficiency in terms of the variable N utilizing the big-O notation. Also, suppose that statements represented by the ellipsis need four chief memory accesses with each access requiring 1 microsecond.

  What is the word describe sql

what is the word describe SQL

  What is proficient by page buffering

What is proficient by page buffering

  The whole scope of internet users are forced change ipv6

till the whole scope of Internet users are forced to change to IPv6 there would be no acceleration of its deployment. The old saying comes into the forum; why stop using something that you know works and you are happy with this

  When you buy a new software package

When you buy a new software package, why does it state the atleast RAM and hard drive space your computer must have for you to run this program.

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