Question: Question 2 : 2 points We need a system to compare algorithms and determine which is faster. Most importantly, we care about how algorithms scale.
Question : points
We need a system to compare algorithms and determine which is faster.
Most importantly, we care about how algorithms scale. If we double the size of the input, will the
runtime double or quadruple. If we need to chose between two algorithms, the one that doubles will
perform better then the one that quadruples.
To talk about how algorithms scale with large inputs, we need to use limits Some important rules of
limits are given below. The limit determines what value the function approaches as the size of the input
increases towards infty
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
