For Algorithms, a Little Memory Outweighs a Lot of Time