LetLbe a list ofnitems maintained according to the move-to-front heuristic.
Describe a series ofO(n) accesses that will reverseL.
Suppose we have ann-element listLmaintained according to the moveto-
front heuristic. Describe a sequence ofn2accesses that is guaranteed
to take ∑(n3) time to perform onL.
Implement a clear( ) method for the FavoritesList class that returns the list
to empty.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here