Capillary condensation, invasion percolation, hysteresis, and discrete memory.