An in-place, subquadratic algorithm for permutation inversion

01/07/2019
by   Grzegorz Guśpiel, et al.
0

We assume the permutation π is given by an n-element array in which the i-th element denotes the value π(i). Constructing its inverse in-place (i.e. using O(n) bits of additional memory) can be achieved in linear time with a simple algorithm. Limiting the numbers that can be stored in our array to the range [1...n] still allows a straightforward O(n^2) time solution. The time complexity can be improved using randomization, but this only improves the expected, not the pessimistic running time. We present a deterministic algorithm that runs in O(n^3/2) time.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/27/2017

Lyndon Array Construction during Burrows-Wheeler Inversion

In this paper we present an algorithm to compute the Lyndon array of a s...
research
01/11/2021

Strictly In-Place Algorithms for Permuting and Inverting Permutations

We revisit the problem of permuting an array of length n according to a ...
research
11/16/2019

Constructing the Bijective BWT

The Burrows-Wheeler transform (BWT) is a permutation whose applications ...
research
07/18/2018

Deterministic oblivious distribution (and tight compaction) in linear time

In an array of N elements, M positions and M elements are "marked". We s...
research
01/13/2022

PageRank Algorithm using Eigenvector Centrality – New Approach

The purpose of the research is to find a centrality measure that can be ...
research
11/19/2020

Fully Dynamic Approximation of LIS in Polylogarithmic Time

We revisit the problem of maintaining the longest increasing subsequence...
research
06/23/2023

On the Two-sided Permutation Inversion Problem

In the permutation inversion problem, the task is to find the preimage o...

Please sign up or login with your details

Forgot password? Click here to reset