MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the algorithm that solves problems of size n by recursively solving two sub problems of size n - 1 and then combining the solutions in constant time. Then the running time of the algorithm would be: |
| A. | O(2n) |
| B. | O(logn) |
| C. | O(nlogn) |
| D. | O(n2) |
| Answer» B. O(logn) | |