Permutation Algorithm help

Hi all, I want to implement a permutation algorithm. And I have this pseudocode

makePermutations(permutation) {

if (length permutation < required length) {
for (i = min digit to max digit) {
if (i not in permutation) {
} else {
add permutation to list

This is a little vague to me, so if someone could help.
What is being passed into the fuction? Permutation is that a number?
And then makePermutations(permutaion +i) - what is that doing? Recursively calling the same function with an integer?

Thanks guys.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!