Тёмный

Langton's Ant 3D 

Andrew Vasenev
Подписаться 138
Просмотров 50 тыс.
50% 1

Langton's Ant is a two-dimensional cellular automaton with very simple rules, invented by Chris Langton.
The principle of its work is that a certain "ant" paints the current cell in a certain color and rotates 90 degrees according to a predetermined algorithm. The fill color and direction of rotation depend on the color of the current cell.
After a certain amount of seemingly chaotic movements, the "ant" begins to build an endlessly repeating road.
This is an implementation of this automaton for three-dimensional space.
What is Langton's Ant:
• Langton's Ant .
Download "Langton's Ant 3D" application for free on Windows, MacOS and Linux:
drive.google.c...
or
yadi.sk/d/APsD...

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 132   
@Dangorr36
@Dangorr36 4 года назад
What interests me the most after watching this is that no matter how many dimensions there will be the Langton's ant it will always eventually end up making a highway or an infinite pattern no matter the different rules you apply to it. It's just amazing
@chrisprice8112
@chrisprice8112 4 года назад
This is actually not true! Or at least, it's not known, or even necessarily believed to be - there are plenty of rulesets that, even after many millions of iterations, do not enter any stable "highway" or growth pattern, they're just not shown here. It's unknown whether they will ever reach a pattern state or continue to grow chaotically forever. It may be possible to prove either way mathematically, but not a whole lot of work has been done on the subject because langton's ant (and related automata) is a niche curiosity of pure maths with no real application. I still find it super fascinating though and hope to see some more progress at some point.
@andrewvasenev7703
@andrewvasenev7703 4 года назад
I agree)
@andrewvasenev7703
@andrewvasenev7703 4 года назад
@@chrisprice8112 Dangerboy 3624 said: "always eventually end up making a highway OR an infinite pattern". Of course, an ant doesn't always build a highway. I took this comment as a surprise at the independence of the ant's work from chosen dimension)
@matthewe3813
@matthewe3813 4 года назад
@@chrisprice8112 cellular automata have been used in image programs
@yukisohma19
@yukisohma19 3 года назад
LR doesn't highway, there are many configs that don't
@vii-ka
@vii-ka 4 года назад
Everybody gangsta till Langton's Ant griefs your 2b2t Minecraft base
@powerhouseofthecell9758
@powerhouseofthecell9758 4 года назад
I recognize that ruleset. See you soon.
@apersononlineyes6554
@apersononlineyes6554 4 года назад
*The oldest anarchy server in minecraft*
@thepotatotaxi2430
@thepotatotaxi2430 3 года назад
@@apersononlineyes6554 *f i t m c*
@iamsushi1056
@iamsushi1056 2 года назад
I love how both the simulation speed and the camera zooming out scale together
@gal749
@gal749 4 года назад
Cool! I don't care that there's like a thousand more people that did this, that's just so dang satisfying:) How is this video not viral yet?
@andrewvasenev7703
@andrewvasenev7703 4 года назад
Thanks :)
@unluckypanda5448
@unluckypanda5448 3 года назад
youtube wants to put this in everyones recommended in 5 years
@amr0733
@amr0733 8 месяцев назад
​@@unluckypanda5448you are correct
@sebbes333
@sebbes333 3 года назад
*@Andrew Vasenev* 8:52 This camera movement was great to determine the depth in this video, it would be good with a continuous movement like that around the blocks.
@kariduanimations
@kariduanimations 3 года назад
Langton’s Ant and other things like it have always fascinated me So, naturally I was very happy to see this video in my recommended It’s just so cool lol
@moniquejhoienyllaxina290
@moniquejhoienyllaxina290 4 года назад
The first chaotic one looks really cool
@thebrickccentric3728
@thebrickccentric3728 4 года назад
Woah! I just realized something (it might be obvious to some, but for me, this is mind-blowing): The colors on top are the ones that the ant has traveled though the most, while the lower ones are traveled through the least. Or in other words, whatever color is set to be the one that spawns when the ant hits an empty space, that color represents a space that is traveled the least and the colors following are the ones more and more traveled on by the ant until finally, the color that comes right before the first color is the one that is traveled on the most. You can see this pretty easily with 2D maps, but even on here its very apparent on the map at 11:47. Most of the outside is purple (the color the ant places when it reaches empty space), while the middle layers are mostly grey and red, and most of the blue is one the inside. I think of it kind of like this: on a map, the blue blocks would be the well-trodden highways, the greys and reds would be the towns or livable land, and the purple would be the mountain peaks. Yet another way to think of it might be to imagine the blocks as numbered 1-4 (or however many colors there are) starting from the top block in the program being 1. Then, when the ant places that first block, it will be purple with a number of 1. When the ant travels to the block a second time, it changes the block to grey with a number of 2, which means that space has been occupied twice. The same happens when the ant visits it a third time; the block changes to red with a number of 3, meaning it has been occupied by the ant tree times. And it's the same with the fourth and last block. However, after the ant reaches a space a fifth time, the block goes back to purple, meaning its been to that block five times. So here I guess is where you can say that the color represents that the ant has been through a certain space a multiple of the position of the current color. So my first statement is slightly incorrect, but for the outside layer of the map you see, it's mostly true. What follows from this is that technically, you could use an infinite amount of colors on this map to denote every single unique number of times the ant has passed through a certain space. Imagine just taking the blocks' turning information and duplicating it indefinitely below the existing programming, but assign a new color to each turn. I think the map would still end up the same shape. (Am I thinking about that correctly? I feel like I might be wrong to think that.) But regardless, a limited color map actually stores a lot more information than you might think. (Please let me know if I've made a mistake somewhere.)
@andrewvasenev7703
@andrewvasenev7703 4 года назад
This is a very interesting point, I did not thougt about generating new colors while increasing the number of passes through the block. It will be possible to implement this somehow. If you loop the order of rotation rules at the same time - yes, the shape will remain. And it would be possible to assign the rules of rotation randomly... I wonder what would happen then :) As for the frequency of colors in general, I think this may be true, but it is worth considering the fact that when observing a three-dimensional map in a video, because of the overlapping outer layer, we can not see all the variety of colors inside the map. This gives the impression that the color that dominates the outer layer dominates the entire map, which is incorrect.
@pankekboi8511
@pankekboi8511 3 года назад
The first chaotic algorithm looked like lilipads overlapping onto eachother
@giganooz
@giganooz 4 года назад
Cool project! Also, what's the music used in the video?
@andrewvasenev7703
@andrewvasenev7703 4 года назад
0:00. BXDN - Flow 3:42. BXDN - Biorhythm 7:17. BXDN - Motion 10:50. BXDN - Echos
@grunnido5920
@grunnido5920 3 года назад
SUPER! Muchas gracias por tan buen video. Las matemáticas y su mágico lenguaje.
@blueresonant5788
@blueresonant5788 4 года назад
Imagine a Langton ant that eventually makes Rick astley.
@channelname367
@channelname367 3 года назад
Oh no
@leightonalberto435
@leightonalberto435 3 года назад
Instablaster.
@eirui
@eirui 2 года назад
Oh No No No
@maurolionelmisjuegosyo940
@maurolionelmisjuegosyo940 Год назад
Impossible
@edenasharpie
@edenasharpie 7 месяцев назад
challenge accepted
@FlatlandsSurvivor
@FlatlandsSurvivor 6 месяцев назад
One thing Id like to see is it always rendering tbe most recent block on top, so when its noodling around inside/behind the thing you still get a bit of a sense of what's going on.
@Bwabel
@Bwabel 4 года назад
And this, is how Minecraft terrain is made.
@andrewvasenev7703
@andrewvasenev7703 4 года назад
Minecraft uses other generation algorithms based on Perlin noise.
@StefanReich
@StefanReich 3 года назад
@@andrewvasenev7703 I don't mean to whoosh you, but... ^^
@peterdinkler4950
@peterdinkler4950 3 года назад
actually, some patterns do look very "Meteor-like," you may have something.
@UpsideDownEye
@UpsideDownEye 4 года назад
How did this not go viral!?!?!?!?!?
@Miltiades178
@Miltiades178 3 года назад
That would make some insane Minecraft art
@luizbento6240
@luizbento6240 7 месяцев назад
I love these langtons ant things
@frankconley7630
@frankconley7630 2 года назад
Good video bro. I like your favorite. My favorite is simple but highway doesn't start for a lot of iterations. Thanks so much.
@sebbes333
@sebbes333 3 года назад
*4:19** Stairway to Heaven* :D
@flameofthephoenix8395
@flameofthephoenix8395 7 месяцев назад
7:38 That one's neat! It looks like a cactus.
@rosiefay7283
@rosiefay7283 3 года назад
Considering the variety of patterns 2-D turmites can make, what patterns have you found in 3-D ones that you can't show in 2-D?
@jhi114
@jhi114 3 года назад
It's just beautiful!
@pojuzcu55
@pojuzcu55 4 года назад
Super cool man, thank you!
@LordMoldoma
@LordMoldoma 7 месяцев назад
Hypothetically could a langton’s ant be created that constantly builds *new rules for itself* and thus never achieves a highway?
@ddsqadod2994
@ddsqadod2994 Месяц назад
Can you please explain what the rules imply?
@kangseo5603
@kangseo5603 3 года назад
This is awesome! I also played with your Langton's Ant 3D program for a lot(like, a million steps) and was immersed at the graphic and settings you made! Thank you for the video and the application! p.s. is there any way to change the initial setting before playing? i would be even more satisfied if i could see the difference when a bit of initial colored blocks are put:)
@andrewvasenev7703
@andrewvasenev7703 3 года назад
Kang seo, thank you for your feedback, I am very pleased that someone is interested in my program! About the initialization settings -unfortunately, I did not provide such functionality in the program, although the idea is excellent!
@wolfelkan8183
@wolfelkan8183 6 месяцев назад
You should decrease the opacity on all cubes except the one the ant is currently on.
@GamingDimiGD
@GamingDimiGD 24 дня назад
1:59 ❌langton's ant ✅langton's plant
@nanamacapagal8342
@nanamacapagal8342 7 месяцев назад
Love how you implemented this, though I do have some questions: Your program shows 4 rotations, but shouldn't it allow 6, since there are 6 possible 90-degree rotations of the cube Follow-up question, what patterns might be possible if instead of strictly only turning left or right, you included the whole group of rotations (including no rotation, turning around, or some combination of rotation around different axes)? Are there any space-filling patterns in 3 dimensions, one that can fill volumes in a regular manner rather than just planes?
@ataraxianAscendant
@ataraxianAscendant 7 месяцев назад
the other two directions would be forwards and backwards relative to the ant
@nanamacapagal8342
@nanamacapagal8342 7 месяцев назад
@@ataraxianAscendant what if it's like lying on your side? Like if the four rotations present in the sim represent pitch and yaw, the remaining two could control roll
@elgarcilator8618
@elgarcilator8618 4 года назад
I,ve already downloaded the program and when i open "Langton's Ant 3D.exe" it works but when i try to start using the buttons Start/stop or using enter it doesnt work (all the other comands work but the main ones like that one doesnt), do you know why i that happening to me?
@andrewvasenev7703
@andrewvasenev7703 4 года назад
Check the upper-left corner of the program interface. If it says "Low FPS", it means that your computer has probably too much tasks now or is actually very weak to start the process. I added this warning specially to prevent the program from overloading your video card, processor, and RAM.
@Simurated
@Simurated 7 месяцев назад
The Langton's Ant actually appeared in a Minecraft April Fools Update!
@AchilleMo
@AchilleMo 3 года назад
This is fascinating. Thanks for making that video. Can we ask what t software you use?
@andrewvasenev7703
@andrewvasenev7703 3 года назад
Thanks :) This is Unity3D
@Sealedaway
@Sealedaway 7 месяцев назад
Whenever highways form, I can't resist going "weeeeeee"
@elnico5623
@elnico5623 9 месяцев назад
How is this implemented? Like how many directions can the ant face in? It should be 24 right? 6 directions × 4 orientations per direction
@andrewvasenev7703
@andrewvasenev7703 9 месяцев назад
Absolutely right
@brucecarsten9956
@brucecarsten9956 3 года назад
Do any algorithms build a "cage" that the and can never get out of?
@mintonpizza
@mintonpizza 3 года назад
Now do 4D. I'll wait.
@cheeseburgermonkey7104
@cheeseburgermonkey7104 2 года назад
now make 4-dimensional langton's ant
@Luigion7
@Luigion7 2 года назад
The third dimension allowed langton's ant to make 3d highways. Cool.
@LLEEMMRRPP
@LLEEMMRRPP Месяц назад
how can I change the speed
@Calthecool
@Calthecool 4 года назад
Very interesting.
@BadChess56
@BadChess56 8 месяцев назад
You should do a 3d slice of 4d langstons ant
@andrewvasenev7703
@andrewvasenev7703 8 месяцев назад
Great idea! However, I no longer support the project
@krccmsitp2884
@krccmsitp2884 Год назад
Wow!
@minebrandon95264
@minebrandon95264 4 года назад
are there any algorithms that make cubes and are besides brute-forcing, can you have an ant make a menger sponge?
@MrTomyCJ
@MrTomyCJ 4 года назад
The classical Langton's ant is turing complete, so it can compute the menger sponge, but I don't know if that means you can actually make it "Build" it.
@minebrandon95264
@minebrandon95264 4 года назад
@@MrTomyCJ yeah that is what i mean, but in this 3D setting, are there any parameters where the ant will make a solid cube like how it does in 2D it makes a square?
@andrewvasenev7703
@andrewvasenev7703 4 года назад
@@minebrandon95264 Yes, I think I got a cube once.
@Redjd2098
@Redjd2098 7 месяцев назад
but did one of them go up up down down left right left right?
@andrewvasenev7703
@andrewvasenev7703 7 месяцев назад
Why not, one of algorithm
@SuperMaDBrothers
@SuperMaDBrothers 3 года назад
Why does the ant only goto infinity in the Cartesian axes
@robertoaguirrematurana6419
@robertoaguirrematurana6419 2 года назад
What happens when you put two or more ants with different algorithms sharing the same space? do they cancel eachother, or something else emerges?
@andrewvasenev7703
@andrewvasenev7703 2 года назад
I have not considered such a situation, but I have seen several videos with more than one ant in 2D - I suggest you take a look at them. For 3D, I think the effect will be similar.
@Julian-wp8sc
@Julian-wp8sc 3 года назад
how about a mandelbrot algorithm but in 3d?
@andrewvasenev7703
@andrewvasenev7703 3 года назад
Nice idea, I'll think about it
@thewaytruthandlife
@thewaytruthandlife 3 года назад
4:00 looks a bit like brownian motion
@N25_CT13
@N25_CT13 3 года назад
it 3d wow amazement
@robertoaguirrematurana6419
@robertoaguirrematurana6419 2 года назад
Any chance you can make the source code available?
@andrewvasenev7703
@andrewvasenev7703 2 года назад
I'll think about it
@iamsushi1056
@iamsushi1056 2 года назад
What about the Konami code (up, up, down, down, left, right, left, right)?
@andrewvasenev7703
@andrewvasenev7703 2 года назад
haven't tried it
@ReatExists
@ReatExists 8 месяцев назад
​@@andrewvasenev7703it'd be neat if you were to make a follow-up video showing interesting patterns & some requested patterns
@storyhollow6111
@storyhollow6111 2 года назад
You could probably generalize this to even higher dimensions, imagine a 4d Langton's ant!
@andrewvasenev7703
@andrewvasenev7703 2 года назад
Imagine that the 4th dimension is time. The axis "+" is the usual movement according to the algorithm, the axis "-" is the movement according to the algorithm in the opposite direction =D
@peterdinkler4950
@peterdinkler4950 3 года назад
DRLU ruleset hasn't highway'd for 1500000 steps
@CaspaB
@CaspaB 4 года назад
It's a bit like randomly putting DNA building blocks together to "see what happens", (we call this "science") then occasionally modify them at random. Eventually, with luck the pattern becomes self-sustaining and we get something which will grow in a Petri dish, which we might call a bacterium.
@magdeymagdey2910
@magdeymagdey2910 4 года назад
How do you explain that microbes produce generations that are resistant to antibiotics
@CaspaB
@CaspaB 4 года назад
@@magdeymagdey2910 Everything that reproduces has changes to their DNA, either by their chemical or physical environment, or cosmic rays ploughing into them. Most changes are destructive but some produce characteristics which enhance the organism. If it's a bug in an antibiotic environment sometimes (actually 'rarely') a random change can improve its ability to resist the drug. All the other bugs die, providing food for the resistant bugs, which multiply faster.
@davidkelley8541
@davidkelley8541 3 года назад
imagine switching the color blocks with environment blocks, assigning the rarer colors as more valuable blocks, like diamonds, bonus chests/monster spawners and water blocks. Then playing A survival game on the ant island as it grows. the ant may bury you alive by passing through you, and it'd cut through your house, which would also alter it's course.
@rainbowguy182
@rainbowguy182 7 месяцев назад
i dont like things like langton's ant and conway's game of life cuz i dont like things that just expand with no end
@andrewvasenev7703
@andrewvasenev7703 7 месяцев назад
Also rainbowguy182: *watched this video :)
@fburton8
@fburton8 7 месяцев назад
Differential opacity with light-emitting cells?!
@andrewvasenev7703
@andrewvasenev7703 7 месяцев назад
I tried this initially, looks not well
@lat2343
@lat2343 4 года назад
Just asking, can you tell me the link to the Langton’s Ant thing?
@andrewvasenev7703
@andrewvasenev7703 4 года назад
Check the video description.
@lat2343
@lat2343 4 года назад
Andrew Vasenev ohhh thanks
@taureon_
@taureon_ 3 года назад
6:00 DOWNWARD SPIRAL DOWNWARD SPIRAL also how did you get to those combos
@andrewvasenev7703
@andrewvasenev7703 3 года назад
Just multiple random attempts ;)
@Helloimdumb
@Helloimdumb 3 года назад
By the power computer science, I shall bring life to art... LITERARY!!!!
@brucecarsten9956
@brucecarsten9956 3 года назад
Can we expect something like this from nanobots?
@JTKK9
@JTKK9 4 года назад
you can see patern that same as dna
@Raven_Gamingz
@Raven_Gamingz 2 года назад
The next time i make a bedwars server in minecraft ill use this ant to generste
@alexsitouuuuuuu
@alexsitouuuuuuu 4 года назад
Wow
@tukodprojects1894
@tukodprojects1894 4 года назад
Minecraft self building sculpture
@elanaswart1727
@elanaswart1727 3 года назад
You read my mind🤯
@jakesto
@jakesto 8 месяцев назад
Are those last few really chaotic, or will they also eventually make highways? I know that the highway in the original ant algorithm is a stable attractor and will happen no matter the initial conditions, but is that true for all alt algorithms?
@andrewvasenev7703
@andrewvasenev7703 8 месяцев назад
As far as I know, there is no deterministic algorithm for langton's ant to know from the starting configuration whether a highway will be made or not. It's like a game "life".
@jakesto
@jakesto 8 месяцев назад
@@andrewvasenev7703 So there exists at least one algorithm we know for sure doesn't make a highway?
@andrewvasenev7703
@andrewvasenev7703 8 месяцев назад
@@jakesto it follows from the previous answer that no. At the moment, this is an unsolved mathematical problem. And most likely unsolvable. There is a good video about: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HeQX2HjkcNo.htmlsi=bLeZB1s6MOE6Mtlk
@D43123
@D43123 8 месяцев назад
This i believe to be what was known as jacobs ladder and i know this will be the most used tool soon i broke it
@wynnnnnnn5227
@wynnnnnnn5227 2 года назад
Now make it in 4 dimensions
@dorito7753
@dorito7753 3 года назад
oh thats what it is
@samg2727
@samg2727 3 года назад
haha highway go BRRRRRRRRRRRRRR
@josephlang2586
@josephlang2586 2 года назад
Me trying to make a house in minecraft
@andrewvasenev7703
@andrewvasenev7703 2 года назад
😆
@dionyzus2909
@dionyzus2909 3 года назад
Too slow. You should have sped it up.
@olivergutierrez1209
@olivergutierrez1209 4 года назад
minecraft le gusta esto
@Shanyae9
@Shanyae9 3 года назад
4:11 Dream or TapL bridging in Minecraft...
Далее
Decompress small game, have time to play it!
00:35
Просмотров 3,9 млн
Langton's Ant
6:30
Просмотров 956 тыс.
Animation vs. Physics
16:08
Просмотров 27 млн
Are there other Chaotic Attractors?
6:54
Просмотров 474 тыс.
I Built a Transparent Boomerang (it's lethal)
13:10
Просмотров 4,4 млн
Math Battle in Game Of Life
2:01
Просмотров 696 тыс.
Langton's Ant
3:45
Просмотров 9 тыс.
Handmade holograms are really weird
12:00
Просмотров 2,4 млн
Langton's Ant - Numberphile
4:29
Просмотров 400 тыс.
Pocket Ants - 1 - "The Power Behind the Queen"
29:25
Просмотров 911 тыс.
Decompress small game, have time to play it!
00:35
Просмотров 3,9 млн