Simple algorithm of locating components on the circuit board