Home▸AI & Machine Learning▸Cellular Frequency Reuse — Hex Grid Graph Coloring (2D)

Cellular Frequency Reuse — Hex Grid Graph Coloring (2D)

A 2D hexagonal cell-tower lattice where a DSATUR graph-coloring solver assigns frequency channels so no two overlapping active cells interfere, repairing conflicts live as simulated call traffic switches cells on and off.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ai-telecom-network-optimization ↗ Open standalone

This 2D companion recasts the same DSATUR graph-coloring frequency-assignment problem on the lattice cellular networks are actually diagrammed with: a hexagonal grid, where every cell has up to six equidistant neighbours. As simulated call traffic switches cells active and idle, an interference graph is built from hex-distance adjacency and a live DSATUR solver assigns the lowest available frequency channel to each active cell so that no two interfering active cells ever share one. Each cell keeps a sticky legacy channel between activations — a small, deliberately collision-prone pool standing in for a real operator's static frequency plan — so reactivating cells can genuinely collide with their neighbours, and the pulsing red edges you see are real conflicts waiting for the next incremental repair pass, which recolours only the affected cells instead of replanning the whole lattice. Tune the lattice size and interference distance, click any hex to inspect it, and watch the channel count and conflict rate respond to traffic load in real time.

⚙ Under the hood

A 2D hexagonal cell-tower lattice where a live DSATUR graph-coloring solver assigns frequency channels so no two overlapping active cells interfere, repairing conflicts as simulated call traffic switches cells on and off.

graph coloringDSATURcellular networkfrequency reusehex gridconstraint satisfactiontelecom

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)