1. A method, comprising: identifying a desired signal connectivity through a switch matrix, wherein the switch matrix comprises a plurality of switching elements, and wherein the switching elements are selectively operable in a plurality of states to provide a plurality of signal paths for routing signals through the switch matrix; identifying a sorting network model that corresponds to a topology of the switch matrix; applying a sorting algorithm to the sorting network model; and determining, based on the results of applying the sorting algorithm, operational states of the plurality of switching elements to provide signal paths corresponding to the desired signal connectivity.