Hilbert's Curve: Is infinite math useful?

Sdílet
Vložit
  • čas přidán 20. 07. 2017
  • Space-filling curves, and the connection between infinite and finite math.
    Help fund future projects: / 3blue1brown
    An equally valuable form of support is to simply share some of the videos.
    Home page: www.3blue1brown.com
    Supplement with more space-filling curve fun: • Fractal charm: Space f...
    For more information on sight-via sound, this paper involving rewiring a ferret's retinas to its auditory cortex is particularly thought-provoking: phy.ucsf.edu/~houde/coleman/su...
    Alternatively, here is the NYT summary: goo.gl/qNuc14
    Also, check out this excellent podcast on Human echolocation: goo.gl/23f4Yh
    For anyone curious to read more about the connections between infinite and finite math, consider this Terry Tao blog post: goo.gl/NZ4yrW
    Lion photo by Kevin Pluck
    Music by Vincent Rubinetti: vincerubinetti.bandcamp.com/a...
    Thanks to these viewers for their contributions to translations
    Hebrew: Omer Tuchfeld
    ------------------
    3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with CZcams, if you want to stay posted on new videos, subscribe, and click the bell to receive notifications (if you're into that).
    Various social media stuffs:
    Website: www.3blue1brown.com
    Twitter: / 3blue1brown
    Patreon: / 3blue1brown
    Facebook: / 3blue1brown
    Reddit: / 3blue1brown

Komentáře • 1,9K

  • @samalanda
    @samalanda Před 4 lety +325

    Fun fact (which no-one will see): I watched this video about a year ago and found it pretty interesting, and I remembered how each order of pseudo Hilbert curves was made. Recently, I saw it in action, in the form of a 3d render. Specifically the area is divided into equal sized 'panels' and these panels trace a path of order 2 curves spiralling from the center, watching that reminded me of this video, so I thought I'd share it with the one random person to stumble across this comment.

    • @codinghub3759
      @codinghub3759 Před 11 měsíci +9

      Atleast 36 people stumbled upon your comment.

    • @salvador1683
      @salvador1683 Před 10 měsíci +6

      I write this comment so could be reminded thus video

    • @prince-of-ohio
      @prince-of-ohio Před 10 měsíci +2

      @@salvador1683 after 2 days your wish has finally came true

    • @GoldenBoi507
      @GoldenBoi507 Před 10 měsíci +2

      *71 people liked that*

    • @SpaceNebula69
      @SpaceNebula69 Před 9 měsíci +1

      2^7 likes yay

  • @johnwallis3676
    @johnwallis3676 Před 6 lety +6328

    Everyone: can you give us a practical example of why is math useful?
    3blue1brown: Sure. Okay, imagine you want to see with your ears...

    • @endogeneticgenetics
      @endogeneticgenetics Před 4 lety +80

      I lol'd :). (love these videos though -- sooo good)

    • @CurtisJensenGames
      @CurtisJensenGames Před 4 lety +81

      endogeneticgenetics Maybe good for blind people, but regular sound works quite well.

    • @siinxx7656
      @siinxx7656 Před 4 lety +73

      Hilbert's Curve is specialy significant to me, because roughly said, it might be a fundamental key to understand the phenomena that preceded the creation of the Universe. As I see it, using the modern take on the Standard physics model including now the use of supersimmetry and specialy effective mathematical models like the Mandelbort series, we might grasp how "something" can emerge from "nothing".

    • @johnnyknight77
      @johnnyknight77 Před 4 lety +18

      "Okay, imagine you want to establish an Advanced Capitalist super power."

    • @johnnyknight77
      @johnnyknight77 Před 4 lety +7

      ^^ "... with sound-vision."

  • @thorstambaugh1520
    @thorstambaugh1520 Před 4 lety +2708

    That background music sounds like a parallelogram

  • @soranuareane
    @soranuareane Před 4 lety +175

    Re-watching this again after two years of math, physics, computational physics, and computer science. I'm understanding this video on levels I've never before experienced. Talk about "pause and ponder", even over two years!

  • @AdmiralSamStarcraft
    @AdmiralSamStarcraft Před 5 lety +767

    The goal of mapping 2D space into 1D space such that points close in 2D are also close in 1D is exactly how GPU's accelerate texture fetches. Both CPU's and GPU's use caches to speed up calculations, because it is expected that if I request data at some location, I will most likely request data close to that location in the near future. Basically, when you ask for a few bytes, they store an entire section of the memory in anticipation that you will use it. Memory is of course just a long line of bytes. Textures, whether they are 2D or 3D, are slightly different. If I request a color from a texture at some 2D or 3D point, the same logic would mean that I would want to store an entire 2D or 3D chunk around that point in anticipation of the future. So in order to reuse the same caching mechanism that already works for 1D arrays, they use a curve, in this case, the Morton's Curve or Z-Curve. It is not as mathematically optimal as a Hilbert curve in terms of keeping nearby 2D points nearby in 1D, but it is extremely simple to compute from the 2D coordinate by just turning X and Y into binary, interleaving their bits, and then converting back into a single decimal location. And that is how basically every GPU provide a "2D" cache or "3D" cache optimized for textures.

    • @renakunisaki
      @renakunisaki Před 5 lety +28

      It's also very helpful in visualizing a continuous signal. It helps keep parts that are close together in 1D space also close together in 2D space, so the patterns aren't distorted beyond recognition.

    • @ivanjelenic5627
      @ivanjelenic5627 Před 2 lety +14

      Thanks for this comment! Very interesting!

    • @abdelkadiou
      @abdelkadiou Před 2 lety +38

      It's also used in numerical simulations in astrophysics, except we use a 3D Hilbert curve to partition space. Basically, when performing expensive computations, you want a) to divide space into small cubes, b) to spread these cubes equally over multiple CPUs (or even different computers) so that they have similar workloads, and c) that each CPU gets to work on chunks of data that are close spatially. All three properties are satisfied by a Hilbert curve!
      The way we do this is that we split our computational domain into cells and order them by their index on the Hilbert curve. If we have four CPUs, we then feed the first CPU the first 25% of the cells along the curve, then the next 25% to the second CPU, etc. You end up with chunks of data that are close spatially and you have easy control over how much load each CPU receives. For example, if one CPU is slower than the others for some reason, you can feed it 20% of the cells instead of 25% to release the pressure, and spread the remaining ones on the neighbouring CPUs.
      What's even better is that you can also use the CPUs physical location and index them by a Hilbert curve (so CPUs that are close have a similar Hilbert index). When feeding data to each CPU, you can then make sure that neighbouring CPUs receive neighbouring data thus limiting the distance data need to travel if one CPU wants to communicate with its neighbour.

    • @Zenovarse
      @Zenovarse Před 2 lety

      Do that with temporal locality to achieve 1d cache that never refills.

    • @Zenovarse
      @Zenovarse Před 2 lety

      A ROM cache

  • @Michallote
    @Michallote Před 2 lety +343

    This is actually useful for 3D printers, the first layer in some slicers has the option to use them. As they change directions constantly the warping due to thermal contraction is evened out

    • @TheSanpletext
      @TheSanpletext Před rokem +9

      Infill can also be done with Hilbert. IDK why, since it's not fast, strong nor saving filament, but you can.

    • @gcod3d161
      @gcod3d161 Před 11 měsíci +8

      @@TheSanpletext well adding more infill doesn’t increase strength as much as adding more perimeters. So firstly the question shouldn’t be ‘how do we efficiently hit all the points in this area’, but instead, ‘Do we even need to?’. But if you actually do need to there are other things you want to consider.
      The Hilbert curve is one application specific optimal path algorithm, the ‘Snake curve’ is another and it’s the default for 3d printers because we work in the real world with physical (many direction changes isn’t speed optimal) and memory constraints.
      There are probably infinitely many optimal path algorithms that satisfy any and all definitions of optimal we could conceive. Maybe even infinitely many algorithms that generate optimal algorithms with varying levels of definitions of optimal. Infinity is mind boggling

    • @limsiewkhim1579
      @limsiewkhim1579 Před 7 měsíci

      🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪
      🟪🟪🟪⬜️⬛️🟪⬛️⬜️🟪🟪🟪
      🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪
      🟫🟫🟫🟫🟫🟫🟫🟫🟫🟫🟫🟫🟫
      🟫🟫
      So I'm gonna do this wood cutting challenge
      But 8t wasn't my fault so so I made it 1.5 certain of it center wood long so it's easy for somebody
      Who want to do this?

  • @wendycarballo7092
    @wendycarballo7092 Před rokem +45

    Believe it or not, I was directed to this video by a gentleman in my craft show booth last month. I am a lacemaker and had made a doily which is essentially a fractal design. He suggested a Hilbert Curve might work also and I have to agree. Art & math combine so beautifully.

    • @calebbridges4748
      @calebbridges4748 Před 7 měsíci +6

      When people say they don't find something miraculous or magical in this world, I want to point to comments like yours. The intersection of expression and reason is so cool. 🥺

  • @marorozco9706
    @marorozco9706 Před 3 lety +198

    “But ¡hey!, it’s math, we live with bad terminology...” I couldn’t agree more xD

    • @BradyPostma
      @BradyPostma Před 2 lety +4

      Every field has history that defines the language it uses.
      The danger of updating the language is the loss of coherence of all previous research that used the previous terminology (or the massive effort and expense of translating old research to the new terminology).
      Mathematics and history are both universally inescapable.

  • @Vasanistis12
    @Vasanistis12 Před 6 lety +1815

    i love the fact that vsause is promoting you, you are youtube's gem

    • @kiwin111
      @kiwin111 Před 6 lety +19

      He's not very subtle about it

    • @alexm.2960
      @alexm.2960 Před 6 lety +10

      Vsauce*

    • @northwind6199
      @northwind6199 Před 6 lety +20

      I love that other Greeks actually watch this. Faith in humanity re- _well,_ partially restored.

    • @ilkinond
      @ilkinond Před 6 lety +14

      When Greek meets Greek.......

    • @some_user1337
      @some_user1337 Před 5 lety +1

      I've heard about this channel, before vsauce promoted it.

  • @PascalSommerMovies
    @PascalSommerMovies Před 6 lety +931

    "And to make my own animation efforts easier..."
    *does fancy swoosh animation*

  • @christianschultz9715
    @christianschultz9715 Před 4 lety +389

    14:44
    Mathematicians: Ok I will try it
    Physicists: Nah, I believe you

    • @gabrielwu5787
      @gabrielwu5787 Před 3 lety +8

      lol so true

    • @user-hv9fx8wd4q
      @user-hv9fx8wd4q Před 3 lety +4

      This comment is gold. XDDD

    • @ruchi9917
      @ruchi9917 Před 3 lety +3

      I literally ended the video there 😂😂

    • @kanvolu
      @kanvolu Před 2 lety +9

      I feel personally attacked but is so true xD

    • @ingenuity23
      @ingenuity23 Před 2 lety +8

      Engineers: You guys have proofs?

  • @lopezb
    @lopezb Před 2 lety +52

    Two more interesting points:
    (1) the limiting curve is continuous but everywhere non-differentiable;
    (2) it "preserves measure" in the sense that it takes 1-dimensional Lebesgue measure (length) to 2-dimensional (area).

  • @crazdmonkey1265
    @crazdmonkey1265 Před 6 lety +535

    I played your Essence of Calculus playlist at my graduation party and just wanted to say I love your work! And it was great!

    • @100nacional100
      @100nacional100 Před 6 lety +122

      BweDaTub z you must be fun at parties

    • @Zartymil
      @Zartymil Před 6 lety +77

      I bet he is way more fun than assuming that fun has a universal meaning :)

    • @100nacional100
      @100nacional100 Před 6 lety +8

      Zartymil probably

    • @Zartymil
      @Zartymil Před 6 lety +22

      We are all fun in our own ways. There is no need to shame people about something they like.

    • @100nacional100
      @100nacional100 Před 6 lety +49

      Zartymil chill. It was just a joke

  • @felill.a.9159
    @felill.a.9159 Před 4 měsíci +6

    I have little to no knowledge of mathematics. I barely made it to functions in high school. Yet, this was incredibly easy to understand (on a surface level, of course). Moreover it was fascinating, poetic even. It made me think about the underlying structure of an ifinite universe, about the big bang, about the fractal structures of life forms, about music, about the possibily of a soul, about fate, even about the interconnectedness of love..This video has siglehandedly changed the way I think about mathematics. There is beauty and wisdom encoded within the number's hermetic and dry appearence. Lovely work.

    • @justsaadunoyeah1234
      @justsaadunoyeah1234 Před 2 měsíci

      I recommend you watch more of this guy's videos. You may learn a lot and maybe you can become the next Albert Einstein

  • @sagarroy8679
    @sagarroy8679 Před 4 lety +31

    Oh my god, you made the (modified) epsilon-delta definition look motivated and elegant. I honestly viewed you as a useful learning tool before because I already had an intuitive sense of what you taught, but despite learning epsilon-delta for hours, I never, ever thought of this. You’re game changing.

    • @cameron7374
      @cameron7374 Před 2 lety +8

      As someone who does not have an intuitive sense of most of what he teaches:
      He somehow does this to almost every topic he touches.

    • @dameck9570
      @dameck9570 Před rokem +1

      Yeah, really.
      I have my algebra+calculus exam next week and I was just dazzled by his explanation

  • @uchihamadara6024
    @uchihamadara6024 Před 4 lety +26

    That explanation of continuity using circles was one of the best I've ever seen.

    • @theexecutivegamer7135
      @theexecutivegamer7135 Před 2 lety +3

      Think that is a standard explanation from Real Analysis - i.e the Epsilon.

  • @Ranginor
    @Ranginor Před 6 lety +148

    I just wanna say thank you. I really enjoy your videos because they teach me a lot of english (I'm from Germany) because of your well pronounciation, while telling me interesting stuff about my hobby math. In my view your animations are just briliant and a beatiful way of connecting design and Art with Math. I'm not in a financial position to support you on patreon but I can like your videos and tell you in the comments what a wonderful job you make, which I now have done.

    • @cutecommie
      @cutecommie Před 6 lety +13

      "well" ist ein Adverb. Das dazugehörige Adjektiv heißt "good".

    • @matrixarsmusicworkshop561
      @matrixarsmusicworkshop561 Před 5 lety +7

      I just like this comment

    • @NoriMori1992
      @NoriMori1992 Před 4 lety +6

      Your English is quite good!

    • @joda7697
      @joda7697 Před 3 lety +1

      @@NoriMori1992
      It is. And watching English media is a great way to learn the language,
      I am speaking from experience.

    • @marorozco9706
      @marorozco9706 Před 3 lety +2

      Yes! It’s so easy to understand him and his voice is so soothing! (I’m a spanish speaker)

  • @antiscribe4150
    @antiscribe4150 Před 3 lety +231

    I was hoping I'd get to hear a picture of a lion before the end of this Vid.

  • @jojoecr7626
    @jojoecr7626 Před 10 měsíci +1

    These shorts are too good, I constantly find myself almost forced to go to the comments for the full video because i just need to know.

  • @waxcree
    @waxcree Před 2 lety +14

    I have seen ip addresses(both version 4 and version 6) being mapped along hilbert curves. It gives an order in how the various registries and oganisations owns subnets of /24 blocks. It looks good, kind of like looking at an internet map of the world. This video helped a lot in understanding that image thanks a lot!

  • @piranha031091
    @piranha031091 Před 6 lety +892

    But... we never get to hear a video converted to sound by this method?
    I'm a little bit dissapointed... :-(

    • @sebastiangudino9377
      @sebastiangudino9377 Před 6 lety +15

      If you think that you should check the resources in the description

    • @cloudvariable9910
      @cloudvariable9910 Před 5 lety +34

      If you want to see something really cool, look up The 8-Bit Guy’s video on cassette tapes. It shows how you can convert a video game to sound. But don’t expect a symphony unless you are a real geek, as most people outside of the nostalgia crowd don’t care for the screeching sounds.

    • @leduy6623
      @leduy6623 Před 5 lety +7

      Instead of sound, electrical signal surge are use to represent the color of the exact point on the curve. This I assume is how Analog TVs and screens converts image to signal and vice versa

    • @anandsuralkar2947
      @anandsuralkar2947 Před 5 lety

      Lol

    • @wajeehdaouk1424
      @wajeehdaouk1424 Před 5 lety +8

      @lol fert
      What if someone made the program?
      would it be possible to learn to see sound with enough focus and knowledge about frequencies and sound?
      It looks like a lot of work for a new language, doesn't it?
      Edit: or a form of communication rather

  • @jeremiahpratt2492
    @jeremiahpratt2492 Před 6 lety +117

    This may just be my biased association, but the pattern created by higher order psuedo-hilbert curves, such as the order 7 or 8, reminds of the patter seen in brains. This gave me an interesting thought wondering about the exact reasoning the brain has the pattern it does. I suspect it has something to do with the efficiency of neural connections, but the pattern is very abstract looking, and seems like a great topic to do a video on or include in a video. I'll probably do further research anyway, but thought I'd just share this.

    • @columbus8myhw
      @columbus8myhw Před 6 lety +40

      Brains have to be wrinkly - I think it has to do with maximizing surface area, but I forget the details or why

    • @jeremiahpratt2492
      @jeremiahpratt2492 Před 6 lety +36

      Thank you for your answer @columbus8myhw; I did more research of my own, and yes, it is to do with efficiency of neurons with surface area. The wrinkles, called quite fantastically, gyri and sulci, allow the brain to fold in to a space that can contain more neural connections while still being close enough together to allow the brain to map more links across wider areas. It is actually very complicated topology, which is why the brain has it's very abstract shape, but it is incredibly optimized.

    • @korayacar1444
      @korayacar1444 Před 6 lety +23

      Jeremiah Pratt The same phenomenon can be found in your lungs as well, since they have to maximise inner surface area to extract enough oxygen out of the atmosphere

    • @rushyscoper1651
      @rushyscoper1651 Před 5 lety +1

      I was gonna comments that it goes indeed.
      I am so desperate to jump from front end Dev to AI but the entry level is so high I need a lot to catch up.

    • @ToriKo_
      @ToriKo_ Před 5 lety

      Koray Acar so how are the lungs structured?

  • @Luckyfeller
    @Luckyfeller Před 10 měsíci +1

    Came here from Steve Mould's channel. I was still having trouble getting my head round it. This video helped get me over the line. Cheers, now I can sleep without my brain trying to work it out.

  • @simplepiano152
    @simplepiano152 Před 5 lety +109

    This is amazing! Imagine a art museum, that plays a corresponding tone for each painting. 😀

  • @nicklittle8399
    @nicklittle8399 Před 5 lety +176

    14:00 Did anybody else take notice to the fact that every time the points moved into a higher resolution, it made a sort of Fibonacci curve? Say if you were to map the points out, it looks like it would make something similar

    • @radovandulak855
      @radovandulak855 Před 4 lety +6

      I was looking for this comment.

    • @daedalussass_5365
      @daedalussass_5365 Před 3 lety +11

      That's because this is a Fibonacci sequence

    • @baronvonbeandip
      @baronvonbeandip Před 2 lety +37

      At this point, just assume anything that is recursive or self-similar is Fibonacci and/or Golden Ratio.

    • @mpeshwar3187
      @mpeshwar3187 Před 2 lety +1

      Just observed it and saw this comment the next second .

    • @AdelaeR
      @AdelaeR Před 2 lety

      @@baronvonbeandip Exactly :)

  • @David-xq3bg
    @David-xq3bg Před 5 lety +34

    "How can these results be useful in the finite context?"
    Euler's formula proof is my favorite by far (that I've learned so far)

  • @Gunbudder
    @Gunbudder Před 3 lety +8

    I actually used the hilbert curve once in some software i wrote. i needed an algorithm that could traverse every point in a grid of unknown size. i considered the zamboni method, but realized that doesn't work if you don't know any side lengths of your grid. there are probably other solutions, but i realized the hilbert curve doesn't need a side length to fill a square grid. you can just start drawing it until you hit a wall. once you hit a wall, you've filled the grid entirely. i had my algorithm walk the hilbert curve as a path until it hit a wall, and in doing so it traversed every cell in the grid. i never though i'd actually use the hilbert curve for something other than doodling, but there you go lol

  • @chaoticstorm8145
    @chaoticstorm8145 Před 6 lety +257

    You make some of the most interesting math videos on CZcams. You definitely deserve more subscribers :)

    • @vintagescorpio49
      @vintagescorpio49 Před 6 lety +5

      But then again, not that many people like math.

    • @CatalinBordea
      @CatalinBordea Před 6 lety

      From the date you wrote this comment, the number of his suscribers did more than triple itself.

    • @CodingDragon04
      @CodingDragon04 Před 2 lety

      And now its up to 4.23 million lol

  • @MattSeremet
    @MattSeremet Před 4 lety +14

    This is one of my favorites from you. Neat and simple. Also gave me insight into why the "Hilbert Spiral" in Blender's cycles tile-based renderer moves the way it does. Hadn't thought about it before.

  • @octopus1613
    @octopus1613 Před 4 lety +2

    The way you talk is really pleasant to listen to, and I love how you explain complex thoughts in simple ways!

  • @GaussianEntity
    @GaussianEntity Před 4 měsíci +1

    The ending really shows how knowledge can be so useful if there's a mind creative enough to use that knowledge

  • @mycoffee2654
    @mycoffee2654 Před 6 lety +4

    You're an amazing teacher. I'm not a math person, but you make me interested somehow. I watch you videos both to learn math and to learn how to teach others the way you do

  • @vishwas425
    @vishwas425 Před 6 lety +119

    Please make a video about partial differentiation

    • @3blue1brown
      @3blue1brown  Před 6 lety +41

      Have you seen the work I did for Khan Academy?

    • @alcapone6796
      @alcapone6796 Před 6 lety +9

      3Blue1Brown wait you worked for khan academy where can i see them

    • @3blue1brown
      @3blue1brown  Před 6 lety +41

      Check out the multivariable calculus playlist.

    • @alcapone6796
      @alcapone6796 Před 6 lety +13

      3Blue1Brown Also could you make a video on the 1+1=2 proof which took 200 to 300 pages to prove. I really would like to know how they made the axioms and applied them. Plus some applications of maths in subjects like economics,sociology would also be appreciated.

    • @vishwas425
      @vishwas425 Před 6 lety +2

      Thank you sir, love your work

  • @VitalSine
    @VitalSine Před 4 lety +2

    Love this video! You always find a way to put a really unique and interesting spin on math. I recommend that anyone who watched this video watch the other 3 blue 1 brown video in the description, there are some really cool animation supplements there. Thanks again for this great video.

  • @JohnWilliams-uk2hf
    @JohnWilliams-uk2hf Před 4 lety +19

    Seeing an old, educational video of a true intelligent man, fills you with DETERMINATION.

  • @RobinDSaunders
    @RobinDSaunders Před 6 lety +3

    Quick comment from someone who hadn't seen the original version.
    This is a great introduction to space-filling curves, and one of the most intuitive introductions to continuity that I've seen. Just one small change that I'd make: when you show how to tile all of space with copies of the unit square, instead of wrapping copies around in a spiral, you could lay them out in pseudo-Hilbert curves of increasing order. This way, the curves in the individual squares join end-to-end without too much messing around, and it also ties in nicely with the message about changing resolutions.

  • @MelloCello7
    @MelloCello7 Před 4 lety +4

    This channel is so damn cool... the animations are amazing intuitive and smooth, what an essential bonus

  • @alexkuligowski4092
    @alexkuligowski4092 Před 4 lety +2

    And now I have language for why I like exploring infinite sequences. Thank you for all you do!

  • @temirlankasmaliev9322
    @temirlankasmaliev9322 Před 3 lety

    I really think that everything is equivalent to information (orderly and chaotic). Everything is fluctuating, oscillating to some clean point. But never reach it, just keeps going and going. Yet it's so beautiful and captivating that I feel fulfilled. Amazing video!

  • @KwazieProdukshuns
    @KwazieProdukshuns Před 6 lety +458

    I'm a simple man. I see 3blue1brown, I click.

    • @daedra40
      @daedra40 Před 6 lety +26

      I am a simple man. But 3blue1brown's ability to make simple man like me understand, makes me really happy.

    • @daedra40
      @daedra40 Před 6 lety +2

      Mikko Finell memes are generally inevitable, I believe. :P Maybe that's a self fulfilling prophecy tho

  • @Terrain2
    @Terrain2 Před 3 lety +12

    Huh, i did NOT know those things i drew when bored in math class were called “pseudo-hilbert curves”, because i drew EXACTLY that one time at school

  • @amitbu
    @amitbu Před 5 lety +1

    One of the best videos you've made, in my opinion.
    Thank you Grant :)

  • @aminassadi5104
    @aminassadi5104 Před 4 lety

    The intuition to continuity concept is awesome, thanks a lot 3blue1brown

  • @TheTruthSentMe
    @TheTruthSentMe Před 6 lety +168

    "...mathematicians, interested in filling continuous space..."

  • @wileyabt
    @wileyabt Před 6 lety +4

    Infinite math, and the connection between the infinite and the finite is super interesting to me. I'd love to see you cover the Fast Growing Hierarchy and limit ordinals some time.

  • @grahamwhite2003
    @grahamwhite2003 Před 4 lety

    Hey Grant! I would love to see a video on the fractional dimensions of the chaotic strange attractors that can be found in phase space. Your animations for that would be epic. Also, all of your work is incredible and I acquire a great deal of inspiration from it so I'd just like to say thanks man.

  • @tobybartels8426
    @tobybartels8426 Před 4 lety +1

    10:44-12:27 : This is the best precise explanation of continuity that I have ever seen.

  • @_bones_jones
    @_bones_jones Před 3 lety +13

    This video in particular made me really delve deep into maths, although not this topic. I have posters up on my bedroom walls of this in case I ever forget how beautiful mathematics can be, given the right teacher. You are an inspiration and will continue to be. Thankyou so much for your videos.

  • @Parkouralicous
    @Parkouralicous Před 6 lety +3

    This, like all your videos, is just beautiful! One extra point for why a Pseudo-Hilbert Curve would be better than a Snake Curve is that it preserves the locality better. While two points that are close horizontally in an image will always be close when converted to 1D with this type of snake curve, points that are close vertically will generally not be. Much love!

  • @IndieDeveloperGuy
    @IndieDeveloperGuy Před 3 lety

    The animations are really Breathtaking and does a great job in explaining

  • @ideegeniali
    @ideegeniali Před 10 měsíci

    I knew about Hilbert curves, i read and watched about them many times. But i totally discovered something new about them in this video! Thank you and well done!

  • @vishwas425
    @vishwas425 Před 6 lety +2183

    like if you want to study in a 3blue1brown school

  • @girishailesh6257
    @girishailesh6257 Před 6 lety +3

    how does these guy makes such stuffs so amazing to watch?

  • @skiracerray
    @skiracerray Před 7 měsíci +1

    This almost feels related to the idea that all of the information contained in the volume of a black hole can be discreetly expressed on the surface of that black hole. (I can’t remember the name of the theorem, but PBS SpaceTime does a great job of explaining it). I never actually understood how all of the information contained in a lower dimension could be expressed in a higher dimension until I watched this video. Great work!

  • @xybersurfer
    @xybersurfer Před 4 lety

    this is the first real useful application i've seen for a Hilbert curve. i didn't know about this property

  • @ObitoSigma
    @ObitoSigma Před 6 lety +87

    I can't wait for that Essence of Abstract Algebra series. ;-)

    • @3blue1brown
      @3blue1brown  Před 6 lety +57

      Only scratching the surface of the tip of the iceberg.

    • @redknight344
      @redknight344 Před 6 lety +1

      yes!!!!!!!

    • @pr1ckastley
      @pr1ckastley Před 6 lety +3

      There's an essence of abstract algebra series coming out?! Have my prayers been fianlly answered?

  • @alleycatsphinx
    @alleycatsphinx Před 4 lety +5

    Curious notes : 1. There is a variant of the Hilbert Curve called a “Moore Curve” that joins up 4 rotates Hilbert Curves such that the ends connect to form a loop. Personally I think this is a more accurate way of connecting Cartesian space with frequency space. 2. The Morton Order Curve (aka z-order) can be made simply by taking the 2 coordinate numbers for x and y and interlacing then into a single number by combining their bits in the pattern xyxyxyxy (first number is xxxx bits, second number is yyyy, and the curve position number I s the combined pair.) To make a Hilbert Curve, you can do the same process if you treat the binary numbers as “Gray Code” numbers - kinda... It only works in some dimensions (4,8,24...) in other dimensions you need to do the flipping step on the bits... This is a reflection of deep properties relating to spatial packing.

  • @particles343
    @particles343 Před 4 lety

    Really awesome easy to understand how we went from written fractals to measuring quantum states and proving them.

  • @eunhyoukshin7777
    @eunhyoukshin7777 Před 5 lety

    There is so much rich insight in this video and I absolutely love it

  • @hdef6602
    @hdef6602 Před 6 lety +230

    now we need a 3d or 4d filling curve to realise 3d vision + sound as sound

    • @hdef6602
      @hdef6602 Před 6 lety +50

      oh man I forgot about colour

    • @Zartymil
      @Zartymil Před 6 lety +35

      That's actually a really cool ideia. Using 2D vision + sound with space filling curves to get to know the 4th dimension is a brilliant ideia! Has anyone made this before?

    • @rhapsoblu
      @rhapsoblu Před 6 lety +12

      Like a manifold filling a volume? It would be like balling up a piece of notebook paper. That would be a really interesting idea for visualizing high dimensional data.

    • @tj12711
      @tj12711 Před 6 lety +10

      Crimson Vale Unless we mod the human brain, which is ideally the end result of the computing revolution

    • @kfftfuftur
      @kfftfuftur Před 6 lety +6

      tj12711 you wouldn't have to mod it, since it can learn from what it sees. Do d a way to map a Hilbert curve to 4 dimensional space, and find someone blind (why does autocorrect wants me to write blond instead?) who is willing to take part in your experiment.
      Also program a virtual 4d environment that you can map the Hilbert curve to
      And think about how you could controller a character in 4D and you are done.
      Only problem is that even for 2D images your test subject is not going to think about it as a image but rather as a sound.

  • @ViktorEngelmann
    @ViktorEngelmann Před 5 lety +4

    17:26 this correlation between the existence of something infinite and the existence of something similar for all finite cases reminds me a lot of the compactness-theorem from propositional logic and first-order-predicate logic. Infact, I'm thinking about using the compactness-theorem for proving the 3 exercises... :-D

  • @hanks.9833
    @hanks.9833 Před 5 lety

    I just found this video: a great introduction to space filling curves. Using the snake curve for comparison was a good idea. Only missing point was what the LENGTH of it is.

  • @Anonimowany1
    @Anonimowany1 Před 4 lety

    I love watching this channel just out of curiosity and fun.

  • @twiggy_witch
    @twiggy_witch Před 6 lety +61

    Sacrificing old view count in order make a better quality video!? Now I've seen everything.

  • @benjaminbrady2385
    @benjaminbrady2385 Před 6 lety +9

    I watched this a second time the other day and now I'm watching this a third time... oh well!

  • @obsidian7133
    @obsidian7133 Před 3 lety

    You are a legend man!! If learning is an art, teaching also is.. and you prove to be the best capable teacher out there, who can sink in his thoughts to any layman's mind.. and trust me, it's not that easy.. keep it up!

  • @wisdom6458
    @wisdom6458 Před 4 lety

    Wow, Grant. You are a genius! You make us understand hard and interesting math stuff, it's just amazing!

  • @micah_w
    @micah_w Před 3 lety +4

    Anyone else notice the interrobang used at 3:39 ‽‽

  • @PulinAgrawal
    @PulinAgrawal Před 4 lety +7

    This is just a thing of beauty. I was laughing at the brilliance of this idea, your description and the beauty of this all. You are amazing beyond my imagination!
    I wish I could brainstorm such amazing beautiful ideas with you.

  • @user-rb8dn2dy7y
    @user-rb8dn2dy7y Před 7 měsíci +1

    The image to sound actually sounds like a good idea, I may actually put that in my list of ideas to program in python when I'm bored.

    • @WaldirPimenta
      @WaldirPimenta Před 4 měsíci

      There's a TED talk of a guy who used a vest that produced an array of tactile points that one could feel with the skin of the back, and used it to gradually train brains to figure out very complex patterns that would be impossible to parse visually (I might be misremembering the details)

  • @zoltantoth1566
    @zoltantoth1566 Před 4 lety

    wonderful video;
    the subject is theoretically important and facinating, practically very useful [which you show with a good example] and the presentation is perfect

  • @MandMs05
    @MandMs05 Před 3 lety +7

    "Let's say you wanted to write software to let you see with your years"
    Me, a chromesthete:
    "I'm four parallel universes ahead of you"

    • @antanis
      @antanis Před 3 lety

      What's your favorite kind of music?

    • @MandMs05
      @MandMs05 Před 3 lety

      @@antanis I'm not exactly sure, really. It varies a lot. Currently I like Suo Gân from Empire of The Sun, and Outro by M83.
      Suo Gân is a very warm song with lots of orange colors, which I made some artwork on. Outro is much more green and reminds me of forests and rolling landscapes, but also of things like green stained glass that's bubbly almost like an ocean that was made soft.

    • @arunabhganodwale1022
      @arunabhganodwale1022 Před 2 lety

      @@MandMs05 Ever tried Indian classical, buddy?

  • @theronsosachavez2757
    @theronsosachavez2757 Před 6 lety +4

    Hi, I don't know if I admitted to make this question but. Could we make a video about how you animate your videos? I mean, all these animations you make up and put in your video, simply it's awesome.

  • @jaymethodus3421
    @jaymethodus3421 Před 10 měsíci

    This is helping me conceptualize a new theory on reality itself, in which I postulate all existence is a single point being iterated infinite times relative to itself; i.e. the only real dimension is a "line".
    Specifically, the "jumps" between input space and output space fit into my theory in a very unexpected way.

  • @richarddeese1991
    @richarddeese1991 Před 5 lety +1

    There actually ARE good channels on CZcams; I know it because this IS one. There are only a few really good ones about math. Yours & the Mathologer's are absolutely at the top of that list. Your channel & his are somewhat different in feel - I suppose each has a somewhat different personality - but both are A++ when it comes to explaining math. [Numberphile is also quite good, & I do watch it, but I find these 2 to be my favorites - by far.] Thank you!! To watch an explanation unfold on one of your videos is to experience revelation - it's that beautiful. I don't know how you do it, but please - keep up the good work! Rikki Tikki.

  • @Magnogen
    @Magnogen Před 6 lety +26

    Is there such thing as 3-dimentional space filling curves? Or, even better, n-dimentional space filling curves?

    • @mandolinic
      @mandolinic Před 5 lety +16

      Yes, you can take the order 1 Hilbert curve, changing the 2x2 squares into four cubes. The put another 2x2 cubes behind those, giving a 2x2x2 block. Put another order 1 curve in the empty cubes and a short link to join them to the first curve. You now have a 2x2x2 block with a 3d space filling curve inside. Just keep stacking them together to make higher order curves.

    • @Magnogen
      @Magnogen Před 5 lety +1

      Mandolinic Thank you, that was really helpful!

  • @ColeJT
    @ColeJT Před 6 lety +8

    For a moment I thought I saw a flaw in the space "filling" curve argument because of the asymptotic nature of the function at the divides of the quadrants. I thought that points surrounding the asymptotes get infinitely close to touching the quadrant boundaries, but never actually collide; while that is true for finite curves, infinite curves probably do join at the asymptotes eventually, even if it's only in a limit sense.
    Then, I thought that would break the function property of the curve. One (two dimensional) point has two outputs! Here I am breaking a century's worth of genius mathematicians' hard work.
    It's too bad that two-D space is the output, and points on the number-line are the inputs. It is the listener's job to decipher the line. It's perfectly fine for two points on the number-line to both output to the same two-D point. It's just like x^2 hitting 4 both at -2 and 2. It's just like the trig functions, etc...
    This was fun for me to work out that the function is indeed a function because it is a little bit more abstracted than what the normal way of quickly assessing a curve's functionality. You can't just do a vertical line test, or some form of a planar test. It was just a very pure form of "an output can have multiple inputs, but an input can only have one output."
    I didn't have this fun logic moment the first time you uploaded this, so I appreciate the re-upload.

    • @supersonictumbleweed
      @supersonictumbleweed Před 6 lety +4

      Cole Turner Actually, the curve never touches itself nor the same point twice, because the reverse mapping from a point to a value along the curve is a function as well, as in that it has exactly one output for each input.

    • @columbus8myhw
      @columbus8myhw Před 6 lety +3

      Cole Turner, you are correct. A function which has a unique input for any output is called "injective"-what you noticed is that, even though the (finite) Pseudo-Hilbert curves _are_ injective, the true (infinite) Hilbert curve is not.
      There do exist objective functions from the line to the square that hit every point; however, none of these are continuous. A function that hits every point is called "surjective"-there do not exist any continuous, injective, surjective functions from the line to the square.

    • @columbus8myhw
      @columbus8myhw Před 6 lety +3

      You can see an example at 13:05; the bottom two points approach each other, and in the limit (that is, in the true Hilbert curve) they equal each other.

    • @mqnc6275
      @mqnc6275 Před 6 lety

      Cole Turner, thank you! The same thing was puzzling me when I saw this video. Now I can have calm sleep again.

    • @simonpeters5977
      @simonpeters5977 Před 5 lety

      Wow oO Good intuition. Yeah the hilbert curve is not injective only surjective... I am not used to seeing nondumb comments in the comment section :///

  • @theTavis01
    @theTavis01 Před 4 lety +1

    I've used Hilbert sorting when I implemented a Delaunay triangulation, which is created by incrementally adding points. If the points are sorted first along a Hilbert curve, each successive point added is very near to the existing triangulation, reducing the amount of work compared to random insertions.

  • @aliwelchoo
    @aliwelchoo Před 3 lety +2

    I have a mathematical physics degree and took multiple calculus courses. Your explanation of continuity is better than any I've seen. So much easier to understand. In my degree they just told us to memorise these proofs.. For epsilon > 0 blah blah. I can see that it's exactly what you described

    • @cheesebusiness
      @cheesebusiness Před rokem

      Agree. Students are not stupid, the education is bad.
      I’m a visual learner, the 3B1B videos are such a pleasure.

  • @thehint1954
    @thehint1954 Před 6 lety +293

    Are there higher dimensional equivalents of a Hilbert curve?

    • @weasaldude
      @weasaldude Před 6 lety +2

      +

    • @nestorv7627
      @nestorv7627 Před 6 lety +3

      I'm guessing a bunch of squares made of curves stacked all together.

    • @DavidFosterZen
      @DavidFosterZen Před 6 lety +58

      Yes, you can apply it in any number of dimensions. You should be able to use Google to Image Search a 3D version.

    • @TRASHLEVIATHAN
      @TRASHLEVIATHAN Před 6 lety +48

      yes, instead of lines filling a plane it would be planes filling volume and volumes filling hypervolumes

    • @happmacdonald
      @happmacdonald Před 6 lety +29

      But those are just extrusions of the ordinary hilbert curve. I think the best analog is that you can pretty easily generalize the pattern so that you can coax a line into filling any N dimensional space. Which is both true, and actually a little bit trivial if you stop to work it out. :3

  • @diondredunigan5282
    @diondredunigan5282 Před 2 lety +3

    Is infinite math useful?
    Calculus: *Am I a Joke to you?*

  • @marcuswebb9434
    @marcuswebb9434 Před 4 lety

    5-ish months ago I was rather funnily lead to hilbert through another idea (hilbert space). These learning cycles of seemingly arbitrary but actually connected concepts are always fun to experience/ realise to me.

  • @brunesi
    @brunesi Před 4 lety

    Your animations are amazing. What a nice work.

  • @Ezkanohra
    @Ezkanohra Před 4 lety +6

    9:06 yeah, I completely agree that we have to cope with bad terminology!

  • @shivamkimothi2441
    @shivamkimothi2441 Před 6 lety +48

    How do you make this kind of animation? It's so beautiful. which language do you use to write your code?
    please answer both the questions

    • @roopchandjain8159
      @roopchandjain8159 Před 6 lety +3

      Shivam Kimothi i hv also wondered about it since long time..

    • @3blue1brown
      @3blue1brown  Před 6 lety +43

      3b1b.co/about

    • @shivamkimothi2441
      @shivamkimothi2441 Před 6 lety +19

      3Blue1Brown a man pays his regards🙏

    • @roopchandjain8159
      @roopchandjain8159 Před 6 lety +18

      So quick. I am a student in 11th standard and have no background of many topics you teach but your videos are so intuitive that (I think) I understand the whole thing without any pains..

    • @chandrapandey822
      @chandrapandey822 Před 6 lety +4

      Roop chand Jain
      Then don't limit yourself to your school textbooks explore the abstract world of maths around you trust me you will love it

  • @lychenus
    @lychenus Před 5 lety

    i always remember epsilon delta definition with functions, but always have some problem remember and explaining it efficiently
    and this video, is just suddenly wonderful. i hope but in my days during university i hope there were videos like these. there was just youtube and funny videos.

  • @djwang89
    @djwang89 Před 4 lety

    the sight to sound model you described reminds me a lot of an inverse fourier transform one uses in sampling k-space when producing MRI images!

  • @jovi_al
    @jovi_al Před 4 lety +5

    "def synesthesia"
    That was a nice touch

  • @pol...
    @pol... Před 6 lety +11

    Beautiful.
    Can one fill D-dimensional space with a line or it only works in 2d?

    • @baronvonbeandip
      @baronvonbeandip Před 2 lety +1

      Yep. For every D.

    • @hierkonnteihrewerbungstehe5636
      @hierkonnteihrewerbungstehe5636 Před 2 lety

      @@baronvonbeandip also not whole number dimensions?

    • @AdelaeR
      @AdelaeR Před 2 lety

      @@hierkonnteihrewerbungstehe5636 Real number dimensions are fractals and Hilbert curves are fractals, so why not? :)

  • @maxwellsdemon6599
    @maxwellsdemon6599 Před 5 lety

    again and again I am amazed by the quality of your Videos!
    I love how you find applications for things, that people often find to be useless mathematic masturbation ;)
    You are part of the reason I started to study math besides physics. Just to see how neatly things are fitting togeather, wich you think have no connection whatsoever is just fascinating.
    I truly think, these are the best made videos on CZcams. I have never seen a Video, with such nice Graphics and with such a great "alternative" approach on things. I often watch videos on topics, that i think i have fully understood and i allways learn something new, or an alternative way of looking at it.

  • @a.j.theman893
    @a.j.theman893 Před 3 lety

    I just now realized that in the sound to sight example, because of the Hilbert curve's infinite nature of space filling the only limiter on how precise it could get would be the instruments used to take the initial picture and play the final sound.

  • @colbyair
    @colbyair Před 6 lety +3

    3Blue1Brown, Could you use space filling curves (more specifically, Hilbert's Curve) for higher dimensional functions? Example being lim(n->∞) PHCₙ(x₀,y₀) = (x,y,z). I would assume so, but who knows maybe there is some weird rule. Thanks!

    • @zairaner1489
      @zairaner1489 Před 6 lety

      Yes, you can construct a n-dimensional Hilbert Curve which maps from 1D to n-D

  • @nicolasbeltran7120
    @nicolasbeltran7120 Před 6 lety +4

    Amazing video!! 3Blue1Brown, thank you for making a whole generation of youtube viewers find delight in watching Math. It is because of channels like yours that, despite all the terrible content published every second, I have faith in this platform.

    • @L0j1k
      @L0j1k Před 5 lety

      More than one generation.

  • @marcowen1506
    @marcowen1506 Před 4 lety +1

    This video contained the cleverest and most accessible explanation of continuity that I have ever seen. I'm amazed, as always.

  • @Rkcuddles
    @Rkcuddles Před 5 měsíci

    Ooo that’s a fun way to visualize continuity. Great job with the animation

  • @berbeado
    @berbeado Před 6 lety +83

    Please, next time you use a non-converging sum, put a trigger warning before. (0:17)

    • @isaacearnhart7080
      @isaacearnhart7080 Před 4 lety +2

      @@violet_flower this is "proved" with non-convergent sums and thus incorrect

    • @isaacearnhart7080
      @isaacearnhart7080 Před 4 lety +6

      @@violet_flower hey you never know what people on the internet believe, my bad

    • @benlev3375
      @benlev3375 Před 4 lety +3

      It hurts to see it. There isn't even a reference to non-convering Laurent series that do this but with a mathematical explanation.

    • @masonhunter2748
      @masonhunter2748 Před 3 lety

      @@violet_flower a meme is a humorous transformation of a widespread image, called a template, since it does not fit humorous, it is not a meme

  • @thesilenttraveller7
    @thesilenttraveller7 Před 6 lety +141

    So how does the lion picture actually sound like?!

    • @BrewalRenault
      @BrewalRenault Před 6 lety +135

      RRRRrooooooAAAAARRrrr

    • @neilisbored2177
      @neilisbored2177 Před 5 lety +6

      kshhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    • @booger7720
      @booger7720 Před 5 lety +6

      Surprisingly, it sounds quite similar to one of my recent beer farts.

    • @vbgvbg1133
      @vbgvbg1133 Před 5 lety +5

      aaaAAAAAAAAAAAAA *AAAAAAAAAAAA **_AAAAAAAAAAAAAAAAAA_*

    • @hitlard5305
      @hitlard5305 Před 5 lety +3

      rooarr

  • @isakwatz11
    @isakwatz11 Před 2 lety

    darn, this video really puts the math in a great context! it's understandable and presented beautifully.

  • @ayaan5540
    @ayaan5540 Před 2 lety

    OMG! I designed an origami version of the Hilbert Curve years ago based on a photograph I saw on Francesco Mancini's Flikr page but I never knew it had any mathematical significance until now! This is really interesting

  • @VibratorDefibrilator
    @VibratorDefibrilator Před 6 lety +10

    Hmm... one wonders why are there stil only interlaced and progressive scanning of video (1080p, 1080i, etc.).. When we will see a Hilbert curve scanning and tv screens with 1080hc? As I undurstand from this video, detailed HC of an image will be compression-friendly...

    • @mandolinic
      @mandolinic Před 5 lety +3

      VibratorDefibrilator
      Back in the early days of TV, left to right interlaced scanning was very simple to implement - and it worked just fine. And so we've stuck with it, just as cars still use petrol/gasoline, and the carburettor has only relatively recently been replaced by fuel injection. With modern technology, it is no doubt possible to create a Hilbert scanning system, and I expect someone has done it somewhere, but that same modern technology also allows us to use software to overcome the limitations of raster scanning. We can rapidly and reliably reformat, compress, expand, etc raster images in software so there's no pressure to move to a different scanning system.