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

  Attempt to change ibm culture

1- Who is Grstner and what role did he play in IBM's transformation? 2- How did he attempt to change IBM's culture? 3- What role did institutional values have

  Computer simulation project milestone

The final project for this course is the creation of a final report that analyzes a real-world problem and proposes a simulation model-based solution.

  Explain the potential problems with this approach

Explain the potential problems with this approach when software has high performance or dependability requirements. 23.8. A software manager is in charge of the development of a safety-criti

  What three groups of people at the law firm

The law firm of Dewey, Cheatham, & Howe is considering the implementation of a new information system. To that end, they have hired your firm to perform the Systems Analysis process. They understand that a successful system must be aligned with th..

  Algol 60 procedure types

In Algol 60, the type of each formal parameter of a procedure must be given. How- ever, proc is considered a type (the type of procedures).

  Design process

You have recently started your own software design company. You discover that your local DMV is looking to build a system that will allow receptionists to check customers in quickly. They would like for the system to allow customers to self-check-in ..

  Discuss the role of simulation software

Discuss the role of simulation software ( e.g. , ANSYS, Abaqus, and Simulink) in engineering analysis and optimization, and compare and contrast the impact of licensed software and open-source software ( e.g. , free codes) in performing engineering d..

  A function in two different classes and implemented in c++

Is it possible that a function is friend of two different classes

  Describe and rate three other web-based resources

You are an IT support person who needs to have a good set of tools for making operating system decisions rather quickly. In this hypothetical, pick the desktop operating system you are charged with supporting (Windows XP, WIndows NT, Windows 2000,..

  The real reasons why the vcf system failed

The real reasons why the VCF system failed?

  Corporate budgeting in terms of paying for it

1. Define the terms allocation, chargeback and corporate budgeting in terms of paying for IT. Give a business advantage and a disadvantage of each. 2.. Briefly define TCO as a way to cost an IT purchase. What are TCO's benefits?

  Specializing in the promotion of actors

Cassel Scout Productions is a talent agency specializing in the promotion of actors, singers, and dancers. The company has a database to house both agent and performer data plus performance Assignments, but there is difficulty in gathering informa..

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