An Efficient Algorithm for Permutation Iteration Using a Singly Linked List
Thomas Baruchel · 2025
Read An Efficient Algorithm for Permutation Iteration Using a Singly Linked List by Thomas Baruchel (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-10102.txt.
Description
Thomas Baruchel presents an algorithm for walking through every ordering of a sequence in a 2025 paper. The method runs on a singly linked list and is indifferent to what the elements are. It uses only constant time elementary operations on recursive lists. No new nodes are ever allocated: the original nodes are rearranged in place from start to finish.
The orderings arrive in an unusual order, yet the steps between consecutive permutations stay smooth. A proof of concept written in Lisp is referenced and discussed. The author offers the algorithm as an elegant take on a classic computing task, with memory thrift as its signature virtue.
Catalog record
| CREATOR | Thomas Baruchel |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 21 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2501-10102