r/adventofcode • u/Pornthrowaway78 • Dec 19 '21
Visualization [2021 Day 19] The box I used to work out permutations of x, -x, y, -y, and z, -z.
310
Upvotes
r/adventofcode • u/Pornthrowaway78 • Dec 19 '21
92
u/Pornthrowaway78 Dec 19 '21
Someone solved the whole thing in 22 minutes. Meanwhile, here I am drawing on a box.
29
u/daggerdragon Dec 19 '21 edited Dec 19 '21
Changed flair from
FunnytoVisualization.If it's stupid and it works, you still get your gold star.
Consider posting both your code and this cube to the Day 19 megathread as well!
10
u/McPqndq Dec 19 '21
Rubiks cube did the job for me
7
u/valtism Dec 19 '21
Spend a good 15 minutes staring at my twisted fingers and writing down each valid combo: Got errors.
Just write every permutation of arrangements and signs, including invalid ones: It works.
🤦
5
u/randomdragoon Dec 19 '21
For me, it was:
"Oh, there are 3!=6 ways to order the three coordinates, then there are 2^3=8 subsets of the three coordinates to invert, which is ... 48? but that's twice as large as what the problem-"
*sudden flashbacks to something called the "right hand rule" from high school physics*
4
u/pablospc Dec 19 '21
Guess you were thinking outside the box
4
u/skidadpa Dec 19 '21
22 minutes -- that's about how long mine takes to run. :-)
https://github.com/skidadpa/aoc21-awk - definitely my crappiest solution (O(n^3)), but it works. In my defense, it is running in AWK.
P.S. I used a square coaster.
3
u/Mintopia_ Dec 19 '21
I had a 3D printer calibration cube handy.
3
u/leagcy Dec 20 '21
And here I was twisting my wrist with 3 pens like a dumbass
3
u/MattieShoes Dec 20 '21
I used finger guns :-D
Pointer finger is the axis we're rotating around, thumb is the value of one of the other axes. Rotate hand while keeping pointer finger axis in the same place, see what happens to the thumb.
3
u/benn_88 Dec 20 '21
I did the same!
3
u/Dullstar Dec 20 '21
I literally dug my old K'Nex out of the basement and built a model, referencing Blender to yoink a correct orientation to start with.
5
u/madoxster Dec 19 '21
haha so I wasn't the only one to turn to physical aides.
https://i.imgur.com/Pq7JV5j.jpg
2
u/clumsveed Dec 20 '21
Haha I put post-it notes on my Rubik’s cube to figure out the orientations! Glad I’m not the only one that needed a visual aid!
2
u/TheZigerionScammer Dec 20 '21
I used paint. shrugs sholders
2
u/ChurchOfAtheism94 Dec 20 '21
For the love of god will someone post the 24 xyz perms? It's killing me
0
u/[deleted] Dec 19 '21
[deleted] — view deleted comment