in reply to Re^3: The Perl 6 Coding Contest 2012
in thread The Perl 6 Coding Contest 2012
0 _ _ 3 \ / 1 _ \ / _ 4 \ \/ / 2 __\/\/__ 2 /\/\ 3 _/ /\ \_ 0 / \ 4 _/ \_ 1
That's not an option. Crossing have to be pairwise, I.e if 0 crosses over to 1, 1 must also cross over to 0. So you have to wire it as
0 _____ _____ 3 \/ 1 ___ /\ ___ 4 \/ \/ 2 _ /\ /\ _ 2 \/ \/ \/ 3 _/\ /\ /\_ 0 \/ \/ 4 ___/\__/\___ 1
Think of it as physical wires, and all you can do is to exchange two adjacent wires.
I'll point masak to this thread so he can object if I wrote something wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: The Perl 6 Coding Contest 2012
by BrowserUk (Patriarch) on Dec 25, 2012 at 12:11 UTC | |
by moritz (Cardinal) on Dec 25, 2012 at 13:37 UTC | |
by BrowserUk (Patriarch) on Dec 25, 2012 at 14:05 UTC | |
by BrowserUk (Patriarch) on Dec 25, 2012 at 18:15 UTC |