Two alternative packages and are available for processing a database having records. Package requires time units and package requires time units to process records. What is the smallest value of for which package will be preferred over ?
View worked solution
Answer: C
We are given the database size .
The time required by the two packages to process records is:
- Package A:
- Package B:
Package is preferred over Package when it takes strictly less time, i.e.,
Substitute the expressions for and :
Since , we can divide both sides by :
Now, substitute into the inequality:
Let us test the integer values of starting from the options:
- For :
- For :
Thus, the smallest integer value of for which Package is preferred over Package is .
Free practice · Your answers on this page are not saved.
