The discrete cosine transform (DCT) and the discrete sine transform (DST) are members of the sinusoidal family of unitary transforms. A generalized signal flow graph for the DCT/DST of type II (DCT-II/DST-II) computation and their inverses DCT-III/DST-III is described. It is based on the fast, recursive and numerically stable Hou's algorithm. The generalized signal flow graph represents a unified approach to the fast DCT-II/DST-II and DCT-III/DST-III computation for any N = 2(m), m >0. It is suitable for the implementation on the universal VLSI chip.