加载中…
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.

生成讲解博客的中文版本

生成AI智能校验的中文版本