Birds on a Wire Revisited
Birds on a Wire Revisited
Some birds are sitting at random places on a wire. If bird B is bird A's closest neighbor and bird A is bird B's closest neighbor, then A and B are mutual nearest neighbors and form a mutual neighbor pair.
This Demonstration simulates birds on a wire and shows all mutual neighbor pairs with different colors. We also show estimated probabilities for the number of birds that are a part of a mutual neighbor pair. Furthermore, we generalize the problem to two and three dimensions.