Connecting three black boxes to three red boxes without crossing lines

15 replies · 3K views · last reply
Basimalasi
Messages
45
Reaction score
0
Hello computer science people,

riddle me this... you have three black boxes and three red boxes. You want to connect each black box with the three red boxes without making the lines interact with each other. can you do it ? or is it unsolvable ?

Like this :


Three diagrams of three black boxes on top and three red boxes below, with arrows connecting them; the lines cross in the top diagram, and the bottom two show attempted connections with some lines routed around the outside.
 
I've seen this many times in the past. To the best of my recollection, it is unsolvable (in two dimensions).
 
Is this possible ? there is no cut.
 
Attachments
  • Diagram of three black oval loops in a row with a blue line passing horizontally through them, connecting two red circles at the left and right ends, and a third red circle above the middle loop joined by three blue lines to the tops of the three loops.
    physics.png
    1.2 KB · Views: 555
Like this?
 
Attachments
  • Diagram of three black rectangles across the top and three red rectangles across the bottom, joined by thin black lines that connect each top box to a bottom box without crossing.
    Connecting Boxes.jpg
    6.8 KB · Views: 553
skeptic2 said:
Like this?
I don't think this meets the requirements of a direct link between each red box with each black box, and vice versa. This might not have been stated in the OP but I believe that is what is implied.
 
Basimalasi said:
Hello computer science people,

riddle me this... you have three black boxes and three red boxes. You want to connect each black box with the three red boxes without making the lines interact with each other. can you do it ? or is it unsolvable ?
Why would you want to use software to solve this puzzle?
 
Mark44 said:
Why would you want to use software to solve this puzzle?

Try designing a complex multi-layer printed circuit board without using a computer track routing algorithm. :smile:
 
Mark44 said:
Why would you want to use software to solve this puzzle?

because i think its unsolvable
 
solving this riddle is like guessing a 6-charechters password..you have to have an algorithm that will test all the possible paths the 9 arrows are going to take from the black boxes to the red boxes without interacting
 
Medicol said:
Is this possible ? there is no cut.

you can't make the lines go "through" the red boxes.

3 arrows from the first black box to all red boxes
3 arrows from the second black box to all red boxes
3 arrows from the third black box to all red boxes

without no interaction between the lines
 
I know this stupid of me and a waste of your time guys but I can't be satisfied without an algorithm that would test all the possibilities
 
Code:
while there_exist_more_possibilities(); do test_next_possibility();

I don't have much time to waste, so I am not going much deeper. That's your algorithm, just fill in details.
 
Basimalasi said:
I know this stupid of me and a waste of your time guys but I can't be satisfied without an algorithm that would test all the possibilities
I understand. You trust computers more than people.
Here's a more detailed algorithm. In fact, it's actual C code:
Code:
//  For an explanation of why this algorithm works, see:
//    http://mathforum.org/dr.math/faq/faq.3utilities.html
#include <stdio.h>
void main(void) {
printf(“Results from analysis of Red/Black box riddle: No solutions exist!\n");
}
Try it out and let me know if it finds anything.
 
  • Like
Likes   Reactions: 1 person