The Socks-of-Justification Algorithm
This algorithm is a proprietary system developed by Dr. Reginald P. Bottomsworth for the sole purpose of justifying the purchase of new socks.
It takes into account the following variables:
- Number of socks already owned
- Average lifespan of existing socks
- Desire for novelty colors
- Availability of matching socks in drawer