Let f be a function that describes the number of steps required to carry out an
ID: 3012515 • Letter: L
Question
Let f be a function that describes the number of steps required to carry out an algorithm. The number of items processed is represented by n. For the given function, describe what happens if the number of items (n) is doubled.
f (n) = 10n2
The number of steps is doubled.
The number of steps is quadrupled.
The number of steps is multiplied by 20.
The number of steps stays the same.
The number of steps is doubled.
The number of steps is quadrupled.
The number of steps is multiplied by 20.
The number of steps stays the same.
Explanation / Answer
The number of steps is quadrupled.
f (n) = 10n2
If n is doubled, n becomes 2n
So,
f(2n) = 10*(2n)^2 = 40n2 or 4 times.
Hence, answer is B, The no. of steps is quadrapuled.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.