When dealing with growth functions and time complexity, is finding the exact efficiency for a specific value as simple as plugging in the value and doing the math? Or do you only have to plug in the value for the order of the growth function? Whichever is lower is most efficient?
For example, take the following two growth functions: 5n^2 + n and 10n + 7. If I wanted to determine the efficiency at n = 50, do I just plug in the value old school algebra style? The first value would be 12550 and the second value would be 507, so the second growth function with order O
would be more efficient? Or, like I stated earlier, can I just plug in the value for the part of the function that determines the order to find the most efficient?
This algorithm analysis stuff is torturing me. Any nudging in the correct direction would be greatly appreciated.
For example, take the following two growth functions: 5n^2 + n and 10n + 7. If I wanted to determine the efficiency at n = 50, do I just plug in the value old school algebra style? The first value would be 12550 and the second value would be 507, so the second growth function with order O
This algorithm analysis stuff is torturing me. Any nudging in the correct direction would be greatly appreciated.