July 2018
Beginner
202 pages
5h 4m
English
Scenario
We have been asked to develop a timing table using an input size of 2, 10, 30, and 50 for an exponential algorithm of O(2n). Assume an operation time of 0.5 ms and that the algorithm only performs one operation.
Aim
To discover how badly exponential algorithms scale.
Steps for Completion
Output
The results may be as follows:
| Input Size (n) | Time : 1 Operations O(2n) |
| 2 | 2 milliseconds |
| 10 | 512 milliseconds |
| 30 | 6.2 days |
| 50 | 17838 years |
In this section, we have compared different types of algorithmic ...
Read now
Unlock full access