Mathematics Homework Solutions
Problem
#162405

Complexity of algorithms

How much time does an algorithm take to solve a problem of size n if this algorithm uses 2n^2 + 2^n bit operations, each requiring  10^-9  second, with these values of n?
i) 10
ii) 20
iii) 50
iv) 100

I need help with a question, the attachment contains the question as well as what I think is the answer.  Could someone please tell me if my answer looks right. If it is  not right  what steps should be taken to solve the problem.

thanks

Attached file(s):
Attachments
Complexity of algorithms.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

Complexity of algorithms.doc
second, with these values of n?

10

20

50

100


Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$3.99)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Research Works for Satellite Route Optimization. - I have researched on monotonic algorithm and genetic algorithm. I would like to know what other algorithms are used in the past for this problem. And what are the pros and cons of them? Why do we st ...
  • Algorithms and Euler's Phi Function - Prob.1 Algorithms and Euler's phi function Let I= { 4m+10nlm, n E Z} I= { 9m+10nlm, n E Z} I= { 15m+51nLm, n E Z} Use the Euclidean Algorithm. Let a>0 and b>0 be integers to find an ...
  • Time complexity of an algorithm in theta notation - How much time does the following algorithm require as a function of n? Express your answer in "theta notation" in the simplest possible form. Show all work! l = 0 for i = 1 to n for j = 1 t ...
  • Optimization : Standard Conjugate Gradient Algorithm - Please see the attached file for the fully formatted problems. We consider the function J defined as and . 1) Prove mathematically that K is strictly convex. 2) Descibe the two algorit ...
  • Descrete Math multiple choice - Note: Please see attachment for full details. 3. A grammar that has no restrictions on production is called a: A) phrase-structure grammar. B) context-sensitive grammar. C) context-free gr ...
Browse