Purchase Solution

Asymptotic Analysis and Fibonacci Number

Not what you're looking for?

Ask Custom Question

Q.1 For a number x, with 1< x < p, the number x^n mod p can be computed with at most 2log2 n modulo p multiplications.

Asymptotic notation questions
Q.2 2^(2n) = O(2^n)
Q.3 log*n = O(log*(log n))

Q.4 The sqrt n th Fibonacci number can be computed and written in O(log n) time

Please see the attached file for the fully formatted problems.

The answer should include TRUE or FALSE and an explanation?

Attachments
Purchase this Solution

Solution Summary

Asymptotic Analysis and Fibonacci Number are investigated.

Solution Preview

Please see the attached file for the complete solution.
Thanks for using BrainMass.
Q.1

For a number x, with 1 x p, the number can be computed with at most
modulo p multiplications.

It is true. By Modular Arithmetic, we know that
mod p) (b mod p)] mod p
mod ] mod p
So, when we compute , it suffices to write n in the form of

Since any positive integer can have a binary code ...

Solution provided by:
Education
  • BSc , Wuhan Univ. China
  • MA, Shandong Univ.
Recent Feedback
  • "Your solution, looks excellent. I recognize things from previous chapters. I have seen the standard deviation formula you used to get 5.154. I do understand the Central Limit Theorem needs the sample size (n) to be greater than 30, we have 100. I do understand the sample mean(s) of the population will follow a normal distribution, and that CLT states the sample mean of population is the population (mean), we have 143.74. But when and WHY do we use the standard deviation formula where you got 5.154. WHEN & Why use standard deviation of the sample mean. I don't understand, why don't we simply use the "100" I understand that standard deviation is the square root of variance. I do understand that the variance is the square of the differences of each sample data value minus the mean. But somehow, why not use 100, why use standard deviation of sample mean? Please help explain."
  • "excellent work"
  • "Thank you so much for all of your help!!! I will be posting another assignment. Please let me know (once posted), if the credits I'm offering is enough or you ! Thanks again!"
  • "Thank you"
  • "Thank you very much for your valuable time and assistance!"
Purchase this Solution


Free BrainMass Quizzes
Solving quadratic inequalities

This quiz test you on how well you are familiar with solving quadratic inequalities.

Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.

Exponential Expressions

In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.

Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts

Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.