http://www.blacksocks.com/g3.cms/lang/us/s_page/79110/s_name...
This particular problem appears to be close to being solved for me. I don't see a value in subscription, but reliable source of getting same high quality (providing test socks are going to high-quality) socks of the same color/design in bundles repeatedly is definitely a win.
Unlike Jobs, nobody notices.
And that with all identical pairs, I assert the solution is O(n), since there is a chance that you will have to iterate through all of your socks to find one with no holes/is clean. However, I think the latter case is Omega(1). Not quite so sure about the first one.
http://www.mail-archive.com/kragen-tol@canonical.org/msg0008...
Again, with ordering, searching drops to O(log n)
Now that I think of it, the mixed sock problem can actually be worse than O(n^2). For instance, if I decide that I want to wear my Marvin the Martian socks, and can only find one in the sock drawer, then it's a big problem. Look in the other drawers. Look under the bed. Look in the dryer. Repeat. Repeat. Until the other one is given up for lost.