Everytime I sit down at the computer, I pull out my earbuds to plug into the harddrive so I can listen to music while I post things on PF.com.....among other things :) The problem is, everytime I pull my earbuds out of my pocket, it's all tangled in a mess. My method is, I start with the plug-end and pull that out of the most simple-looking loop, then I pick the next most simple-looking loop and pull the plug-end out of that, and so forth. I was wondering: is this the best method? Is there a mathematics that defines this sort of problem and solves it? Is there some sort of algorithm for the most efficient method of untangling knots, wires, and so forth?