yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

A riddle of ice and fire dragons - Henri Picciotto


3m read
·Nov 8, 2024

It’s your first day in your new job as Center Realm’s official cartographer, and you've already got a big problem. Center Realm is home to three elder dragons: two ice, one fire, and they’ve lived in harmony on the east coast for centuries. But scouts have sighted three fire dragons and five ice dragons flying across the Western Ocean. You’ll only have a few hours to assign them their designated regions before they’ll arrive. Elder dragons are extremely territorial. Each must have its own, officially acknowledged stomping ground. They’ll peacefully roost there unless their region borders another dragon of the same type, in which case the matching dragons will go on a rampage.

However, fire and ice dragons can border each other, and matching regions can touch at corners. You’ll soon have 11 dragons and just 8 regions. Fortunately, you have enough political capital to create 3 new regions, each of which must be completely enclosed spaces. Add more or otherwise mess this up, and you’ll lose your job and your head. Where do you draw lines and place the new dragons? Pause here to figure it out for yourself.

Answer in 3. Answer in 2. Answer in 1. It isn't difficult to create three new regions. What is more challenging is to make sure the result will keep each dragon away from its own kind. For instance, this can be neither ice nor fire, because it borders both. However, create a new region like this, and suddenly there are viable options. Why did that work? Look at the point where these four regions meet. If you go around it, it alternates between fire and ice.

Before the new line was added, that wouldn’t have worked. Nor would 5 or 7 regions. 6 and 8, however, both do. The pattern is that points where lines meet must be surrounded by an even number of regions. As long as that’s true, you can color the map in two colors, by alternating them around those points. In our initial arrangement, there were six such meeting points. So what we want to do is connect those to each other. Each line adds a single new region that touches both meeting points. There are several ways to do this to accommodate all 8 new dragons.

You’ve done such a great job that your boss puts you in a ship and sends you out across the Western Sea to investigate where these new dragons are coming from. There you’re met with a civilization in disarray. Their 17 elder dragons are ravaging the countryside, wiping out the peasants, devastating all the people and their thatch-roofed cottages. And here there aren't just ice and fire dragons, but lightning dragons too. Their people will only allow the creation of two new regions. Where do you create new regions and place all the dragons? Pause here to figure it out for yourself.

Answer in 3. Answer in 2. Answer in 1. Unfortunately, our meeting-point trick won’t suffice now that there are three dragon types, so we need to find another method to identify problem areas. A great way to do so is to experiment: focus on one area and start coloring until we run out of possibilities. Take this section. These 3 regions all border each other, so they need to be different colors. But they also all touch this giant territory, which we now can’t color.

To generalize the issue, when there are 4 regions that all border each other, it's impossible to color them with three colors. The map has two other such areas. So what you need to do is break them up. And once again, the key is drawing lines between points where multiple problematic regions touch. No matter how you do it, you’ll effectively subdivide the giant territory into smaller ones. Now coloring the map becomes a logic puzzle.

So long as you approach it systematically by starting in one area and radiating out, you’ll reach an arrangement that you can fit all your dragons into, shifting the colors as needed. Just assign this region last, because it’ll have two options. You've saved not one, but two continents from certain ruin. Now to see if you can find a giant eagle and hitch a ride back home.

More Articles

View All
Preparing for the Hunt | Live Free or Die
[Music] It’s the final week of deer hunting season and Frontiersman Colbert’s last chance to get big game before winter. It’s important to clean your weapon. I don’t have any gun oil with me, but I’ve got pig fat, and pig fat’s going to work just fine. …
Everybody wants to love - Ingrid Michaelson cover
One two three [Music] four. We have fallen down again tonight. In this world, it’s hard to get it right, trying to make your heart fit like a glove. [Music] What you need is love, love, love. Everybody, everybody wants to love. Everybody, everybody wants…
Sex in Space - Fan Questions | StarTalk
[Music] People, when they think of space, they typically imagine zero G, where everything is floating. But that’s not a prerequisite for being in space. If you have a rotating space station, by way of this centrifugal force of the rotating wheel, you can…
Comparing multi digit numbers word problems
Two baseball teams are comparing the number of fans who attended their most recent games. The attendance at the Stanleyville Sliders game was 12,896 fans. The attendance at the Benson Bats game was 12,991 fans. Which team had more fans at their game? Pau…
Stop Trying and You'll Succeed
There’s nothing worse than a sleepless night. We’ve all been there, tossing and turning. You focus all your mental power on trying to fall asleep. With all your will, you force yourself to shut your eyes, turn your brain off, and pray to be whisked away i…
Enterprise Sales | Startup School
[Music] My name is Pete Kuman. I’m a group partner at YC and a YC Alum. I was co-founder and CTO of Optimizely in the winter 2010 batch. In this talk, I’m going to walk step by step through the process of closing your first Enterprise customers. I’m goin…