Schlemiel the Painter's Algorithm
en.wikichip.org