Imagine you have a square with a grid, and you want to make a donut, to do so you connect the ends, then the circles, unfortunately, this causes the grid to stretch and contract, making distances unequal,
We solve this by making a torus in the 4th dimension, here every unit square on that grid is perserved, with the added quality of zero gaussian curvature,
This is a projection of that object, into 3 dimensions, with time as the fourth dimension, since we use time as a way to show the rotation in 4d,
The disparity is the surface of the clifford torus, while the embedded circle is the sorted arrangement
Timeās not the fourth dimension in this case. The Clifford torus is a 2D surface with a natural home in 4D space. This is projected down into 3D, which (as you pointed out) is why it appears to be curved.
Okay. I maybe could read this a dozen times and get a little more each time. So in that way, it's a great explanation. Why/how is a sort method mapped to a square or a torus?
28
u/BogaMoge 1d ago
It's beautiful! š could anyone explain, or point me to somewhere that could explain, what I'm seeing?
25
u/589ca35e1590b 1d ago
One does not simply visualize 4D
5
u/VastEye1452 1d ago
I understood merge sort until the fourth dimension showed up. Now I'm just watching pretty colors.
1
u/GuildensternLives 1d ago
Is this just the audio from this sorting algorithm video put roughly on top of this not-quite-4D torus thing?
3
u/AccomplishedCow8843 1d ago
And what about 5D?
2
u/WeAllJustWantToLive 19h ago
1
u/Dainiad 1d ago
Sound like Scorched Earth with PC speaker.
1
u/HasFiveVowels 1d ago
I demand to see the other algorithms. Particularly interested in quicksort and radix sort
1
u/Dazzling-Remote754 11h ago
Bogosort when
1
u/Danilo-11 9h ago
In math, you can have 1000 dimensions if you want to