The Tompkins–Paige algorithm is a computer algorithm for generating all permutations of a finite set of objects.