Abstract
We show that any permutation of can be written as the product of two involutions. As a consequence, any permutation of the elements of an array can be performed in-place in parallel in time O(1). In the case where the permutation is the -way perfect shuffle we develop two methods for efficiently computing such a pair of involutions. The first method works whenever is a power of ; in this case the time is O(N) and space . The second method applies to the general case where is a multiple of ; here the time is and the space is . If the space usage of the first method can be reduced to on a machine that has a SADD (population count) instruction.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.