Suppose that it takes 0.004 seconds to run a program on a test data set of size n = 200. Assume that the number of items in the actual data set is 4000. What would be the expected run time (show your work) if the program is applied to the actual data set and the underlying algorithm is: a) 0(n) b) 0(n2)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.4: Arithmetic Operations
Problem 6E
icon
Related questions
Question
  1. Suppose that it takes 0.004 seconds to run a program on a test data set of size n = 200. Assume that the number of items in the actual data set is 4000. What would be the expected run time (show your work) if the program is applied to the actual data set and the underlying algorithm is:

a) 0(n)

b) 0(n2)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr