Maintaining the cycle structure of dynamic permutations

June 07, 2023 Β· Declared Dead Β· πŸ› arXiv.org

πŸ‘» CAUSE OF DEATH: Ghosted
No code link whatsoever

"No code URL or promise found in abstract"

Evidence collected by the PWNC Scanner

Authors Zsuzsanna LiptΓ‘k, Francesco Masillo, Gonzalo Navarro arXiv ID 2306.04470 Category cs.DS: Data Structures & Algorithms Citations 0 Venue arXiv.org Last Checked 5 months ago
Abstract
We present a new data structure for maintaining dynamic permutations, which we call a $\textit{forest of splay trees (FST)}$. The FST allows one to efficiently maintain the cycle structure of a permutation $Ο€$ when the allowed updates are transpositions. The structure stores one conceptual splay tree for each cycle of $Ο€$, using the position within the cycle as the key. Updating $Ο€$ to $Ο„\cdotΟ€$, for a transposition $Ο„$, takes $\mathcal{O}(\log n)$ amortized time, where $n$ is the size of $Ο€$. The FST computes any $Ο€(i)$, $Ο€^{-1}(i)$, $Ο€^k(i)$ and $Ο€^{-k}(i)$, in $\mathcal{O}(\log n)$ amortized time. Further, it supports cycle-specific queries such as determining whether two elements belong to the same cycle, flip a segment of a cycle, and others, again within $\mathcal{O}(\log n)$ amortized time.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

πŸ“œ Similar Papers

In the same crypt β€” Data Structures & Algorithms

Died the same way β€” πŸ‘» Ghosted