Problem regarding the fibonacci numbers

Assignment Help Basic Computer Science
Reference no: EM131086020

The Fibonacci numbers are defined by the recurrence F0 = 0, F1 = 1

Fn = Fn-1 + Fn-2(n ≥ 2)

  1. (a)  Show that Fn ≥ 2n/2, n ≥ 6.
  2. (b)  Assume that the cost of adding, subtracting, or multiplying two integers is O(1), inde- pendent of the size of the integers.
    • Write pseudocode for an algorithm that computes Fn based on the recur- sive definition above. Develop a recurrence for the running time of your algorithm and give an asymptotic lower bound for it.
    • Write pseudocode for a non-recursive algorithm that asymptotically per- forms fewer additions than the recursive algorithm. Discuss the running time of the new algorithm.
    • Show how to compute Fn in O(log n) time using only integer additions and multiplications.
      (Hint: Express Fn in matrix notation and consider the matrix 0 1 11 and its powers.)
  3. (c) Now assume that adding two m-bit integers requires Θ(m) time and that multiplying two m-bit integers requires Θ(m2) time. What is the running time of the three algorithms under this more reasonable cost measure for the elementary arithmetic operations?

Reference no: EM131086020

Questions Cloud

Improving the business operation : 1) What is strategic information? 2) Why were all the past attempts by IT to provide strategic information fails? List three concrete reasons and explain. 3) An effective decision helps the manager to perform better in improving the business operatio..
Calculate exhaust temperature during exhaust stroke[0c] : 8-1. A six-cylinder SI engine, with a compression ratio of rc= 8.5, operates on an air-standard Otto cycle at WOT. Cylinder temperature and pressure when the exhaust valve opens are 1000 K and 520 kPa. Exhaust pressure is 100 kPa and air temperatu..
Activity of obtaining information resources : Information retrieval (IR) is the activity of obtaining information resources relevant to an information need from a collection of information resources. This activity plays an important role in data integration and data mining.
Possibility of someone using an application : You have been alerted to the possibility of someone using an application to capture and manipulate packets as they are passing through your network. What type of threat does this represent?
Problem regarding the fibonacci numbers : Assume that the cost of adding, subtracting, or multiplying two integers is O(1), inde- pendent of the size of the integers.
Use maple to find all the real roots of the polynomial : Prove that every univariate polynomial with complex coefficients and degree m has at most m distinct roots. Use MAPLE to find all the real roots of the polynomial 3x5-25x3 + 60x - 20
Determine the initial angular acceleration of the assembly : Determine the initial angular acceleration of the assembly.
Netbeans integrated development environment : Create a console based, non-GUI Java program using NetBeans Integrated Development Environment (IDE) that displays "Hello world!" Take a screenshot that shows the program's successful compilation and execution.
Piece of equipment or materials : This is to avoid allegations that the evidence may have been tampered with when it was unaccounted for, and to keep track of the tasks performed in acquiring evidence from a piece of equipment or materials. What is the term used to describe this p..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a complete c++ program that reworks your cellular bill

Write a complete C++ program that reworks your Cellular Bill calculation program from Chapter 4. Give your source file a meaningful name, such as CellBillFun.cpp.

  Write java program that allows the user to enter wall space

Write a Java program (from scratch) that allows the user to enter the wall space to be painted and the price of paint per gallon.

  What is concurrency control

What is Concurrency control? Describe the type of concurrency control and its use.

  How computer technology has changed our society

How have the major players including the government either made these statements true or false? What are examples of why or why not.

  Sensor data management systems

1. How can the sensor data management systems place the value to offer the proper information to the consumers correctly?

  Explain computer software required to make computers work

Develop 5- to 7-slide PowerPoint presentation, providing the overview of how computers are used. Distinguish various kinds of computer software required to make computers work.

  Systems development quality and use case

SYSTEMS DEVELOPMENT QUALITY AND USE CASES:The purpose of SLP 5 is to get acquainted with a third modeling technique and use the output model to document the system and train users. Structure process and data models were introduced in previous modules..

  The filter described by the transfer function

Compare the filter shape for the filter described by the transfer function H(z)=.0152+.2263z^-1+.517z^-2+.2263z^-3+.0152z^-4  to the shape obtained after the coefficients are quantized to

  Write an application where the user to specifies

Write an application where the user to specifies the polygonal Base of a prism using the mouse. it then creates the vertex, normal, and face lists for the prism, and displays it.

  Asks a user to enter the radius of a circle

Write a program that asks a user to enter the radius of a circle, and calcualtes the area and the circumference. The program should be written using the following methods.

  What normal form is the relation

If no multivalued attributes exist and no partial dependencies exist in a relation, what normal form is the relation?

  What role does relational calculus

What role does relational calculus (or relational algebra) play in query optimization in a centralized relational database?

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