Hypothesis Selection with Memory Constraints