Re:The xkcd survey
by kachnuv_ocasek on Wednesday September 02, 2015 @12:01PM
(#10160134)
Yes, I pair them after washing, and curl them after drying. Putting them together makes searching O(n) instead of O(n^2) if you have a particular style in mind.
Of course, homogeneity makes this even faster, but you lose the benefit of choice, variability and fashionableness. Quid pro quo.
Re:The xkcd survey
by kenbellows on Wednesday September 02, 2015 @01:09PM
(#10160608)
I think his point was that if you're seeking out all the pairs when you curl them together, you're still spending unnecessary time and effort matching socks, just ahead of time instead of in the moment when you need socks
Re:The xkcd survey
by brianwawok on Wednesday September 02, 2015 @01:53PM
(#10160898)
Exactly he does an O(N^2) Pair followed by a later O(N) search.
Why not do a O(1) Pair folloed by an O(1) Search.
Intuitively I'd say a human pairing socks is far better than O(n2) because finding something that matches a given sock is close to O(1) on small sets.
Of course, there's an enlightening stackoverflow question on this: http://stackoverflow.com/q/14415881/220347
Finally, my graduate-level algorithms class comes in handy in real life.
Re:The xkcd survey
by Gravityloss on Wednesday September 02, 2015 @11:53AM
(#10160071)
but if you curl them after drying, you have a much smaller pool to find the pair from, the just washed socks (which will be the socks you use the most anyway). So it's faster that way, than to mix them all up and only then match.
My wife has about twenty pairs of socks, and no more than a few of the pairs are the same variety. It's like some masochistic combinatorics problem every single time I fold socks. My kid and I literally were playing "sock go fish" a few times to get him to help (except ... I was more interested in the pairing, rather than taking turns. Doh.)
Laundry-folding happiness is increased significantly when I don't have to play "Find-the-mate" every time I pick up a sock (which applies to my kids' socks as well, since they are all patterned, but thankfully my son likes wearing party-colored socks, so I only need to match on shape).
I have two "vintages" of socks -- the old ones that I hate, and the newer ones that I prefer, roughly equally divided. I would donate + re-buy if I had more than two flavors of socks.
I pretend I am a computer doing a matching problem. I have a buffer of unmatched socks that I compare each sock as I pull it out of the pile, and if unmatched I add to the buffer. Kinda fun.
Re:The xkcd survey
by thumbtackthief on Wednesday September 02, 2015 @12:35PM
(#10160398)
Sock go-fish is _genius_
If you have many different styles, you need to go hunt around and find matches. Curl or not just delays the matching problem, it does not solve it.
Having all the socks be the same makes matching an O(1) problem.