Techniques for implementing perfect shuffle and inverse perfect shuffle operations with the aid of a single holographic optical element are presented. The element is composed of subholographic lenses which operate on a different input area. For the inverse perfect shuffle operation, polarization coding is added in order to separate the input into distinct groups. Experimental results illustrating the effectiveness of the proposed techniques are given.