The optical N-gon prism switch is the simplest multi-layer architecture and a starting point for novel alloptical switching architectures. The N-gon prism switch is composed of parallel waveguides at each layer; switching between the waveguides at each layer and switching between the waveguides at adjacent layers is assumed, and the optics comes in by the transmission of light through the waveguides. Throughout the paper, switch setting algorithms for the N-gon prism switch are discussed where (1) an approach to an algebraic and scalable algorithm is presented for its fast implementation and (2) the further development of the multi-layer switching concept is taken into account.