1. How would you change the insertion sort algorithm to sort in descending order?
2. Suppose a given algorithm requires a total of n x (n + 4) + 1 major operations. What is the growth rate of the algorithm?
3. What steps does the linear search algorithm take in locating “car” in the following array of three-letter words? Dog bat cat pot car dot big
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here