Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1. Ragnarok.

The fabled end of the world,

2. when giants, monsters, and Norse gods battle for the future.

3. The gods were winning handily until the great serpent Jörmungandr emerged.

4. It swallowed Valhalla, contorted itself across the land,

5. and then merged into one continuous body with no head and no tail.

6. As it begins to digest Valhalla,

7. an exhausted Odin explains that he has just enough power to strike the creature

8. with one final bolt of lightning.

9. If you magnify his blast with your fabled hammer, Mjölnir,

10.it should pierce the massive serpent.

11.You’ll run with super-speed along the serpent’s body.

12.When you hold your hammer high, Odin will strike it with lightning

13.and split Jörmungandr open at that point.

14.Then, you’ll need to continue running along its body

15.until every part of it is destroyed.

16.You can’t run over the same section twice

17.or you’ll fall into the already blasted part of the snake.

18.But you can make multiple passes through points where the creature

19.intersects its own body.

20.If you leave any portion un-zapped, Jörmungandr will magically regenerate,

21.Odin’s last power will be spent, and Valhalla will fall forever.

22.What path can you take to destroy the serpent?

23.Pause now to figure it out yourself!

24.Answer in 3

1
25.One powerful way to solve problems is to simplify.

26.intersections and the stretches of snake between them.

27.and are where we may need to make choices as we run from edge to edge.

28.This simplification into nodes and edges leaves us

29.with a ubiquitous and important mathematical object known as a graph,

30.or network.

31.We just need to figure out how to travel what mathematicians call an Eulerian path,

32.which traces every edge exactly once.

33.Instead of looking at the path as a whole, let’s zoom in on a single node.

34.During some moment in your run, you’ll enter that node, and then exit it.

35.That takes care of two edges.

36.If you enter again, you’ll need to exit again too,

37.which requires another pair of edges.

38.So every point along your path will have edges that come in pairs.

39.One edge in each pair will function as entrance; the other as exit.

40.And that means that the number of edges coming out of every node must be even.

41.There are just two exceptions: the start and end points,

42.where you can exit without entering, or vice versa.

43.If we look at the network formed by the serpent again,

44.and number how many edges emerge from each node,

45.a pattern jumps out that fits what we just saw.

46.Every node has an even number of edges emerging from it, except two.

47.So one of these must be the start of your route, and the other the end.

48.Interestingly enough, any connected network that has exactly 2 nodes

49.with an odd number of edges will also contain an Eulerian path.

50.The same is true if there are no nodes with an odd number of edges—
51.in that case the path starts and ends in the same spot.

52.So knowing that, let’s return to our full graph.

53.We can begin by taking care of this edge here.

54.Now we can zig-zag back and forth across the whole snake

55.until we reach the end.

56.And that's just one solution— it helps to be systematic,

57.but you’re likely to happen upon many others

58.once you know where to begin and end your run.

59.You hold your hammer high at the opportune moment,

60.and Odin sends the world-saving surge of lightning at you.

61.Then you run like you’ve never run before.

62.If you can pull this off, surely nothing could stop the might of the Norse Gods.

63.And if something like that were out there, slouching its way towards you…

64.well, that would be a story for another day.

You might also like