Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. The Cycles of the Mu ...
Article

The Cycles of the Multiway Perfect Shuffle Permutation

John Ellis (1), Hongbing Fan (1), Jeffrey Shallit ORCID (2)
(1) Department of Computer Science [Victoria]
(2) Department of Computer Science [Waterloo ]
Download article
Open on HAL
Imported on
March 26, 2015
Published on
January 1, 2002
Last modified on
March 31, 2025
Volume 5
vol. 5
DOI
10.46298/dmtcs.308
License
https://about.hal.science/hal-authorisation-v1
Natural Sciences and Engineering Research Council of Canada
Indicators
1211
Views
1426
Downloads

The Cycles of the Multiway Perfect Shuffle Permutation

John Ellis (1), Hongbing Fan (1), Jeffrey Shallit ORCID (2)
(1) Department of Computer Science [Victoria]
(2) Department of Computer Science [Waterloo ]
Abstract
The (k,n)-perfect shuffle, a generalisation of the 2-way perfect shuffle, cuts a deck of kn cards into k equal size decks and interleaves them perfectly with the first card of the last deck at the top, the first card of the second-to-last deck as the second card, and so on. It is formally defined to be the permutation ρ _k,n: i → ki \bmod (kn+1), for 1 ≤ i ≤ kn. We uncover the cycle structure of the (k,n)-perfect shuffle permutation by a group-theoretic analysis and show how to compute representative elements from its cycles by an algorithm using O(kn) time and O((\log kn)^2) space. Consequently it is possible to realise the (k,n)-perfect shuffle via an in-place, linear-time algorithm. Algorithms that accomplish this for the 2-way shuffle have already been demonstrated.
Keywords
English
  • [INFO.INFO-DM]Computer Science [cs]/Discrete Mathematics [cs.DM]
French
  • perfect shuffle permutation
  • cycle decomposition
Cited by

Source: OpenCitations

  • Finite self-similar sequences, permutation cycles, and music composition

    Journal of Mathematics and the Arts

    Authors : Christopher Adler, Jean-Paul Allouche ORCID

    Journal reference : Volume 16, 2022, pp. 244-261

    DOI : 10.1080/17513472.2022.2116745
  • Beyond Binary Search: Parallel In-Place Construction of Implicit Search Tree Layouts

    ScholarSpace (University of Hawaii at Manoa)

    Authors : Kyle Berney ORCID, Henri Casanova ORCID, Alyssa Higuchi, Ben Karsin ORCID, Nodari Sitchinava ORCID

    Journal reference : Volume 5, 2018, pp. 1070-1079

    DOI : 10.1109/ipdps.2018.00116
  • Beyond Binary Search: Parallel In-Place Construction of Implicit Search Tree Layouts

    IEEE Transactions on Computers

    Authors : Kyle Berney ORCID, Henri Casanova ORCID, Ben Karsin ORCID, Nodari Sitchinava ORCID

    Journal reference : Volume 71, 2021, pp. 1104-1116

    DOI : 10.1109/tc.2021.3075392
Preview
Loading PDF preview...