L'Hopital's Rule
Read this section to learn how to use and apply L'Hopital's Rule. Work through practice problems 1-3.
Which Function Grows Faster
Sometimes we want to compare the asymptotic behavior of two systems or functions for large values of , and l'Hô pital's Rule can be a useful tool. For example, if we have two different algorithms for sorting names, and each algorithm takes longer and longer to sort larger collections of names, we may want to know which algorithm will accomplish the task more efficiently for really large collections of names.
Example 4: Algorithm A requires steps to sort names and algorithm requires steps. Which algorithm will be better for sorting very large collections of names?
Solution: We can compare the ratio of the number of steps each algorithm requires, , and then take the limit of this ratio as n grows arbitrarily large: . If this limit is infinite, we say that "grows faster" than . If the limit is , we say that grows faster than . Since and both grow arbitrarily large when is large, we can algebraically simplify the ratio to and then use L'Hopital's Rule:
grows faster than so algorithm requires fewer steps for really large sorts.
Practice 3: Algorithm requires operations to find the shortest path connecting towns, algorithm requires operations for the same task, and algorithm requires operations. Which algorithm is best for finding the shortest path connecting a very large number of towns? Worst?