You have N number of metallic spikes planted into the ground and all arrange in a circle with equal distances between each neighboring spikes (in other words a perfect polygon) You have a string with you that you need to pass around all the spikes creating a net that has every spike connected to every other spike with minimum number of repeated connections...
In other words: connect all dots without going over the line...
Write an algorithm to do it (you can write it in normal speech, not necessarily a comp language)
(Note: actually the dots don't have to be in a circle, they can be scattered anywhere you want so long as no 3 dots are in a straight line)
Question
Guest
Got this idea from riddles in other threads:
You have N number of metallic spikes planted into the ground and all arrange in a circle with equal distances between each neighboring spikes (in other words a perfect polygon) You have a string with you that you need to pass around all the spikes creating a net that has every spike connected to every other spike with minimum number of repeated connections...
In other words: connect all dots without going over the line...
Write an algorithm to do it (you can write it in normal speech, not necessarily a comp language)
(Note: actually the dots don't have to be in a circle, they can be scattered anywhere you want so long as no 3 dots are in a straight line)
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.