Give anO(n2)-time algorithm for the previous problem.
Given a stringXof lengthnand a stringYof lengthm, describe anO(n+
m)-time algorithm for finding the longest prefix ofXthat is a suffix ofY.
Give an efficient algorithm for deleting a string from a standard trie and
analyze its running time.
Give an efficient algorithm for deleting a string from a compressed trie
and analyze its running time.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here