Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1)What is the largest n for which one can solve a certain problem within an hour using an algorithm that requires f(n) bit operations, where

1)What is the largest n for which one can solve a certain problem within an hour using an algorithm that requires f(n) bit operations, where each bit operation is carried out in 10-7 seconds, where f(n) = 22n?

2)What is the effect in the time required to solve a problem when you double the size of the input from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem with input size n is f(n) = n3?

A.

multiplies the time by 6.

B.

multiplies the time by 3.

C.

multiplies the time by 8.

D.

multiplies the time by 2.

E.

multiplies the time by 2 and adds 2n milliseconds.

F.

adds 100 milliseconds.

G.

multiplies the time by 4.

H.

adds a negligible (<< 1) constant number of milliseconds.

I.

multiplies the time by 2n.

J.

multiplies the time by 7.

K.

multiplies the time by 5.

3)What is the effect in the time required to solve a problem when you double the size of the input from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem with input size n is f(n) = log n?

A.

multiplies the time by 2.

B.

multiplies the time by 7.

C.

multiplies the time by 3.

D.

adds a negligible (<< 1) constant number of milliseconds.

E.

multiplies the time by 4.

F.

adds 1 millisecond.

G.

multiplies the time by 2 and adds 2n milliseconds.

H.

multiplies the time by 5.

I.

multiplies the time by 2n.

J.

multiplies the time by 6.

K.

adds 100 milliseconds

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

11. Explain what dreams are, why we have them, and what they mean.

Answered: 1 week ago