Describe an efficient algorithm for the extremal problem, defined below. Your algorithm should be described in high-level terms, using pseudo-code. You may use as a subroutine (and without explanation) any algorithm we have discussed in this course.
What is the running time of your algorithm? (Give enough detail to justify your answer.)
Compare hash tables with AVL trees for representing sets and mappings. In particular, discuss their relative execution times for the Map operations get(k), put(k,v), and remove(k), for the priority operations min() and removeMin(), and for listing the elements of the set in order. Include any other considerations that you deem to be relevant and significant.