1. For large arrays, and in the worst case, is a sequential search faster than a binary search? Explain.
2. Show that any polynomial f(x) = cnxn+ cn-1xn-1+…+c1x+c0is O(xn).
3. Show that for all constants a, b > 1, f ( n ) is O(log a n ) if and only if f ( n ) is O(log b n ). Thus, you can omit the base when you write O(log n ). Hint: Use the identity log a n 5 log b n / log b a for all constants a, b > 1.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here