Maintaining the cycle structure of dynamic permutations

06/07/2023
by   Zsuzsanna Lipták, et al.
0

We present a new data structure for maintaining dynamic permutations, which we call a 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 τ·π, for a transposition τ, takes 𝒪(log n) amortized time, where n is the size of π. The FST computes any π(i), π^-1(i), π^k(i) and π^-k(i), in 𝒪(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 𝒪(log n) amortized time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/29/2018

Succinct data structure for dynamic trees with faster queries

Navarro and Sadakane [TALG 2014] gave a dynamic succinct data structure ...
research
06/28/2021

Dynamic Schnyder Woods

A realizer, commonly known as Schnyder woods, of a triangulation is a pa...
research
08/07/2014

Logarithmic-Time Updates and Queries in Probabilistic Networks

In this paper we propose a dynamic data structure that supports efficien...
research
10/17/2020

Lazy Search Trees

We introduce the lazy search tree data structure. The lazy search tree i...
research
02/11/2023

A Simple Data Structure for Maintaining a Discrete Probability Distribution

We revisit the following problem: given a set of indices S = {1, …, n} a...
research
07/29/2020

On the constructions of n-cycle permutations

Any permutation polynomial is an n-cycle permutation. When n is a specif...
research
11/03/2018

Multidimensional segment trees can do range queries and updates in logarithmic time

Updating and querying on a range is a classical algorithmic problem with...

Please sign up or login with your details

Forgot password? Click here to reset