Answer:
An input size of N = 128 makes the algorithm run for 14 milliseconds
Step-by-step explanation:
O(log2N)
This means that the running time for an algorithm of length N is given by:
![F(N) = clog_2(N)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/7a7rkryj65506uznz5uwfyocbmh5rlippt.png)
In which C is a constant.
Runs for 10 milliseconds when the input size (N) is 32.
This means that
![F(32) = 10](https://img.qammunity.org/2022/formulas/computers-and-technology/college/g6k5i6gdlt47de76oh99p83vysz3oh4ze2.png)
So
![F(N) = clog_2(N)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/7a7rkryj65506uznz5uwfyocbmh5rlippt.png)
![10 = clog_2(32)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/13j135q4xj16r3s37tl8ozm1dpx2elwhpl.png)
Since
![2^5 = 32, log_2(32) = 5](https://img.qammunity.org/2022/formulas/computers-and-technology/college/bcq278hi04qi93e9e2gshivmh7ibvvqu4h.png)
Then
![5c = 10](https://img.qammunity.org/2022/formulas/computers-and-technology/college/cpvs9q6mkv6jgbbkqq2rv25hflwyeoylls.png)
![c = (10)/(5)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/85kkt667mi6lyd44ic4oaisspqnsj3gntk.png)
![c = 2](https://img.qammunity.org/2022/formulas/mathematics/high-school/r6o144ghcjsvxiqve8448ugyvpeyxiyvri.png)
Thus:
![F(N) = 2log_2(N)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/6mhmagrf08196o4fmt951w4gm7n9345w29.png)
What input size makes the algorithm run for 14 milliseconds
N for which
. So
![F(N) = 2log_2(N)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/6mhmagrf08196o4fmt951w4gm7n9345w29.png)
![14 = 2log_2(N)](https://img.qammunity.org/2022/formulas/computers-and-technology/college/6p6pd32dpeocodtvwohisb4c5dgiexz8po.png)
![log_2(N) = 7](https://img.qammunity.org/2022/formulas/computers-and-technology/college/vardcde7f4gqum40m2luturems39zpxnic.png)
![2^(log_2(N)) = 2^7](https://img.qammunity.org/2022/formulas/computers-and-technology/college/gww263et3keg5bfb6ik4u7kwszu8ab9jp3.png)
![N = 128](https://img.qammunity.org/2022/formulas/computers-and-technology/college/k19yo7obukir6x5qljgh46zg1cv9tt1wg2.png)
An input size of N = 128 makes the algorithm run for 14 milliseconds