Algorithm B requires exactly C (n) = (log₂ n)² basic operations, where is the input size. Suppose that on your current l
Posted: Mon Jun 06, 2022 5:33 pm
Algorithm B requires exactly C (n) = (log₂ n)² basic operations, where is the input size. Suppose that on your current laptop, the algorithm takes t seconds to run on an input size ng ('S' stands for "slow"). Then the same algorithm will take t seconds for an input size ne on a laptop that is 256x faster than your current one ('F' stands for "fast"). Choose the correct statement below. nF = n² nF = n² 16 nF = ns O nF = ns 256 nF = 2ns nF = 4ns O nF = 16ns nF 256ns O None of the above is correct.