paper

Maintaining the cycle structure of dynamic permutations

arXiv:2306.04470

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.

Maintaining the cycle structure of dynamic permutations · wovepaper