If you are given several points and are asked to connect all of them so that all of them get connected and you require minimum number of wire, then you can do that by Prim's Algorithm.

Here I have demonstrated the same where you can move the points and it will show you how you can connect them while minimizing the amount of wire required.

Leave a comment

Log in with itch.io to leave a comment.