Picture a map where neighboring countries must have different colors, or a school timetable where two exams a student takes can't share a slot. Both are the same puzzle in disguise: take things that are connected (they conflict) and give each a color so that no two connected things share one — using as few colors as possible.
In the language of mathematics, the things become nodes and the conflicts become edges: a graph. The smallest number of colors that works is called the chromatic number.
The rule could not be simpler. Yet, as we'll see, finding that smallest number of colors is one of the hardest problems we know — and it hides inside maps, timetables, compilers, and the wireless signal on your phone.
Comments
Loading comments...