What is the largest n for which one can solve within a day using an algorithm that requires f(n) bit operations, where each bit operation is carried out in 10−11 seconds, with these functions f(n)?
a) log n
b) 1000n
c) n2
d) l000n2
e) n3
f) 2n
Solution:
Step 1:
In this problem we need to find the largest n for which can solve with in one second problem using an algorithm requires f(n) bit operations, where each bit operation is carried out second with these functions f(n).
We know that , in a day there are approximately seconds.So , within a day, the total number of operations is equal to
, since
.
So, the operation bit per second is