The Complexity of Algorithms: Selected Exercises

The Complexity of Algorithms: Selected Exercises
1 / 1
The Complexity of Algorithms: Selected Exercises - slide 1 of 13 The Complexity of Algorithms: Selected Exercises - slide 2 of 13 The Complexity of Algorithms: Selected Exercises - slide 3 of 13 The Complexity of Algorithms: Selected Exercises - slide 4 of 13 The Complexity of Algorithms: Selected Exercises - slide 5 of 13 The Complexity of Algorithms: Selected Exercises - slide 6 of 13 The Complexity of Algorithms: Selected Exercises - slide 7 of 13 The Complexity of Algorithms: Selected Exercises - slide 8 of 13 The Complexity of Algorithms: Selected Exercises - slide 9 of 13 The Complexity of Algorithms: Selected Exercises - slide 10 of 13 The Complexity of Algorithms: Selected Exercises - slide 11 of 13 The Complexity of Algorithms: Selected Exercises - slide 12 of 13 The Complexity of Algorithms: Selected Exercises - slide 13 of 13
The Complexity of Algorithms: Selected Exercises Goal: Introduce computational complexity analysis. Copyright Peter Cappello 2 2 Exercise 10 How much time does an algorithm take for a problem of size n, if it uses 2n2 2n bit operations,

Related Topics

Download this presentation From Below

"The Complexity of Algorithms: Selected Exercises" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
The Complexity of Algorithms: Selected Exercises Goal: Introduce computational complexity analysis.<br>
02
Copyright © Peter Cappello 2 2 Exercise 10 How much time does an algorithm take for a problem of size n, if it uses 2n2 + 2n bit operations, each taking 10-9 second?
n = 10: ( 2(10)2 + 210 )10-9 sec ≈ 1.224 *10-6 sec.<br>
03
3 Copyright © Peter Cappello 3 Exercise 10 How much time does an algorithm take for a problem of size n, if it uses 2n2 + 2n bit operations, each taking 10-9 second?
n = 10: ( 2(10)2 + 210 )10-9 sec ≈ 1.224 *10-6 sec.
n = 20: ( 2(20)2 + 220 )10-9 sec ≈ 1.05 *10-3 sec.<br>