Entradas de] Jordi Bassagañas

Heap’s Algorithm Implementation in PHP

Have you ever needed to compute all permutations of a set of elements? I’m sure you have, and that’s why you’re googling for this today! Aren’t you? Please keep on reading. I’m posting a PHP implementation of Heap’s algorithm that works OK.