An apparatus, program product and method utilize heuristic clustering to
generate assignments of circuit elements to clusters or groups to
optimize a desired spatial locality metric. For example, circuit elements
such as scan-enabled latches may be assigned to individual scan chains
using heuristic clustering to optimize the layout of the scan chains in a
scan architecture for a circuit design.