Optimal segmented scan and simulation of reconfigurable architectures on fixed-connection networks