×
×

# How much time does an algorithm take to solve a problem of

ISBN: 9780073383095 37

## Solution for problem 18E Chapter 3.3

Discrete Mathematics and Its Applications | 7th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants

Discrete Mathematics and Its Applications | 7th Edition

4 5 1 309 Reviews
12
5
Problem 18E

How much time does an algorithm take to solve a problem of size n if this algorithm uses 2n2 + 2n operations, each requiring 10?9 seconds, with these values of n?a) 10________________b) 20________________c) 50________________d) 100

Step-by-Step Solution:
Step 1 of 3

Solution:Step1Given thatAlgorithm uses 2n2 + 2n operations, each requiring 109 seconds.Step2To find We have to find how much time does an algorithm take to solve a problem of size n.Step3By using the given So, time taken by an algorithm to solve a problem of size n is a) 10When n =10Time taken by an algorithm to solve a problem of size 10 is () = = 1224 = 1.224Therefore, Time taken by an algorithm to solve a problem of size 10 is 1.224.Step4b) 20When n =20Time taken by an algorithm...

Step 2 of 3

Step 3 of 3

#### Related chapters

Unlock Textbook Solution