Researchers find fastest way to color any planar map
Tuesday 24th November 2026 on 08:15 in
Estonia
An international team has developed an algorithm that colors any planar map in the theoretically fastest possible time, ERR reports. The method works in linear time, meaning that doubling a map’s size doubles the time needed to color it.
The algorithm was developed by computer scientists and mathematicians from universities in Japan, Denmark, Canada and Slovenia. It applies to planar graphs, the mathematical structures used to represent maps.
Any planar map can be colored with four colors so that no two neighboring regions share a color. Although the four-color theorem was proved in 1976, coloring complex maps efficiently has remained a challenge for computers. Because a computer must examine each region at least once, the researchers say linear time is optimal.
The key to the new method is how it organizes data. Earlier approaches could require long chains of regions to be recolored just to change the color of one small area. The researchers instead divide a map into smaller sections and prepare tables of possible color combinations for those sections. The computer can use the tables rather than recalculate every sequence of color changes.
The problem has challenged researchers for more than 170 years. Francis Guthrie first proposed the four-color rule in 1852. An algorithm developed in 1997 colored maps in quadratic time, meaning the computing time grew sharply as maps became larger. The research team later improved on that approach before reaching the linear-time limit with its new method.
The researchers published their work on arXiv, an online repository for scientific papers.