< Return to Video

Doodling in Math Class: Binary Trees

  • 0:01 - 0:03
    Okay, let's say you're me and you're in math class
  • 0:03 - 0:04
    and you're supposed to be learning about
  • 0:04 - 0:06
    exponential functions, but you're having
  • 0:06 - 0:08
    trouble caring about exponential functions
  • 0:08 - 0:10
    because unfortunately your math class
  • 0:10 - 0:12
    is probably not terribly engaging.
  • 0:12 - 0:15
    You're supposed to be drawing and labeling some axes
  • 0:15 - 0:17
    so that you can graph this y equals 2 to the x thing
  • 0:17 - 0:18
    and your teacher seems to think
  • 0:18 - 0:20
    that drawing and labeling axes
  • 0:20 - 0:22
    is the very essence of mathematics
  • 0:22 - 0:25
    but you're bored and you can't help but wonder...
  • 0:25 - 0:26
    Why?
  • 0:26 - 0:28
    So you do what any conscientious student would do
  • 0:28 - 0:30
    in this situation and start doodling
  • 0:30 - 0:31
    and because you're me
  • 0:31 - 0:33
    you like to play games with yourself when you doodle.
  • 0:33 - 0:35
    Here's one game.
  • 0:35 - 0:36
    You're drawing a line, but when it crosses
  • 0:36 - 0:38
    one of the blue lines on your little piece of paper
  • 0:38 - 0:39
    it splits into two lines.
  • 0:39 - 0:42
    Maybe this line is like the neck of the mythical hydra
  • 0:42 - 0:44
    where every time one of its heads gets chopped off
  • 0:44 - 0:48
    by a blue line, it grows two more in its place.
  • 0:48 - 0:49
    You want to see if you can get all the way
  • 0:49 - 0:51
    to the bottom of the page following this rule
  • 0:51 - 0:53
    because if you do, you can draw
  • 0:53 - 0:55
    all of the little hydra heads at the end.
  • 0:55 - 0:57
    But you don't get very far on your first try.
  • 0:57 - 0:59
    You decide to try again, this time
  • 0:59 - 1:01
    spacing things out a little more at the beginning.
  • 1:01 - 1:02
    Unfortunately, things are filling up fast,
  • 1:02 - 1:04
    though you got farther than last time.
  • 1:04 - 1:05
    Maybe if you had more room.
  • 1:05 - 1:07
    Or maybe if you sharpened your pencil more,
  • 1:07 - 1:08
    you could get to the bottom of the page.
  • 1:08 - 1:10
    Oh, and don't forget to draw and label your axes.
  • 1:10 - 1:13
    If each broad swing of Hercules' sword chops off
  • 1:13 - 1:15
    all the heads thus doubling your number, well,
  • 1:15 - 1:16
    you can see where I'm going.
  • 1:16 - 1:18
    I'm not going to try and teach you math,
  • 1:18 - 1:20
    just how to wield it for doodling purposes.
  • 1:20 - 1:22
    In this case, that's going to be a lot of heads.
  • 1:22 - 1:24
    Good luck Hercules.
  • 1:24 - 1:26
    But maybe drawing binary trees all straight like that
  • 1:26 - 1:29
    is not an interesting game to hold your attention for long
  • 1:29 - 1:31
    so you start drawing them in arbitrary shapes.
  • 1:31 - 1:33
    Or less arbitrary shapes.
  • 1:33 - 1:35
    Maybe you start drawing a binary tree
  • 1:35 - 1:36
    that looks like a tree.
  • 1:36 - 1:38
    And maybe you can't see this tree in very high quality
  • 1:38 - 1:40
    because your camera, very much like your math class
  • 1:40 - 1:44
    is fuzzy, unfocused, and all together not very good.
  • 1:44 - 1:45
    Maybe you changed the rules slightly and
  • 1:45 - 1:48
    make a ternary bush where each branch sprouts
  • 1:48 - 1:49
    three more branches.
  • 1:49 - 1:52
    Unfortunately, your math class is 45 minutes long
  • 1:52 - 1:54
    and soon you need a more interesting doodle game.
  • 1:54 - 1:56
    Say you go back to the game
  • 1:56 - 1:58
    where your line splits at every level.
  • 1:58 - 2:00
    Only this time, instead of trying to squish all the lines in,
  • 2:00 - 2:02
    you let them hit each other.
  • 2:02 - 2:05
    And when they crash, there's a firey explosion
  • 2:05 - 2:08
    and the crashing lines end there.
  • 2:08 - 2:09
    Maybe you turn your notebook sideways
  • 2:09 - 2:10
    so that you can make sure
  • 2:10 - 2:12
    you're getting the horizontal spacing right.
  • 2:12 - 2:14
    Maybe, to go back to mythology,
  • 2:14 - 2:16
    Hercules has a method where, instead of cauterizing
  • 2:16 - 2:19
    the necks of the Hydra to keep them from growing back
  • 2:19 - 2:22
    he's found that the necks stick together if they get too close
  • 2:22 - 2:24
    And instead of growing new heads,
  • 2:24 - 2:26
    they just fill up with blood.
  • 2:26 - 2:28
    It might seem a little morbid for math class,
  • 2:28 - 2:31
    but maybe, if the curriculum wasn't so appalling
  • 2:31 - 2:33
    and the teaching methods wern't so atrocious,
  • 2:33 - 2:35
    you wouldn't have to entertain yourself
  • 2:35 - 2:37
    with these stories and games.
  • 2:37 - 2:39
    Speaking of this doodle game,
  • 2:39 - 2:40
    something very interesting is happening.
  • 2:40 - 2:43
    Looks like your simple rules about splitting
  • 2:43 - 2:46
    and crashing are creating Sierpinski's triangle.
  • 2:46 - 2:47
    Which is a pretty awesome fractal.
  • 2:47 - 2:49
    But the point is not to learn about fractals
  • 2:49 - 2:51
    or cellular automata or Sierpinski,
  • 2:51 - 2:52
    but to show that simple doodle games
  • 2:52 - 2:54
    can lead to mathematical results
  • 2:54 - 2:57
    so cool and beautiful that they're famous.
  • 2:57 - 2:59
    At least, famous to people like me.
  • 2:59 - 3:01
    And if you're good at inventing doodle games,
  • 3:01 - 3:02
    you might even end up
  • 3:02 - 3:06
    doing some real mathematics during your math class.
  • 3:06 - 3:09
    Anyway, maybe you don't care about accuracy.
  • 3:09 - 3:10
    Maybe you try the game again,
  • 3:10 - 3:12
    only you don't keep track of spacing,
  • 3:12 - 3:12
    and when you make a mistake and
  • 3:12 - 3:14
    accidentally grow heads where you shouldn't
  • 3:14 - 3:16
    you just roll with it.
  • 3:16 - 3:18
    Now you've introduced an element of random error
  • 3:18 - 3:19
    and you want to know
  • 3:19 - 3:21
    how this will affect the final picture.
  • 3:21 - 3:23
    It still looks like a pretty awesome doodle,
  • 3:23 - 3:24
    and has many of the same elements,
  • 3:24 - 3:26
    though it lacks the structure.
  • 3:26 - 3:27
    Speaking of the structure,
  • 3:27 - 3:29
    maybe because you're really super bored
  • 3:29 - 3:32
    and your class is seemingly never going to end,
  • 3:32 - 3:35
    you start looking at the number of necks at each level
  • 3:35 - 3:37
    and trying to figure out the pattern.
  • 3:37 - 3:40
    Maybe you haven't forgotten about powers of two.
  • 3:40 - 3:41
    Anyway, I hope I've provided you with
  • 3:41 - 3:45
    something entertaining to do next time you're bored.
  • 3:45 - 3:48
    Good luck with your math class.
Title:
Doodling in Math Class: Binary Trees
Description:

Thank you to all the people I know whose math classes do not require such pastimes!

More videos/info: http://vihart.com/doodling

Doodling Snakes + Graphs: ttp://www.youtube.com/watch?v=heKK95DAKms
Doodling Stars: http://www.youtube.com/watch?v=CfJzrmS9UfY

http://vihart.com

more » « less
Video Language:
English
Duration:
03:48

English subtitles

Revisions