A simple algorithm for the stable/unstable decomposition of a linear discrete-time system

A simple algorithm that decomposes the dynamics of a linear discrete-time system into stable modes, unstable modes and those on the unit circle, is considered here. The relationship between such a decomposition and the stable/unstable decomposition of continuous-time systems is also established.