You have a cable with 3 wires inside.

If they were color coded like this, it would be easy to tell which wires are which.

However, suppose they **aren't** color coded. If all you have is a potentiometer, which can detect if two ends of a wire are connected or not, what is the minimum number of times you would need to hook up the potentiometer in order to guarantee the determination of which wires on one end connect to which wires on the other end?

**Clarification:** No matter what the result of your measurements (i.e. assuming the worst case scenario), what is the minimum number of measurements that guarantees that you can determine the connectivity of all three wires?