Unranking permutations in transposition order and linear time

Abstract

An algorithm is presented for unranking permutations in transposition order: Given a seed s∈ N, the algorithm produces a permutation P(s) that differs from the permutation P(s+1) by the transposition of two elements.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…