Categories

## The electrician problem

You’re an electrician working at a mountain. There are 8 wires running from one side of the mountain to the other. The problem is that the wires are not labeled, so you just see 8 wire ends on each side of the mountain. Your job is to match these ends (say, by labeling the two ends of each
wire in the same way).
In order to figure out the matching, you can twist together wire ends, thus electrically connecting the wires. You can twist as many wire ends as you want, into as many clusters as you want, at the side of the mountain where you happen to be at the time. You can also untwist the wire ends at the side of the mountain where you’re at. You are equipped with an Ohm meter, which lets you test only the connectivity of any pair of wires (not resistance).
You are not charged [no pun intended] for twisting, untwisting, and using the Ohm meter. You are only charged for each helicopter ride you make from one side of the mountain to the other. What is the best way to match the wires?