Maintaining the cycle structure of dynamic permutations
Data Structures and Algorithms
2023-06-08 v1
Abstract
We present a new data structure for maintaining dynamic permutations, which we call a . 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 , for a transposition , takes amortized time, where is the size of . The FST computes any , , and , in 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 amortized time.
Cite
@article{arxiv.2306.04470,
title = {Maintaining the cycle structure of dynamic permutations},
author = {Zsuzsanna Lipták and Francesco Masillo and Gonzalo Navarro},
journal= {arXiv preprint arXiv:2306.04470},
year = {2023}
}