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

  Design and implement a set of classes

Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc).

  Modify java application that displays the product number

make a Java application that displays the product number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory (the number of units in stock multiplied by the price of each unit).

  Implementing the program for carrying out the calculation

Write down a program that has a function named presentValue which carry out this calculation. The function must accept the future value, annual interest rate, and number of years as arguments.

  Determining time complexity

Specify the function of procedure DOES SOMETHING? What is the time complexity of the procedure?

  Forming a report which show employee information

Form a report that show the employee information, show on the form you generated in 1) above. The report should display this information for all the users, sorted alphabetically in the ascending order by LastName.

  Utilize linked stack class to support an application

Utilize Linked stack class to support an application

  Generate and display on the console the elements

Generate and display on the console the elements of a one-dimensional array b[M] where each element of b[M] represents the average grade over the semester of each of the M students .

  Design an algorithm to generate

plan an algorithm to generate the sequence of positive integers (in increasing order) whose only prime divisors are 2 and 3; that is, your program should produce the sequence 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27.

  Write down the names of five currencies

Write down a C program that displays a title, "Currency Conversion," and then write the names of five currencies and their equivalents to the US dollar. The conversions are hard coded equations.

  How to explain capacity of the queue

How to explain capacity of the queue

  Determine which company the customer could buy each item

Design a polynomial time algorithm to determine which company the customer could buy each item from to minimize her total cost.

  Explain the fundamental components of a distributed system

explain the fundamental components of a distributed system.

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